function getHelpers(t: text) :: players:
loop all players:
if loop-player has permission {_t}:
{spy::%loop-player%} is true
add loop-player to {_return::*}
return {_return::*}
command /msg [<player>] [<text>]:
aliases: messages
trigger:
if arg 2 is not set:
send "&7Podaj tresc wiadomosci!"
stop
send "&7[&6Ja&7] &7[&e%player arg%&7] &8» &b%arg 2%" to executor
send "&7[&e%executor%&7] &7[&6Ja&7] &8» &b%arg 2%" to player arg
send "&7[&e%executor%&7] &7[&e%player arg%&7] &8» &b%arg 2%" to getHelpers("spy")
set {reply::%executor%} to player arg
set {reply::%player arg%} to player
command /msgall [<text>]:
permission: msgall
trigger:
if arg is not set:
send "&7Podaj tresc wiadomosci!"
stop
loop all players:
execute console command "msg %loop-player% %arg%"
command /r [<text>]:
aliases: reply
trigger:
if {reply::%player%} is set:
if arg 1 is set:
execute player command "msg %{reply::%player%}% %arg%"
stop
send "&7Podaj tresc wiadomosci!"
stop
send "&7Jeszcze do nikogo nie pisales!"
command /spy [<text>]:
aliases: socialspy
trigger:
if arg 1 is "on" or "wlacz":
set {spy::%player%} to true
send "&7Wlaczono spy!"
stop
if arg 1 is "off" or "wylacz":
set {spy::%player%} to false
send "&7Wylaczono spy!"
stop
if {spy::%player%} is true:
set {spy::%player%} to false
send "&7Wylaczono spy!"
else:
set {spy::%player%} to true
send "&7Wlaczono spy!"
@Mr_0VERR i co?