command /kit [<text>]:
permission: kit.use
trigger:
if arg-1 is "gracz":
if {kit.gracz::%player's uuid%} is not set or difference between {kit.gracz::%player's uuid%} and now is greater than 48 hours:
send "&aOtrzymałeś zestaw Gracza!"
give player diamond sword
give player 16 steak
set {kit.gracz::%player's uuid%} to now
else:
send "&cZestaw Gracza dostępny raz na 48 godzin. Spróbuj ponownie później!"
else if arg-1 is "vip":
if player has permission "kit.vip":
if {kit.vip::%player's uuid%} is not set or difference between {kit.vip::%player's uuid%} and now is greater than 48 hours:
send "&aOtrzymałeś zestaw VIP!"
give player diamond sword
give player diamond chestplate
give player 32 steak
set {kit.vip::%player's uuid%} to now
else:
send "&cZestaw VIP dostępny raz na 48 godzin. Spróbuj ponownie później!"
else:
send "&cNie masz dostępu do zestawu VIP!"
else if arg-1 is "svip":
if player has permission "kit.svip":
if {kit.svip::%player's uuid%} is not set or difference between {kit.svip::%player's uuid%} and now is greater than 48 hours:
send "&aOtrzymałeś zestaw SVIP!"
give player diamond sword
give player diamond chestplate
give player diamond leggings
give player 64 steak
set {kit.svip::%player's uuid%} to now
else:
send "&cZestaw SVIP dostępny raz na 48 godzin. Spróbuj ponownie później!"
else:
send "&cNie masz dostępu do zestawu SVIP!"
else if arg-1 is "elita":
if player has permission "kit.elita":
if {kit.elita::%player's uuid%} is not set or difference between {kit.elita::%player's uuid%} and now is greater than 48 hours:
send "&aOtrzymałeś zestaw Elity!"
give player diamond sword
give player diamond chestplate
give player diamond leggings
give player diamond boots
give player 64 steak
set {kit.elita::%player's uuid%} to now
else:
send "&cZestaw Elity dostępny raz na 48 godzin. Spróbuj ponownie później!"
else:
send "&cNie masz dostępu do zestawu Elity!"
else:
send "&cNiepoprawna nazwa zestawu! Użyj: gracz, vip, svip, elita."