Guest User

Untitled

a guest
Dec 10th, 2014
623
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.75 KB | None | 0 0
  1. #*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*
  2. #| Skrypt by MrPatryk07 |
  3. #| Nazwa: Dzialki |
  4. #| Opis: |
  5. #| Za pomoca cmd robi dzialke 8x8x8 ale trzeba byc w odleglosci od [wczesniej ustawionego] spawnu 50kratek. |
  6. #| Komendy: /d zaloz, usun, tp, setspawn, pomoc. Trzeba miec permission dzialki.admin aby ustawic ,,spawn dla dzialek" |
  7. #*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*
  8.  
  9.  
  10. command /d [<text>]:
  11. trigger:
  12. if arg 1 is "zaloz":
  13. if {dzialki.spawn} is set:
  14. if distance between {dzialki.spawn} and location of player is greater than 50:
  15. if {dzialki.posiadacz.%name of player%} is not set:
  16. make console execute command "pex user %name of player% add worldedit.*"
  17. make console execute command "pex user %name of player% add worldguard.*"
  18. make player execute command "//pos1"
  19. make player execute command "//pos2"
  20. make player execute command "//expand 10 n"
  21. make player execute command "//expand 10 e"
  22. make player execute command "//expand 10 s"
  23. make player execute command "//expand 10 w"
  24. make player execute command "//expand vert"
  25. wait 1 tick
  26. make player execute command "rg define d%player%"
  27. wait 1 tick
  28. make console execute command "pex user %name of player% remove worldguard.*"
  29. make console execute command "pex user %name of player% remove worldedit.*"
  30. set {dzialki.home.%player%} to location of player
  31. set {dzialki.posiadacz.%name of player%} to true
  32. send " "
  33. send " "
  34. send " "
  35. send " "
  36. send " "
  37. send " "
  38. send " "
  39. send " "
  40. send " "
  41. send " "
  42. send " "
  43. send " "
  44. send " "
  45. send " "
  46. send " "
  47. send " "
  48. send " "
  49. send " "
  50. send " "
  51. send " "
  52. send "&eZalozyles Dzialke!"
  53. send " "
  54. send " "
  55. send " "
  56. send " "
  57. send " "
  58. else:
  59. send "&cMasz juz dzialke! Wpisz /d tp aby sie deleportowac na nia lub /d usun aby usunac!"
  60. else:
  61. send "&cMusisz byc w odleglosci 50kratek od spawnu!"
  62. if arg 1 is "usun":
  63. if {dzialki.posiadacz.%player%} is true:
  64. make console execute command "pex user %name of player% add worldedit.*"
  65. make console execute command "pex user %name of player% add worldguard.*"
  66. make player execute command "rg remove d%player%"
  67. make console execute command "pex user %name of player% remove worldguard.*"
  68. make console execute command "pex user %name of player% remove worldedit.*"
  69. send "&4Nie masz juz dzialki!"
  70. clear {dzialki.posiadacz.%name of player%}
  71. send " "
  72. send " "
  73. send " "
  74. send " "
  75. send " "
  76. send "&eUsunoles dzialke!!"
  77. send " "
  78. send " "
  79. send " "
  80. send " "
  81. send " "
  82. else:
  83. send "&4Nie masz dzialki!"
  84. if arg 1 is "setspawn":
  85. set {dzialki.spawn} to location of player
  86. send "&4Ustawiles spawn dla swiata dzialek!"
  87. if arg 1 is "tp":
  88. if {dzialki.home.%player%} is set:
  89. send "&eZostaniesz teleportowany za &c4s &ena swoja dzialke!"
  90. wait 4 seconds
  91. teleport player to {dzialki.home.%name of player%}
  92. else:
  93. send "&4Nie masz Dzialki!"
  94. if arg 1 is "pomoc" or "help":
  95. send "&eLista komend:"
  96. send "&e/d zaloz - w odleglosci 50 kratek od spawnu mozesz zalozyc dzialke o wymierach 10x10x10"
  97. send "&e/d usun - usuwasz dzialke"
  98. send "&e/d tp - po 5 sekundach teleportuje cie na dzialke"
  99. send "&ePlugin by MrPatryk07"
  100. if player is op:
  101. send "&c/d setspawn - aby ustawic spawn dla swiata dzialek. W odleglosci 50 kratek gracze beda mogli zakladac dzialki"
  102. if arg 1 is not set:
  103. send "&eLista komend:"
  104. send "&e/d zaloz - w odleglosci 50 kratek od spawnu mozesz zalozyc dzialke o wymierach 10x10x10"
  105. send "&e/d usun - usuwasz dzialke"
  106. send "&e/d tp - po 5 sekundach teleportuje cie na dzialke"
  107. send "&ePlugin by MrPatryk07"
  108. wait 1 tick
  109. if player is op:
  110. send "&c/d setspawn - aby ustawic spawn dla swiata dzialek. W odleglosci 50 kratek gracze beda mogli zakladac dzialki"
Advertisement
Add Comment
Please, Sign In to add comment