Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {chatpower} = on
- on chat:
- if {chatpower} is off:
- if player doesn't have permission "essentialsmini.chatmenager":
- cancel event
- send "&4Nie mozesz pisac gdy chat jest wylaczony!"
- else:
- set message to "%message%"
- command /chat <text>:
- description: Zarzadzanie czatem
- usage: Napisz "/chat help" aby zobaczyc argumenty tej komendy
- trigger:
- if player has permission "essentialsmini.chatmenager":
- if arg is "help" or "h" or "?":
- message "&4Argumenty /chat:"
- message " "
- message "&a/chat clear - Czysci czat
- message "&a/chat clean - Czysci czat
- message "&a/chat off - Wylacza czat"
- message "&a/chat on - Wlacza czat"
- if arg is "on":
- if {chatpower} is "on" or "off":
- set {chatpower} to on
- broadcast "&aCzat zostal wlaczony przez &4%player%&4!"
- if arg is "off":
- if {chatpower} is "on" or "off":
- set {chat} to off
- broadcast "&4Czat zostal wylaczony przez &4%player%&4!"
- if arg is "clean" or "clear":
- loop 150 times:
- broadcast ""
- broadcast "&aCzat zostal wyczyszczony przez &4%player%&4!"
- else:
- send "&4Nie masz uprawnien do tego!"
Advertisement
Add Comment
Please, Sign In to add comment