Guest User

Untitled

a guest
Dec 10th, 2014
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.02 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. #| Wersja: 1.5
  8. #*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*
  9.  
  10. options:
  11. logo: &e-==== &6&lDzialki &e====- # Co ma pisać w naglowku w komendach.
  12.  
  13. command /d [<text>]:
  14. trigger:
  15. if arg 1 is "zaloz":
  16. if {dzialki.spawn} is set:
  17. if distance between {dzialki.spawn} and location of player is greater than 50:
  18. if {dzialki.posiadacz.%name of player%} is not set:
  19. make console execute command "pex user %name of player% add worldedit.*"
  20. make console execute command "pex user %name of player% add worldguard.*"
  21. make player execute command "//pos1"
  22. make player execute command "//pos2"
  23. make player execute command "//expand 10 n"
  24. make player execute command "//expand 10 e"
  25. make player execute command "//expand 10 s"
  26. make player execute command "//expand 10 w"
  27. make player execute command "//expand vert"
  28. wait 1 tick
  29. make player execute command "rg define d%player%"
  30. wait 1 tick
  31. make console execute command "pex user %name of player% remove worldguard.*"
  32. make console execute command "pex user %name of player% remove worldedit.*"
  33. set {dzialki.home.%player%} to location of player
  34. set {dzialki.posiadacz.%name of player%} to true
  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 " "
  53. send " "
  54. send " "
  55. send "{@logo}"
  56. send " "
  57. send "&eZalozyles Dzialke!"
  58. send " "
  59. send " "
  60. send " "
  61. send " "
  62. send " "
  63. else:
  64. send "&cMasz juz dzialke! Wpisz /d tp aby sie deleportowac na nia lub /d usun aby usunac!"
  65. else:
  66. send "&cMusisz byc w odleglosci 50kratek od spawnu!"
  67. if arg 1 is "usun":
  68. if {dzialki.posiadacz.%player%} is true:
  69. make console execute command "pex user %name of player% add worldedit.*"
  70. make console execute command "pex user %name of player% add worldguard.*"
  71. make player execute command "rg remove d%player%"
  72. make console execute command "pex user %name of player% remove worldguard.*"
  73. make console execute command "pex user %name of player% remove worldedit.*"
  74. send "&4Nie masz juz dzialki!"
  75. clear {dzialki.posiadacz.%name of player%}
  76. send " "
  77. send " "
  78. send " "
  79. send " "
  80. send " "
  81. send "{@logo}"
  82. send " "
  83. send "&eUsunoles dzialke!!"
  84. send " "
  85. send " "
  86. send " "
  87. send " "
  88. send " "
  89. else:
  90. send "{@logo}"
  91. send " "
  92. send "&4Nie masz dzialki!"
  93. if arg 1 is "setspawn":
  94. if player have permissions "dzialki.admin":
  95. set {dzialki.spawn} to location of player
  96. send "{@logo}"
  97. send " "
  98. send "&4Ustawiles spawn dla swiata dzialek!"
  99. if arg 1 is "tp":
  100. if {dzialki.home.%player%} is set:
  101. send "{@logo}"
  102. send " "
  103. send "&eZostaniesz teleportowany za &c4s &ena swoja dzialke!"
  104. wait 4 seconds
  105. teleport player to {dzialki.home.%name of player%}
  106. else:
  107. send "&4Nie masz Dzialki!"
  108. if arg 1 is "pomoc" or "help":
  109. send "{@logo}"
  110. send " "
  111. send "&eLista komend:"
  112. send "&e/d zaloz - w odleglosci 50 kratek od spawnu mozesz zalozyc dzialke o wymierach 10x10x10"
  113. send "&e/d usun - usuwasz dzialke"
  114. send "&e/d tp - po 5 sekundach teleportuje cie na dzialke"
  115. send "&ePlugin by MrPatryk07"
  116. if player have permissions "dzialki.admin":
  117. send "&c/d setspawn - aby ustawic spawn dla swiata dzialek. W odleglosci 50 kratek gracze beda mogli zakladac dzialki"
  118. if arg 1 is not set:
  119. send "{@logo}"
  120. send " "
  121. send "&eLista komend:"
  122. send "&e/d zaloz - w odleglosci 50 kratek od spawnu mozesz zalozyc dzialke o wymiarach 10x10"
  123. send "&e/d usun - usuwasz dzialke"
  124. send "&e/d tp - po 5 sekundach teleportuje cie na dzialke"
  125. send "&ePlugin by MrPatryk07"
  126. wait 1 tick
  127. if player have permissions "dzialki.admin":
  128. 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