Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /chat [<text>]:
- permission: chat.admin
- permission message: &8>> &cNie masz uprawnien!
- trigger:
- if arg is not set:
- send "&8>> &cPoprawne uzycie: &7/chat <on/off/clear>"
- stop
- if arg is "on":
- send "&8>> &8Wlaczyles &6chat!"
- broadcast "&8>> &6Chat zostal &awlaczony &6przez &7%player%"
- set {chat.status} to true
- if arg is "off":
- send "&8>> &8Wylaczyles &6chat!"
- broadcast "&8>> &6Chat zostal &awylaczony &6przez &7%player%"
- set {chat.status} to false
- if arg is "clear" or "c":
- loop all players:
- loop 200 times:
- send "" to loop-player
- broadcast "&8>> &6Chat zostal wyczyszczony przez &7%player%"
- else:
- send "&8>> &cPoprawne uzycie: &7/chat <on/off/clear>"
- stop
- on chat:
- if player don't have permission "chat.pisanie":
- if {chat.status} is false:
- cancel event
- send "&8>> &7Chat jest aktualnie zablokowany."
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement