command /spawnset: trigger: if player has permission "essentials.setspawn": set {spawn::serwer} to location of player send "&aPomyslnie ustawiles spawn" to player else: send "&cTa komenda nie istnieje lub nie masz do niej permissi" to player stop command /spawn: trigger: set {_x} to x-location of player set {_y} to y-location of player set {_z} to z-location of player send "&5[&3&lSPAWN&5] &eZa 5 sekund zostaniesz przeteleportowany do lobby!" loop 100 times: wait 1 tick set {_xx} to x-location of player set {_yy} to y-location of player set {_zz} to z-location of player if {_zz} isn't {_z}: send "&5[&3&lSPAWN&5] &cRuszyles sie! Teleportacja anulowana!" stop if {_yy} isn't {_y}: send "&5[&3&lSPAWN&5] &cRuszyles sie! Teleportacja anulowana!" stop if {_xx} isn't {_x}: send "&5[&3&lSPAWN&5] &cRuszyles sie! Teleportacja anulowana!" stop teleport player to {spawn::serwer} send "&5[&3&lSPAWN&5] &aZostales przeteleportowany do &clobby&a!"