variables: {login.%player%} = false {afk.%player%} = false {liczba:%player%} = 30 {muza:%player%} = false on join: set {login.%player%} to false set {afk.%player%} to false set {liczba:%player%} to 30 set {muza:%player%} to false execute console command "speed walk 1 %player%" execute console command "playmoresounds play mob.villager.no %player%" on join: loop 20 times: if {login.%player%} is false: execute console command "playmoresounds play note.pling %player% 10 0" wait 1 second loop 14 times: if {login.%player%} is false: execute console command "playmoresounds play note.pling %player% 10 1" wait 0.5 second loop 12 times: if {login.%player%} is false: execute console command "playmoresounds play note.pling %player% 10 2" wait 0.25 second on authme login: set {login.%player%} to true send player title "&a&lZalogowano!" with subtitle "&eZyczymy milej gry!" for 2 seconds execute console command "playmoresounds play random.levelup %player% 10 2" on join: loop 20 times: if {login.%player%} is false: set action bar of player to "&a&l%{liczba:%player%}%" remove 1 from {liczba:%player%} wait 1 second loop 7 times: if {login.%player%} is false: set action bar of player to "&e&l%{liczba:%player%}%" remove 1 from {liczba:%player%} wait 1 second loop 3 times: if {login.%player%} is false: set action bar of player to "&c&l%{liczba:%player%}%" remove 1 from {liczba:%player%} wait 1 second on quit: set {login.%player%} to false set {liczba.%player%} to 30 set {afk.%player%} to false command /afk []: trigger: if argument 1 is not set: send "&7Uzyj: &e/afk &6on/off" execute console command "playmoresounds play mob.villager.no %player%" if argument 1 is "on": teleport player to location at 57, 99, -280 in world "world" set {afk.%player%} to true if {muza:%player%} is false: wait 0.5 second set {muza:%player%} to true execute console command "afkmuza %player%" loop 222 times: if {afk.%player%} is true: wait 0.6 second send player title "&c&lAFK" with subtitle "&4&lWpisz /afk off &4&laby wylaczyc afk" for 0.6 seconds else: stop if argument 1 is "off": set {afk.%player%} to false execute console command "speed walk 1 %player%" teleport player to location at -45, 81, -119 in world "world" command /afkmuza : executable by: console trigger: execute console command "playmoresounds play records.mall %arg-1% 10 1" wait 150 second set {muza:%player%} to false on any move: if {afk.%player%} is true: cancel event