# # # # # # # # # # # # # variables: {gamma::%player%} = false options: prefix: &6[&1&lZet&d&lCraft] &6» # # # # # # # # # # # # # command /gamma []: usage: {@prefix} &cPoprawne użycie: /gamma <*gracz*> trigger: set {_} to arg-1 parsed as offline player loop all players: add loop-player to {_g::*} if {_g::*} contains {_}: if {gamma::%{_}%} is true: set {gamma::%{_}%} to false remove night vision from {_} if arg-1 is not sender: if player has permission "tecraft.gamma.other": send "{@prefix} &aPomyślnie wyłączyłeś gamme graczowi &2%arg-1%&a." send "{@prefix} &cAdministrator wyłączył Twoją gamme." to {_} else: send "{@prefix} &cNie masz dostępu do tego argumentu." else: send "{@prefix} &aPomyślnie wyłączyłeś gamme." stop else if {gamma::%{_}%} is not true: set {gamma::%{_}%} to true apply infinite night vision without any particles whilst hiding icon to {_} if arg-1 is not sender: if sender has permission "tecraft.gamma.other": send "{@prefix} &aPomyślnie włączyłeś gamme graczowi &2%arg-1%&a." send "{@prefix} &cAdministrator włączył Twoją gamme." to {_} else: send "{@prefix} &cNie masz dostępu do tego argumentu." else: send "{@prefix} &aPomyślnie włączyłeś gamme." stop else: send "{@prefix} &cTen gracz nie istnieje jest offline." stop on tab complete of "/gamma": set tab completion for position 1 to all players stop on respawn: wait 1 tick if {gamma::%player%} is true: apply infinite night vision without any particles whilst hiding icon to player # # # # # # # # # # # # # # Skript by TeZetYT