Hi, can someone tell me what is wrong in those variables? Im just new at skript and i did something, but it cant understand condition.. idk why
`on chat:
set {_waited} to difference between {cooldown::%player's uuid%} and now
if {_waited} is less than 3 seconds:
send "&cYou cant ping that fast!"
cancel event
if {ping.exempt} is set to true:
send "&cYou cant ping this player."
cancel event
else:
loop all players:
if message contains loop-player's name:
if loop-player's name is not name of sender:
if {ping.exempt} is set to false:
wait 1 tick
play sound "ENTITYEXPERIENCEORB_PICKUP" to loop-player
send action bar "&aSomeone pinged you :O" to loop-player
set {cooldown::%player's uuid%} to now
command /pingoff:
permission: oznaceni.off
permission message: &cYou can't do this!
trigger:
set {ping.exempt} to true
send "&aPlayers cant ping you now."
command /pingon:
permission: oznaceni.on
permission message: &cYou can't do this!
trigger:
set {ping.exempt} to false
send "&aPlayers can ping you now."`
Posted by: danrub from the skUnity Discord. View the thread on skUnity Discord here
`on chat:
set {_waited} to difference between {cooldown::%player's uuid%} and now
if {_waited} is less than 3 seconds:
send "&cYou cant ping that fast!"
cancel event
if {ping.exempt} is set to true:
send "&cYou cant ping this player."
cancel event
else:
loop all players:
if message contains loop-player's name:
if loop-player's name is not name of sender:
if {ping.exempt} is set to false:
wait 1 tick
play sound "ENTITYEXPERIENCEORB_PICKUP" to loop-player
send action bar "&aSomeone pinged you :O" to loop-player
set {cooldown::%player's uuid%} to now
command /pingoff:
permission: oznaceni.off
permission message: &cYou can't do this!
trigger:
set {ping.exempt} to true
send "&aPlayers cant ping you now."
command /pingon:
permission: oznaceni.on
permission message: &cYou can't do this!
trigger:
set {ping.exempt} to false
send "&aPlayers can ping you now."`
Posted by: danrub from the skUnity Discord. View the thread on skUnity Discord here