Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /chat [<text>] [<text>]:
- aliases: c
- executable by: players
- trigger:
- if player has permission "jpsv.chat":
- if arg 1 is empty:
- send "&8[&6JpsvTools&8] &cPoprawne uzycie:" to player
- send "&8» &e/chat cooldown <czas>" to player
- send "&8» &e/chat on" to player
- send "&8» &e/chat off" to player
- send "&8» &e/chat clear" to player
- else if arg 1 is "on":
- if {chat.stan} is true:
- send "&8[&6CHAT&8] &cChat aktualnie jest wlaczony!" to player
- stop trigger
- set {chat.stan} to true
- broadcast "&8[&6CHAT&8] &aChat zostal wlaczony!"
- else if arg 1 is "off":
- if {chat.stan} is false:
- send "&8[&6CHAT&8] &cChat aktualnie jest wylaczony!" to player
- stop trigger
- set {chat.stan} to false
- loop 128 times:
- send " " to all players
- if "%arg 2%" is "<none>":
- broadcast "&8[&6CHAT&8] &cChat zostal wylaczony!"
- if player has permission "jpsvtools.chat":
- arg 1 is "clear" or "c":
- loop 128 times:
- send " " to all players
- broadcast "&8[&6CHAT&8] &cChat zostal wyczyszczony przez %player%&c!"
- else:
- send "&8[&6JpsvTools&8] &cPoprawne uzycie:" to player
- send "&8» &e/chat cooldown <czas>" to player
- send "&8» &e/chat on" to player
- send "&8» &e/chat off" to player
- send "&8» &e/chat clear" to player
- stop trigger
- else:
- send "&8[&6CHAT&8] &cNie masz uprawnienia!"
- on chat:
- if {chat.stan} is false:
- if player has permission "jpsvtools.chat.wylaczony":
- stop trigger
- else:
- cancel event
- send "&8[&6CHAT&8] &cChat jest aktualnie wylaczony!"
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement