Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options: #<<<< nie ruszaj :D
- #Skript by LordziaK.
- #Prosze nie podszywac sie pod skript.
- #
- #PERMISSIE:
- # - lchat.* - permissia do wszystkiego
- # - lchat.pisz - pozwala pisac gdy chat jest off
- #\/ \/ \/
- #OPCJE
- #\/ \/ \/
- off: &6Chat zostal &cWYLACZONY
- on: &6Chat zostal &aWLACZONY
- clear: &6Chat zostal &eWYCZYSZCZONY
- nochat: &cChat jest wylaczony.
- nopermission: &cNie masz permissi &7(lchat.*)
- chat-jest-juz-off: &c&nChat jest juz &4wylaczony&c&n.
- chat-jest-juz-on: &c&nChat jest juz&a wlaczony&c&n.
- #/\ /\ /\
- #OPCJE
- #/\ /\ /\
- command /chat [<text>]:
- description: Skript na chat. :)
- aliases: lchat
- permission: lchat.*
- permission message: {@nopermission}
- trigger:
- if executor is player:
- if arg 1 is not set:
- open chest with 1 rows named "LChat" to player
- wait 2 ticks
- format slot 0 of player with 1 of 131 named "&4OFF" to run [execute player command "chat wylacz"]
- format slot 1 of player with 1 of 131 named "&aON" to run [execute player command "chat wlacz"]
- format slot 2 of player with 1 of 131 named "&6CLEAR" to run [execute player command "chat wyczysc"]
- format slot 8 of player with 1 of 131 named "&c&nSkript reload" to run [execute player command "sk reload chat"]
- if arg 1 is "wylacz":
- if {chat.stan} is false:
- send "{@chat-jest-juz-off}"
- stop
- set {chat.stan} to false
- broadcast "{@off}"
- stop
- if arg 1 is "wlacz":
- if {chat.stan} is true:
- send "{@chat-jest-juz-on}"
- stop
- set {chat.stan} to true
- broadcast "{@on}"
- stop
- if arg 1 is "wyczysc":
- loop 100 times:
- broadcast ""
- broadcast "{@clear}"
- stop
- on chat:
- if {chat.stan} is false:
- if player has permission "lchat.pisz" or "lchat.*":
- stop trigger
- else:
- cancel event
- send "{@nochat}"
- stop trigger
Advertisement
Add Comment
Please, Sign In to add comment