options: pc-item: chest pc-nazwa: &b&lPremium &9&lCase command /premiumcase [] [] []: aliases: /pc trigger: if player has permission "premiumcase.give": if arg-1 is "give": if arg-2 is integer: if arg-3 is set: add arg-2 of {@pc-item} named {@pc-nazwa} to arg-3's inventory send "&bOtrzymales {@pc-nazwa}&b od &c&l%player%!" to arg-3 else: send "&cZla komenda! Wpisz /premiumcase pomoc, aby uzyskac pomoc!" to player else: send "&cZla komenda! Wpisz /premiumcase pomoc, aby uzyskac pomoc!" to player else: send "&cZla komenda! Wpisz /premiumcase pomoc, aby uzyskac pomoc!" to player else: send "&cBrak permisji!" to player if player has permission "premiumcase.give.all": if arg-1 is "all": if arg-2 is integer: if arg-3 is not set: give arg-2 of {@pc-item} named {@pc-nazwa} to all player's send "&bOtrzymales {@pc-nazwa}&b od &c&l%player%!" to all player's else: send "&cZla komenda! Wpisz /premiumcase pomoc, aby uzyskac pomoc!" to player else: send "&cZla komenda! Wpisz /premiumcase pomoc, aby uzyskac pomoc!" to player else: send "&cZla komenda! Wpisz /premiumcase pomoc, aby uzyskac pomoc!" to player else: send "&cBrak permisji!" to player if player has permission "premiumcase.powiadomienia" if arg-1 is "powiadomienia": if arg-2 is "on": set {pc-powiadomienia::%player%} to true send "&bWlaczyles powiadomienia." to player if arg-2 is "off": set {pc-powiadomienia::%player%} to false: send "&bWylaczyles powiadomienia." to player else: send "&cZla komenda! Wpisz /premiumcase pomoc, aby uzyskac pomoc!" to player else: send "&cZla komenda! Wpisz /premiumcase pomoc, aby uzyskac pomoc!" to player else: send "&cBrak permisji!" to player on place: if player is holding a {@pc-item} named "{@pc-nazwa}": cancel event remove 1 chest named "&9&lPremiumCase" from player loop all players: if {pc-powiadomienia::%loop-player%} is true: send "&c%player% &7otworzyl {@pc-nazwa} &7i wylosowal&8:" to loop-players chance of 25%: drop 1 diamond sword of sharpness 5 and fire aspect 2 loop all players: if {pc-powiadomienia::%loop-player%} is true: send "&8- &cMiecz 5/2" chance of 25%: drop 1 diamond helmet of protection 4 and unbreaking 3 loop all players: if {pc-powiadomienia::%loop-player%} is true: send "&8- &cHelm 4/3" chance of 25%: drop 1 diamond chestplate of protection 4 and unbreaking 3 loop all players: if {pc-powiadomienia::%loop-player%} is true: send "&8- &cKlate 4/3" chance of 25%: drop 1 diamond boots of protection 4 and unbreaking 3 loop all players: if {pc-powiadomienia::%loop-player%} is true: send "&8- &cSpodnie 4/3" chance of 25%: drop 1 diamond boots of protection 4 and unbreaking 3 loop all players: if {pc-powiadomienia::%loop-player%} is true: send "&8- &cButy 4/3" chance of 25%: drop 64 block of emerald loop all players: if {pc-powiadomienia::%loop-player%} is true: send "&8- &a64&7x&ablokow emeraldow" chance of 25%: drop 1 diamond pickaxe of efficiency 6 and fortune 3 and unbreaking 3 named "&aKilof szybkosci I" loop all players: if {pc-powiadomienia::%loop-player%} is true: send "&8- &aKilof szybkosci I" chance of 25%: drop 1 cobblestone named "&cCobble&fX" loop all players: if {pc-powiadomienia::%loop-player%} is true: send "&8- &cCobbleX" chance of 25%: drop 1 obsidian named "&9BoyFarmer" loop all players: if {pc-powiadomienia::%loop-player%} is true: send "&8- &cBoyFarmer" chance of 25%: drop 1 sand named "&9SandFarmer" loop all players: if {pc-powiadomienia::%loop-player%} is true: send "&8- &cSandFarmer" chance of 25%: drop 16 ender pearl loop all players: if {pc-powiadomienia::%loop-player%} is true: send "&8- &c16&7x&cPerel" chance of 25%: drop 64 tnt loop all players: if {pc-powiadomienia::%loop-player%} is true: send "&8- &c64&7x&cTnt" chance of 25%: drop 64 block of gold loop all players: if {pc-powiadomienia::%loop-player%} is true: send "&8- &c64&7x&cBlokow zlota" chance of 25%: drop 64 block of diamond loop all players: if {pc-powiadomienia::%loop-player%} is true: send "&8- &c64&7x&cBlokow diamentow" chance of 1%: drop 1 beacon loop all players: if {pc-powiadomienia::%loop-player%} is true: send "&8- &a&lB&b&lE&e&lA&c&lC&9&lO&7&N&5&lA"