command /setspawn: trigger: if player has permission "setspawn.admin": set {y} to x-location of player set {z} to z-location of player set {spawn.spawn} to location of player send "&aPomyslnie ustawiles spawn" on script load: register new shaped recipe for stick of knockback 2 named "&4Rozdzka teleportujaca" using air, gold block, air, air, stick, air, air, stick, air on rightclick: if name of player's tool is "&4Rozdzka teleportujaca": execute console command "pex user %player% add sk.rozdzka" apply nausea 2 to the player for 30 seconds wait 3 second execute player command "/teleport" execute console command "pex user %player% remove sk.rozdzka" remove nausea from player remove 1 stick named "&4Rozdzka teleportujaca" from player send "&6Teleportuje na spawn" command /spawn: trigger: send "&8Aby przeteleportowac na spawn musisz miec rozdzke teleportacyjna" send "&8Aby ja stworzyc potrzebujesz 1 blok zlota i 2 patyki" send "&8Albo isc na kordy: &3y:&f%{y}% z:&f%{z}%" stop command /teleport: trigger: if player has permission "sk.rozdzka": teleport the player to {spawn.spawn}