options: pkt: 10 variables: {lvl.%player%} = 0 {plvl.%player%} = 0 {pplvl.%player%} = false on mine of stone: if {pplvl.%player%} is true: chance of 100%: add 1 to {lvl.%player%} if {lvl.%player%} is {@pkt}: set {lvl.%player%} to 0 add 1 to {plvl.%player%} send "" send " &8* &7Gratulacje awansowales na kolejny lvl kopania!" send " &8* &7Lvl&8: &6%{plvl.%player%}%" send "" send player title "&6&lGRATULACJE" with subtitle "&7Awansujesz na %{plvl.%player%}% lvl kopania" for 3 seconds execute console command "playsound minecraft:entity.zombie_villager.converted voice %player% ~ ~ ~ 1.0 0.0 1.0" if {plvl.%player%} is 30 or 40 or 50 or 60 or 70 or 80 or 90: broadcast "&8* &7Gracz &6%player% &7awansowal na &6%{plvl.%player%}% &7lvl kopania&8!" execute console command "playsound minecraft:ambient.cave voice @a ~ ~ ~ 1.0 1.0 1.0" if {plvl.%player%} is 100: if {pplvl.%player%} is true: set {pplvl.%player%} to false broadcast "&8* &7Gracz &6%player% &7awansowal na &e100 &7lvl kopania&8!" send players title "&6%player%" with subtitle "&7Awansuje na 100 lvl kopania" for 5 seconds execute console command "playsound minecraft:entity.enderdragon.ambient voice @a ~ ~ ~ 1.0 1.0 1.0" stop command /lvl [] []: trigger: if arg 1 is not set: send " &8* &6Twoje statystyki kopania:" send "" send " &8* &7Punkty Kopania&8: &e%{lvl.%player%}%/{@pkt}" send " &8* &7Lvl Kopania&8: &e%{plvl.%player%}%" send "" if arg 1 is "resetuj": if arg 2 is not empty: if has permissions "lvl.resetuj": set {plvl.%arg 2%} to 0 set {pplvl.%arg 2%} to true send "&8* &7Zresetowales lvl kopania graczowi &6%arg 2%" else: send "&8* &7Nie masz dostepu do tej komendy!" else: send "&8* &7Poprawne uzycie &e/lvl resetuj (nick)" on chat: set message to "&8[&6%{plvl.%player%}%lv&8] &7%display name of player%&8: &7%message%"