kamilpocwiard

Untitled

Apr 3rd, 2014
464
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.82 KB | None | 0 0
  1. on skript load:
  2. register new shaped recipe for clock of power 1 named "&c&lK-ROZDZKA" using air, block of emerald, air, air, block of emerald, air, air, stick, air
  3. variables:
  4. {tp.%player%} = false
  5. options:
  6. tag: &8[&2K-Rozdzka&8]
  7. on drop:
  8. if {tp.%player%} is true:
  9. cancel event
  10. send "&9Nie mozesz wyrzucac przedmiotow podczas teleportacji!"
  11. stop
  12. command /rozdzka [<TEXT>]:
  13. trigger:
  14. arg 1 is "help":
  15. send "&8################################################"
  16. send " &2&lK-ROZDZKA"
  17. send "&8################################################"
  18. send "&6Dostepne komendy:"
  19. send " &6/rozdzka help - &2Pokazuje informacje na temet skryptu"
  20. send " &6/rozdzka autor - &2Pokazuje autora skryptu"
  21. send " &6/rozdzka setspawn - &2Ustawia spawn"
  22. send " &6/rozdzka spawn - &2Teleportuje na spawn"
  23. send "&8################################################"
  24. arg 1 is "autor":
  25. send "&8################################################"
  26. send " &2&lK-ROZDZKA"
  27. send "&8################################################"
  28. send "&6Autorem skryptu jest:"
  29. send " &2KamilPocwiard"
  30. send " &21.0"
  31. send "&8################################################"
  32. arg 1 is "setspawn":
  33. if player has permission "krozdzka.setspawn":
  34. set {krozdzka} to location of player
  35. send "{@tag} &6Spawn zostal ustawiony!"
  36. stop
  37. else:
  38. send "&cNie masz pozwolenia do urzywanie tej komendy"
  39. arg 1 is "spawn":
  40. if player has permission "krozdzka.spawn":
  41. teleport player to {krozdzka}
  42. send "{@tag} &6Zostales przeteleportowany na spawn!"
  43. stop
  44. else:
  45. send "&cNie masz pozwolenia do urzywanie tej komendy"
  46. on right click:
  47. if player is holding clock:
  48. if name of the player's tool is "&c&lK-ROZDZKA":
  49. set {tp.%player%} to true
  50. remove clock of power 1 from player
  51. send "{@tag} &6Za 5 sekund zostaniesz przeteleportowany na spawn!"
  52. set {tp} to location of player
  53. wait 1 second
  54. if {tp} isn't location of player:
  55. send "{@tag} &6Teleportacja zostala przerwana!"
  56. set {tp.%player%} to false
  57. stop
  58. wait 1 second
  59. if {tp} isn't location of player:
  60. send "{@tag} &6Teleportacja zostala przerwana!"
  61. set {tp.%player%} to false
  62. stop
  63. wait 1 second
  64. if {tp} isn't location of player:
  65. send "{@tag} &6Teleportacja zostala przerwana!"
  66. set {tp.%player%} to false
  67. stop
  68. wait 1 second
  69. if {tp} isn't location of player:
  70. send "{@tag} &6Teleportacja zostala przerwana!"
  71. set {tp.%player%} to false
  72. stop
  73. wait 1 second
  74. if {tp} isn't location of player:
  75. send "{@tag} &6Teleportacja zostala przerwana!"
  76. set {tp.%player%} to false
  77. stop
  78. teleport player to {krozdzka}
  79. send "{@tag} &6Zostales przeteleportowany na spawn!"
  80. set {tp.%player%} to false
  81. stop
Advertisement
Add Comment
Please, Sign In to add comment