on join: set {vip.cooldown::%player%} to 0 set {svip.cooldown::%player%} to 0 on right click: if targeted block is green wool: if player has permission "gracz.wel": send "&aOtrzymales zestaw gracza!" give player iron helmet give player iron chestplate give player iron leggings give player iron boots give player diamond sword of sharpness 1 stop else: send "&cNie masz uprawnien (gracz.wel)" if targeted block is orange wool: if player has permission "vip.wel": if {vip.cooldown::%player%} is equal to 0: send "&aOtrzymales zestaw vipa!" give player iron helmet of protection 2 give player iron chestplate of protection 2 give player iron leggings of protection 2 give player iron boots of protection 2 give player diamond sword of sharpness 4 set {vip.cooldown::%player%} to 50 stop else: send "&cJuz odebrales ten zestaw! Poczekaj &7%{vip.cooldown::%player%}%&c sekund." else: send "&cNie masz uprawnien VIPa" if targeted block is white wool: if player has permission "svip.wel": if {svip.cooldown::%player%} is equal to 0: send "&aOtrzymales zestaw svipa!" give player diamond helmet of protection 5 give player diamond chestplate of protection 5 give player diamond leggings of protection 5 give player diamond boots of protection 5 give player diamond sword of sharpness 5 set {svip.cooldown::%player%} to 300 stop else: send "&cJuz odebrales ten zestaw! Poczekaj &7%{svip.cooldown::%player%}%&c sekund." else: send "&cNie masz uprawnien SVIPa" every 1 second: loop all players: if {vip.cooldown::%loop-player%} exists: if {vip.cooldown::%loop-player%} is greater than 0: remove 1 from {vip.cooldown::%loop-player%} if {svip.cooldown::%loop-player%} exists: if {svip.cooldown::%loop-player%} is greater than 0: remove 1 from {svip.cooldown::%loop-player%}