Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Options:
- czas: 2
- tag: &7[&4&lBasic&6&lPlay&7]
- tags: &7[&4&lAdmin&6&lChat&7]
- author: &3Frikos
- Variables:
- {czat.pisz} = true
- {czat.spam.%player%} = false
- {ranga.%player%} = false
- Command /czat [<text>]:
- trigger:
- If argument is not set:
- player has permissions "czat.pomoc":
- message "&a========== {@tag} &a=========="
- message "&d/czat &6- &bglowne komendy"
- message "&d/czat on/off &6- &bwlacza/wylacza czat"
- message "&d/czat czysc &6- &bczysci czat"
- message "&cAutorem skryptu jest {@author}"
- message "&a========== {@tag} &a=========="
- else:
- message "{@tag} &cNie masz uprawnien!"
- stop
- If argument is "on":
- If player doesn't have permissions "czat.on":
- Send "{@tag} &bNie masz uprawnien!"
- stop trigger
- If {czat.pisz} is true:
- Send "{@tag} &bCzat jest juz wlaczony"
- stop trigger
- Else:
- set {czat.pisz} to true
- Send "{@tag} &aCzat zostal wlaczony przez &c» &4&l%player%" to all players
- loop all players:
- execute console command "playsound random.door_open %loop-player%"
- stop trigger
- If argument is "off":
- If player doesn't have permissions "czat.off":
- Send "{@tag} &aNie masz uprawnien!"
- stop trigger
- If {czat.pisz} is false:
- Send "{@tag} &aChat jest juz wylaczony!"
- stop trigger
- Else:
- set {czat.pisz} to false
- send "{@tag} &aCzat zostal wylaczony przez &c» &4&l%player%" to all players
- loop all players:
- execute console command "playsound random.door_close %loop-player%"
- stop trigger
- If argument is "czysc":
- If player doesn't have permissions "czat.czysc":
- send "{@tag} &cNie masz uprawnien!"
- stop trigger
- else:
- Loop 100 times:
- Send "" to all players
- Send "{@tag} &aCzat wyczyszczony przez &c» &4&l%player%" to all players
- loop all players:
- execute console command "playsound random.click %loop-player%"
- stop trigger
- If argument is not "on" or "off" or "czysc" or "pomoc" or "autor":
- If player doesn't have permissions "czat.pomoc":
- Send "&8{@tag} &bNie masz uprawnien!"
- stop trigger
- Send "{@tag} &cNieprawidlowa komenda. Wpisz &c/czat pomoc&b."
- stop trigger
- On chat:
- If {czat.pisz} is false:
- If player doesn't have permission "czat.pisz":
- Send "{@tag} &bChat jest wylaczony!"
- cancel event
- else:
- cancel event
- broadcast "&7[&a%{poziom.%player%}%&7] %display name of player%&7: %message%"
- if {czat.pisz} is true:
- if player has permissions "pisz.admin":
- cancel event
- broadcast "&7[&a%{poziom.%player%}%&7] %display name of player%&7: %message%"
- if {czat.pisz} is true:
- if {czat.spam.%player%} is false:
- if player doesn't have permission "czat.spam":
- set {czat.spam.%player%} to true
- cancel event
- send "{@tag} &cWiadomosc mozesz wysylac co &f{@czas} sekund!"
- wait {@czas} second
- set {czat.spam.%player%} to false
- stop
- on join:
- set join message to "&b%name of player% &edolaczyl do gry"
- on quit:
- set leave message to "&b%name of player% &eopuscil gre"
- Command /bc [<text>]:
- trigger:
- If argument is not set:
- send "{@tag} &cBlad ! Poprawne uzycie &6/bc <wiadmosc>!"
- stop trigger
- If arg is set:
- broadcast "{@tag} &a%arg 1%"
- stop trigger
- Command /say [<text>]:
- trigger:
- If argument is not set:
- send "{@tag} &cBlad ! Poprawne uzycie &6/say <wiadmosc>!"
- stop trigger
- If arg is set:
- broadcast "&7[&4&lServer&7] &a%arg 1%"
- stop trigger
- command /rank [<text>] [<text>]:
- trigger:
- if player has permission "nadaj.range":
- arg 1 is set:
- execute console command "/pex user %arg 1% group set %arg 2%"
- broadcast "{@tag} &cGracz &6%arg 1% &cawansowal na &4%arg 2%&c!!"
- broadcast "&b&lGratulujemy! :)"
- else:
- send "{@tag} &cBlad ! Wpisz &6/rank [gracz] [ranga]"
- else:
- send "{@tag} &cNie mozesz tego dokonac!"
- command /ac [<text>]:
- permission: admin.chat
- trigger:
- arg is set:
- loop all players:
- loop-player has permission "admin.chat"
- send "{@tags} &4%display name of player%&7: &6%arg%" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement