Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- tag: &a&lChatManager&r &b>&f
- log: true
- variables:
- {czat} = false
- {wiadomosci} = 1
- command /chat [<text>]:
- trigger:
- player has permission "admin.chat" or "admin":
- if arg 1 is not set:
- if {czat} is true:
- send "{@tag} &cChat jest wylaczony!"
- stop
- else:
- send "{@tag} &aChat jest wlaczony!"
- stop
- if arg 1 is "on":
- if {czat} is true:
- set {czat} to false
- send "{@tag} &aChat zostal wlaczony przez admina &2%player%&a!" to all players
- stop
- else:
- send "{@tag} &aChat aktualnie jest wlaczony!"
- stop
- if arg 1 is "off":
- if {czat} is false:
- set {czat} to true
- send "{@tag} &cChat zostal wylaczony przez admina &4%player%&c!" to all players
- stop
- else:
- send "{@tag} &cChat aktualnie jest wylaczony!"
- stop
- if arg 1 is "help":
- send "{@tag} Wpisz /chat on/off/clean :)"
- stop
- if arg 1 is "clean" or "czysc":
- loop 100 times:
- message " " to all players
- send "&aooOO &cCHAT ZOSTAL WYCZYSZCZONY! &aOOoo" to all players
- message " " to all players
- stop
- command /uwaga [<text>]:
- trigger:
- player has permission "admin.uwaga" or "admin.chat" or "admin":
- send "&4UWAGA: &c%arg 1%" to all players
- stop
- else:
- send "{@tag} Musisz byc adminem!"
- on chat:
- if {czat} is true:
- player has permission "admin.pisanie" or "admin":
- stop
- else:
- log "%player% no send %message%" to "chat/chat-off.log"
- cancel event
- message "{@tag} &cChat zostal wylaczony!"
- stop
- else:
- if {@log} is true:
- log "%player% > %message%" to "chat/chat-on.log"
- stop
Advertisement
Add Comment
Please, Sign In to add comment