Hello,
I'm currently trying to make a warning system in skript.
But for some odd reason the command refuses to send.
No errors on reload: http://prntscr.com/efzc5c
The console does log the command http://prntscr.com/efzcdl
Any suggestions to this?
Code:
I'm currently trying to make a warning system in skript.
But for some odd reason the command refuses to send.
No errors on reload: http://prntscr.com/efzc5c
The console does log the command http://prntscr.com/efzcdl
Any suggestions to this?
Code:
Code:
command /warn [<player>] [<text>]:
permission: edgemc.warn
permission message: {@noperm}
trigger:
if player has permission "edgemc.warn":
if arg 1 is not set:
if arg 2 is not set:
send "{@prefix} You did not specify a player and a reason."
stop
if arg 1 is set:
if arg 2 is not set:
send "{@prefix} You did not specify a reason"
stop
if arg 1 is set:
if arg 2 is set:
if {warning1::%uuid of arg 1%} is false:
set {warning1::%uuid of arg 1%} to true
send "{@prefix} You received your first warning. Reason below"
send "{@prefix} %arg 2%"
stop
if {warning1::%uuid of arg 1%} is true:
if {warning2::%uuid of arg 1%} is false:
set {warning2::%uuid of arg 1%} to true
send "{@prefix} You received your second warning."
send "{@prefix} Third warning will be a kick and a cleared inventory."
send "{@prefix} Reason: %arg 2%"
stop
if {warning1::%uuid of arg 1%} is true:
if {warning2::%uuid of arg 1%} is true:
if {warning3::%uuid of arg 1%} is false:
set {warning3::%uuid of arg 1%} to true
clear the inventory of arg 1
stop
else:
send "{@noperm}"
stop