Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /chc <text>:
- permission: chatcontrol.cmd
- aliases: /chatcontrol, /chat
- usage: &a/chatcontrol status|on|off|clear
- trigger:
- arg 1 is "status":
- if sender has permission "chatcontrol.status":
- if {chatcontrol.status} is set:
- send "&aChat jest obecnie &4wylaczony"
- else:
- send "&aChat jest obecnie &2wlaczony"
- else:
- send "&cTyle mozliwosci! A permissji brak..."
- arg 1 is "on":
- if sender has permission "chatcontrol.toggle":
- delete {chatcontrol.status}
- send "&aWlaczyles chat na trybie"
- else:
- send "&cTyle mozliwosci! A permissji brak..."
- arg 1 is "off":
- if sender has permission "chatcontrol.toggle":
- set {chatcontrol.status} to true
- send "&aWylaczyles chat na trybie"
- else:
- send "&cTyle mozliwosci! A permissji brak..."
- arg 1 is "clear":
- if sender has permission "chatcontrol.clear":
- loop 40 times:
- broadcast ""
- broadcast " "
- broadcast " "
- broadcast " "
- else:
- send "&cTyle mozliwosci! A permissji brak..."
- on chat:
- {chatcontrol.status} is set:
- player do not have permission "chatcontrol.bypass":
- cancel event
- send "&cChat jest aktualnie wylaczony"
Advertisement
Add Comment
Please, Sign In to add comment