Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- chat = on
- options:
- tag: &4[CHAT] &7
- command /chat [<text>] [<text>] [<text>]:
- trigger:
- if player has permissions "chat":
- if arg 1 is not set:
- send "{@tag} /chat on/n" to player
- send "{@tag} /chat off/f" to player
- send "{@tag} /chat clear/c" to player
- if arg 1 is "on" or "n":
- if {chat} is on:
- send "{@tag} Chat jest aktualnie wlaczony!" to player
- else:
- set {chat} to on
- broadcast "{@tag} Chat zostal wlaczony przez &6%player%"
- if arg 1 is not "n" or "on" or "clear" or "c" or "off" or "f":
- send "{@tag} Nie poprwany argument! &6/chat" to player
- if arg 1 is "off" or "f":
- if {chat} is off:
- send "{@tag} Chat jest aktualnie wylaczony!" to player
- else:
- set {chat} to off
- loop 98 times:
- broadcast "" "
- broadcast "{@tag} Chat zostal wylaczony przez &6%player%"
- if arg 1 is "clear" or "c":
- loop 98 times:
- broadcast " "
- broadcast "{@tag} Chat zostal wyczyszczony przez &6%player%"
- else:
- send "{@tag} Nie masz dostepu do tej komendy!" to player
- on chat:
- if player has permissions "chat.bypass":
- stop
- else:
- if {chat} is off:
- cancel event
- send "{@tag} Chat jest aktualnie wylaczony!" to player
Advertisement
Add Comment
Please, Sign In to add comment