Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on load:
- register new shaped recipe for stick of knockback 2 named "&6Magiczna Rozdzka" with lore "&cKliknij PPM, aby przeteleportowac sie na spawn" using none, gold block, none, none, gold block, none, none, stick, none
- on rightclick with stick:
- name of player's tool is "&6Magiczna Rozdzka":
- player has permissions "rozdzka.tp":
- send "&6Teleportacja nastapi za 5 sekund, nie ruszaj sie!"
- set {_x.%player%} to "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%"
- loop 5 times:
- wait 1 second
- if {_x.%player%} is not "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%":
- send "&cPoruszyles sie, teleportacja anulowana!"
- stop
- teleport player to spawn point
- remove 1 stick of knockback 2 named "&6Magiczna Rozdzka" with lore "&cKliknij PPM, aby przeteleportowac sie na spawn" from the player
- send "&6Przeteleportowano na spawn!"
- else:
- send "&cNie masz permisji"
Advertisement
Add Comment
Please, Sign In to add comment