Guest User

Untitled

a guest
Apr 13th, 2015
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. script load:
  2. register new shaped recipe for blaze rod of thorns 10 named "&6&lMagiczny Kij" using air, air, gold block, air, ender pearl, air, stick, air, air
  3.  
  4. on rightclick with a blaze rod of thorns 10:
  5. if {spawn} isn't set:
  6. send "&cWykryto blad w pluginie (nie ustawiono spawnu)!" to player
  7. send "&cZglos to administratorowi!" to player
  8. stop
  9. set {_pos} to block above player
  10. send "&8&l[&6&lPS&8&l] &aZostaniesz przeteleportowany za 7 sekund! Nie ruszaj sie!"
  11. loop 28 times:
  12. wait 5 ticks
  13. set {_pos2} to block above player
  14. if {_pos2} isn't {_pos}:
  15. send "&4Ruszyles sie! Teleportacja przerwana!" to player
  16. stop
  17. if player isn't holding a blaze rod of thorns 10:
  18. send "&4Musisz miec rozdzke w rece!" to player
  19. stop
  20. teleport player to {spawn}
  21. send "&8&l[&6&lPS&8&l] &aZostales przeteleportowany!" to player
  22. remove blaze rod of thorns 10 from the player's inventory
  23. stop
  24. command /protections-setspawn:
  25. trigger:
  26. if player has permission "protections.setspawn":
  27. set {spawn} to location of player
  28. send "&8&l[&6&lPS&8&l] &bPomyslnie ustawiono spawn!" to player
Advertisement
Add Comment
Please, Sign In to add comment