# # Autor Cygan # # options: czas: 3 #Ustaw ile chcesz miec czasu oczekiwania variables: {czatoff} = false command /chat [] [] [] []: aliases: c permission: permisja.chat permission message: &8&l>> &4Niestety nie posiadasz permisji! usage: &9Poprawne uzycie &6/chat &7 trigger: if arg 1 is not set: send "" send "&6/chat off &7- Wylacza chat" to player send "&6/chat on &7- Wlacza chat" to player send "&6/chat cc &7- Czysci chat" to player send "" if arg 1 is "off": if {czatoff} is false: set {czatoff} to true send "" to all players send " &7Chat zostal: &cWylaczony" to all players send " &7Przez administratora: &6%player%" to all players send "" to all players else: send "&c>> &6Chat jest juz wylaczony!" if arg 1 is "on": if {czatoff} is true: set {czatoff} to false send "" to all players send " &7Chat zostal: &aWlaczony" to all players send " &7Przez administratora: &6%player%" to all players send "" to all players else: send "&c>> &6Chat jest juz wlaczony!" if arg 1 is "chatwyczysc" or "cc": loop 100 times: send "" to all players send " &7Chat zostal: &aWyczyszczony" to all players send " &7Przez administratora: &6%player%" to all players on chat: if {czatoff} is true: player doesn't have permission "chat.bypass": cancel event send "&8>> &7Chat jest aktualnie &4wylaczony&7!" stop else: player doesn't have permission "cooldown.bypass": set {_waited} to difference between {chat.%player%.spam} and now if {_waited} is less than {@czas} seconds: send "&8>> &7Możesz pisać co &6{@czas} sekund!" cancel event stop set {chat.%player%.spam} to now