Guest User

Untitled

a guest
Aug 21st, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.75 KB | None | 0 0
  1. variables:
  2. {cub.set.%player%} = false
  3. {cub.tp.%player%} = false
  4.  
  5. command /cuboid [<text>] [<text>]:
  6. permission: lckm.cub
  7. aliases: cub
  8. trigger:
  9. if arg 1 is "zaloz" or "stworz":
  10. if arg 2 is not set:
  11. if player has 128 emerald:
  12. set {pos%player%} to location of player
  13. set {pos1%player%} to {pos%player%}
  14. set {cub.set.%player%} to true
  15. set {cubdom.%player%} to location of player
  16. wait 1 second
  17. remove 128 emerald from player
  18. execute console command "pex user %name of player% add worldedit.*"
  19. execute console command "pex user %name of player% add worldguard.*"
  20. execute player command "//pos1"
  21. execute player command "//pos2"
  22. execute player command "//expand 10 n"
  23. execute player command "//expand 10 s"
  24. execute player command "//expand 10 w"
  25. execute player command "//expand 10 e"
  26. execute player command "//expand vert"
  27. execute player command "rg define %name of player%"
  28. execute player command "rg addowner %name of player% %name of player%"
  29. execute player command "rg flag %name of player% pvp deny"
  30. execute player command "rg flag %name of player% lava-fire deny"
  31. execute player command "rg flag %name of player% tnt deny"
  32. execute player command "rg flag %name of player% fire-spread deny"
  33. execute player command "rg flag %name of player% creeper-explosion deny"
  34. execute player command "rg flag %name of player% creeper-explosion deny"
  35. execute player command "rg flag %name of player% other-explosion deny"
  36. execute player command "rg flag %name of player% greeting &3&o>> &7Cuboid gracza &3%player%"
  37. execute player command "rg flag %name of player% farewell &3&o>> &7Teren publiczny!"
  38. execute console command "pex user %name of player% remove worldedit.*"
  39. execute console command "pex user %name of player% remove worldguard.*"
  40. loop 99 times:
  41. send ""
  42. wait 1 second
  43. send "&3&o>> &7Stworzyles teren &32 &7o wymiarach &320x20&7!" to player
  44. broadcast "&3&o>> &7Gracz &3%player% &7zalozyl teren &32&7!"
  45. command "run %player% /cub dodaj %player%"
  46. else:
  47. send "&3&o>> &7Nie masz &3128 szmaragdów&7!"
  48. stop
  49. if arg 1 is "extra":
  50. if arg 2 is not set:
  51. if player has 64 emerald block:
  52. set {pos%player%} to location of player
  53. set {pos1%player%} to {pos%player%}
  54. set {cub.set.%player%} to true
  55. set {cubdom.%player%} to location of player
  56. wait 1 second
  57. remove 64 emerald block from player
  58. execute console command "pex user %name of player% add worldedit.*"
  59. execute console command "pex user %name of player% add worldguard.*"
  60. execute player command "//pos1"
  61. execute player command "//pos2"
  62. execute player command "//expand 25 n"
  63. execute player command "//expand 25 s"
  64. execute player command "//expand 25 w"
  65. execute player command "//expand 25 e"
  66. execute player command "//expand vert"
  67. execute player command "rg define %name of player%"
  68. execute player command "rg addowner %name of player% %name of player%"
  69. execute player command "rg flag %name of player% pvp deny"
  70. execute player command "rg flag %name of player% lava-fire deny"
  71. execute player command "rg flag %name of player% tnt deny"
  72. execute player command "rg flag %name of player% creeper-explosion deny"
  73. execute player command "rg flag %name of player% other-explosion deny"
  74. execute player command "rg flag %name of player% greeting &3&o>> &7Cuboid extra gracza &3%player%"
  75. execute player command "rg flag %name of player% farewell &3&o>> &7Teren publiczny!"
  76. execute console command "pex user %name of player% remove worldedit.*"
  77. execute console command "pex user %name of player% remove worldguard.*"
  78. loop 99 times:
  79. send ""
  80. wait 1 second
  81. send "&3&o>> &7Stworzyles teren &32 &7o wymiarach &350x50&7!" to player
  82. broadcast "&3&o>> &7Gracz &3%player% &7zalozyl teren &350x50&7!"
  83. command "run %player% /cub dodaj %player%"
  84. else:
  85. send "&3&o>> &7Nie masz &364 bloków szmaragdów&7!"
  86. stop
  87. if arg 1 is "dodaj":
  88. if arg 2 is set:
  89. execute console command "pex user %name of player% add worldguard.*"
  90. execute player command "rg addowner %name of player% %arg 2%"
  91. execute console command "pex user %name of player% remove worldguard.*"
  92. send "&3&o>> &7Dodales gracza &3%arg 2% &7do terenu!"
  93. else:
  94. send "&3&o>> &7Podaj nick gracza!"
  95. stop
  96. if arg 1 is "wyrzuc":
  97. if arg 2 is set:
  98. execute console command "pex user %name of player% add worldguard.*"
  99. execute player command "rg removeowner %name of player% %arg 2%"
  100. execute player command "pex user %name of player% remove worldguard.*"
  101. send "&3&o>> &7Usunales gracza &3%arg 2% &7z terenu!"
  102. else:
  103. send "&3&o>> &7Podaj nick gracza!"
  104. stop
  105. if arg 1 is "help":
  106. if arg 2 is not set:
  107. send "&7&m==============&7[&3CUB&7]&7&m=============="
  108. send "&3/cub help &7-pokazuje to menu"
  109. send "&3/cub zaloz &7-zabezpiecza teren 20x20"
  110. send "&3/cub extra &7-zabezpiecza teren 50x50"
  111. send "&3/cub dodaj [NICK] &7-dodaje gracza"
  112. send "&3/cub wyrzuc [NICK] &7-usuwa gracza"
  113. send "&3/cub usun &7-usuwa zabezpieczenie terenu"
  114. send "&3/cub dom &7-teleportuje do domu"
  115. send " "
  116. send "&7&m================================"
  117. if arg 1 is "usun":
  118. if arg 2 is not set:
  119. if {cub.set.%player%} is true:
  120. execute console command "rg remove -w LC %name of player%"
  121. command "run %player% /rg remove %player%"
  122. send "&3&o>> &7Usunales teren!"
  123. set {cub.set.%player%} to false
  124. command "run %player% /i emerald 128"
  125. else:
  126. send "&3&o>> &7Nie masz swojego terenu!"
  127. if arg 1 is "dom":
  128. if arg 2 is not set:
  129. if {cub.set.%player%} is true:
  130. set {cubtp.%player%} to true
  131. send "&3&o>> &7Teleportacja za &35 &7sekund!"
  132. set {cubtpl} to location of player
  133. wait 1 second
  134. if {cubtpl} isn't location of player:
  135. send "&3&o>> &7Teleportacja zostala przerwana!"
  136. set {cubtp.%player%} to false
  137. stop
  138. wait 1 second
  139. if {cubtpl} isn't location of player:
  140. send "&3&o>> &7Teleportacja zostala przerwana!"
  141. set {cubtp.%player%} to false
  142. stop
  143. wait 1 second
  144. if {cubtpl} isn't location of player:
  145. send "&3&o>> &7Teleportacja zostala przerwana!"
  146. set {cubtptp.%player%} to false
  147. stop
  148. wait 1 second
  149. if {cubtpl} isn't location of player:
  150. send "&3&o>> &7Teleportacja zostala przerwana!"
  151. set {cubtptp.%player%} to false
  152. stop
  153. wait 1 second
  154. if {cubtpl} isn't location of player:
  155. send "&3&o>> &7Teleportacja zostala przerwana!"
  156. set {cubtptp.%player%} to false
  157. stop
  158. teleport player to {cubdom.%player%}
  159. send "&3&o>> &7Zostales przeteleportowany na swoj teren!"
  160. else:
  161. send "&3&o>> &7Nie masz swojego terenu!"
  162. if arg 1 is "autor":
  163. if arg 2 is not set:
  164. send "&7&m==============&7[&3CUB&7]&7&m=============="
  165. send " "
  166. send " "
  167. send "&7&m================================"
  168. if arg 1 is not set:
  169. if arg 2 is not set:
  170. send "&7&m==============&7[&3CUB&7]&7&m=============="
  171. send "&3/cub help &7-pokazuje to menu"
  172. send "&3/cub zaloz &7-zabezpiecza teren"
  173. send "&3/cub extra &7-zabezpiecza teren 50x50"
  174. send "&3/cub dodaj [NICK] &7-dodaje gracza"
  175. send "&3/cub wyrzuc [NICK] &7-usuwa gracza"
  176. send "&3/cub usun &7-usuwa zabezpieczenie terenu"
  177. send "&3/cub dom &7-teleportuje do domu"
  178. send " "
  179. send "&7&m================================"
  180.  
  181. on command "cuboid zaloz" or "cub zaloz":
  182. if {cub.set.%player%} is true:
  183. cancel event
  184. send "&3&o>> &7Posiadasz juz swoj teren!"
Advertisement
Add Comment
Please, Sign In to add comment