Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {chatoff} = false
- command /c [<text>] [<text>] [<text>] [<text>]:
- aliases: /chat
- permission: cchat.admin
- permission message: Nie masz uprawnien do uzycia tej komendy!
- trigger:
- if arg 1 is not set:
- send "&9/chat off &7- Wylacza chat"
- send "&9/chat on &7- Wlacza chat"
- send "&9/chat cc &7- Czysci chat"
- if arg 1 is "off":
- if {chatoff} is false:
- set {chatoff} to true
- broadcast "&8>> &9Chat zostal wylaczony przez: &c%player%"
- else:
- send "&c>> &6Chat jest juz wylaczony!"
- if arg 1 is "on":
- if {chatoff} is true:
- set {chatoff} to false
- broadcast "&8>> &9Chat zostal wlaczony przez: &c%player%"
- else:
- send "&c>> &6Chat jest juz wlaczony!"
- if arg 1 is "c" or "wyczysc" or "cc":
- loop 100 times:
- broadcast ""
- broadcast "&8>>Chat zostal wczyszczony przez&c %player%"
- on chat:
- if {chatoff} is true:
- player doesn't have permissions "chat.admin":
- cancel event
- send "&9>> &7Chat jest aktualnie wylaczony!"
- on chat:
- set {_waited} to difference between {spam.%player%.lastused} and now
- if {_waited} is less than 3 seconds:
- message "&8>>&7Nastepna wiadomosc za &c3 sekundy"
- cancel event
- stop
- set {spam.%player%.lastused} to now
Advertisement
Add Comment
Please, Sign In to add comment