Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {chatoff} = false
- command /chat [<text>] [<text>] [<text>] [<text>]:
- aliases: /chat
- permission: fejmhc.chat
- permission message: "&cNie masz permissi &7(fejmhc.chat)"
- trigger:
- if arg 1 is not set:
- send "&6/chat off &7- &eWylacza chat"
- send "&6/chat on &7- &eWlacza chat"
- send "&6/chat clear &7- &eCzysci chat"
- send "&6/chat info &7- &eInformacje o autorze"
- if arg 1 is "info" or "autor":
- send "&6&lSkrypt na chat stworzony przez &cMatiKk1337_"
- send "&6&lWersja: &70.1"
- if arg 1 is "off":
- if {chatoff} is false:
- set {chatoff} to true
- broadcast "&6Chat zostal wylaczony przez &a%player%"
- else:
- send "&6Chat jest juz wylaczony!"
- if arg 1 is "on" or "wlacz":
- if {chatoff} is true:
- set {chatoff} to false
- broadcast "&6Chat zostal wlaczony przez &a%player%"
- else:
- send "&6Chat jest juz wlaczony!"
- if arg 1 is "clear" or "cc":
- loop 100 times:
- broadcast ""
- broadcast "&6Chat zostal wyczyszczony przez &a%player%"
- on chat:
- if {chatoff} is true:
- player doesn't have permissions "fejmhc.chat":
- cancel event
- send "&6Chat jest aktualnie wylaczony"
Advertisement
Add Comment
Please, Sign In to add comment