command /acase []: permission: op permission message: &f&l» &cNie posiadasz do tego uprawnień. trigger: if arg-1 is not set: send "&f&l» &cPoprawne użycie: /acase /" to player else: if arg-1 is not "on" or "off": send "&f&l» &cPoprawne użycie: /acase /" to player else: if arg-1 is "on": if {status.acase} is true: send "&f&l» &cCase są już uruchomione!" to player else: set {status.acase} to true send "&f&l» &aUruchomiono case" to player send title "&a&lCase" with subtitle "&8» &aUruchomiłeś możliwość otwierania case" for 4 seconds if arg-1 is "off": set {status.acase} to false send "&f&l» &cWyłączono case." to player send title "&a&lCase" with subtitle "&8» &cWyłączyłeś możliwośc otwierania case" for 4 seconds on script load: set {status.acase} to true send "&8» &aUruchomiono skrypt na case on/off." to all ops on place: if player's tool is chest named "premiumcase" with lore "lore 1 lore 2": if {status.acase} is false: cancel event send title "&a&lCase" with subtitle "&8» &cCase są wyłączone!" to player send "&f&l» &cNie możesz otworzyć case gdyż są one wyłączone przez administratora serwera." to player