Hello, I am trying to make it so it cancels the push event if the player is holding a shield. I really need this skript done soon any help would be appreciated. Here is my code:
command /kb <number>:
usage: /kb [values]
trigger:
if arg-1 is set:
if arg-1 is smaller than 31:
set {push} to arg-1
message "&aKB set to %{push}%"
else:
message "&cI can`t edge the limit of KB (30 Max)"
on damage of a player:
if {push} is set:
push victim in direction of attacker with force {push}
on command "/kb":
player does not have permission "kb.admin"
cancel event
send "&cYou don't have permission!"
command /kb <number>:
usage: /kb [values]
trigger:
if arg-1 is set:
if arg-1 is smaller than 31:
set {push} to arg-1
message "&aKB set to %{push}%"
else:
message "&cI can`t edge the limit of KB (30 Max)"
on damage of a player:
if {push} is set:
push victim in direction of attacker with force {push}
on command "/kb":
player does not have permission "kb.admin"
cancel event
send "&cYou don't have permission!"