Guest User

Untitled

a guest
Oct 22nd, 2014
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. on load:
  2. 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
  3. on rightclick with stick:
  4. name of player's tool is "&6Magiczna Rozdzka":
  5. player has permissions "rozdzka.tp":
  6. send "&6Teleportacja nastapi za 5 sekund, nie ruszaj sie!"
  7. set {_x.%player%} to "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%"
  8. loop 5 times:
  9. wait 1 second
  10. if {_x.%player%} is not "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%":
  11. send "&cPoruszyles sie, teleportacja anulowana!"
  12. stop
  13. teleport player to spawn point
  14. remove 1 stick of knockback 2 named "&6Magiczna Rozdzka" with lore "&cKliknij PPM, aby przeteleportowac sie na spawn" from the player
  15. send "&6Przeteleportowano na spawn!"
  16. else:
  17. send "&cNie masz permisji"
Advertisement
Add Comment
Please, Sign In to add comment