c4G0917K
Język: Skript
|
Autor: Anonimowy
variables: {premiumcase.notifications.%player%} = true options: tag: &9&lPREMIUMCASE &8»&7 tagnocheck: &9&lPREMIUMCASE&7 wwwtag: &9&lWWW&7 www: kutas-kozla.eu blank: &8 command /case [<text>] [<integer>]: permission: premium.admin trigger: if arg-1 is not set: send "&7Poprawne uzycie &c/case nick/all ilosc" if arg-1 is set: if arg-2 is not set: send "&7Poprawne uzycie &c/case nick/all ilosc" if arg-1 is not "all": if arg-2 is set: loop arg-2 times: execute console command "give %arg 1% chest 1 name:&9&lPremiumCase" broadcast "&2&lGBMC.PL &8-> &eOtrzymales &c%arg 2% &9&lPremiumCase" if arg-1 is "all": if arg-2 is set: loop arg-2 times: loop all players: execute console command "give %loop-player% chest 1 name:&9&lPremiumCase" broadcast "&2&lGBMC.PL &8-> &eCaly serwer dostal &c%arg 2% &9&lPremiumCase" on place: if player is holding a chest named "&9&lPremiumCase": cancel event remove 1 chest named "&9&lPremiumCase" from player loop all players: if {premiumcase.notifications.%loop-players%} is true: send "{@blank}" send " &a%player% &7otworzyl {@tagnocheck} i dostal:" chance of 20%: drop 1 diamond helmet of protection 4 and unbreaking 3 drop 1 diamond chestplate of protection 4 and unbreaking 3 loop all players: if {premiumcase.notifications.%loop-players%} is true: send " &4&l» &f1 &7x &eHelm 4/3" to loop-player send " &4&l» &f1 &7x &eKlate 4/3" to loop-player