I would like to stop the skript if a permission is negative, but I don't know how to check a value from a function return 
Her's the code, the real code is more complicated, but I let only the important things, to let you understand it. That's why you could thing that I don't have to use functions for that
It doesn't work, of wourse, but I don't know why^^
Her's the code, the real code is more complicated, but I let only the important things, to let you understand it. That's why you could thing that I don't have to use functions for that
code_language.skript:
function NoPerm(perm: text, p: player) :: text:
{_p} does not have permission {_perm}:
set {_message} to "you don't have permission %{_perm}%"
message coloured {_message} to {_p}
return {_message}
command /tp [<player>]:
aliases: /tele, /tp2p, /teleport
trigger:
NoPerm("essentials.tp", sender)
{_message} is set:
stop
teleport player to arg 1
Last edited: