Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.90 KB | None | 0 0
  1. variables:
  2. {kordy::cuboid::%player%} = 0
  3. on region enter:
  4. send player title "" with subtitle "&8» &cWkraczasz na cuboid &4%owners of event-region%" for 1.6 seconds
  5. on region exit:
  6. send player title "" with subtitle "&8» &cOpuszczasz cuboid &4%owners of event-region%" for 1.6 seconds
  7. options:
  8. world: world
  9. dzialka.size: 30
  10. spawn.distance: 100
  11. command /cub [<text>] [<offlineplayer>]:
  12. aliases: cuboid
  13. trigger:
  14. if arg 1 is not set:
  15. send "&8&m------------&8(&cHaczykWorld&8)&m------------"
  16. send "&8 » &c/cub stworz &7- tworzy cuboid 30x30."
  17. send "&8 » &c/cub usun &7- usuwa cuboid."
  18. send "&8 » &c/cub dodaj <gracz> &7- dodaje gracza do cuboida."
  19. send "&8 » &c/cub wyrzuc <gracz> &7- usuwa gracza z cuboida."
  20. send "&8 » &c/cub info <gracz> &7- pokazuje inforacje o cuboidzie."
  21. send "&8&m------------&8(&cHaczykWorld&8)&m------------"
  22. if arg 1 is "setspawn":
  23. if player has permissions "cuboid.admin" or "cuboid.*":
  24. if player's world is "{@world}":
  25. set {cuboid::spawn::%world%} to location of player
  26. send "&8 » &7Ustawiono spawn dla skryptu na cuboidy."
  27. stop
  28. else:
  29. send "&8 » &7Spawn moze byc tylko w swiecie &cworld!"
  30. stop
  31. else:
  32. send "&8 » &7Brak uprawnien do tej komendy."
  33. stop
  34. if arg 1 is "stworz":
  35. set {_at} to {kordy::cuboid::%player%}
  36. if "%owners of region at {_at}%" contains "%player%":
  37. send "&8 » &7Posiadasz juz cuboid. Sprawdz &c/cub info!"
  38. stop
  39. else:
  40. if player's world is "{@world}":
  41. if {cuboid::spawn::%world%} is set:
  42. if distance between {cuboid::spawn::%world%} and location of player is greater than {@spawn.distance}+{claim.size}/2:
  43. player cannot build at block under player:
  44. send "&8 » &7Nie mozesz w tym miejscu stworzyc cuboida."
  45. stop
  46. player cannot build at block {@dzialka.size} meters northwest:
  47. send "&8 » &7Nie mozesz w tym miejscu stworzyc cuboida."
  48. stop
  49. player cannot build at block {@dzialka.size} meters north:
  50. send "&8 » &7Nie mozesz w tym miejscu stworzyc cuboida."
  51. stop
  52. player cannot build at block {@dzialka.size} meters northeast:
  53. send "&8 » &7Nie mozesz w tym miejscu stworzyc cuboida."
  54. stop
  55. player cannot build at block {@dzialka.size} meters west:
  56. send "&8 » &7Nie mozesz w tym miejscu stworzyc cuboida."
  57. stop
  58. player cannot build at block {@dzialka.size} meters east:
  59. send "&8 » &7Nie mozesz w tym miejscu stworzyc cuboida."
  60. stop
  61. player cannot build at block {@dzialka.size} meters southwest:
  62. send "&8 » &7Nie mozesz w tym miejscu stworzyc cuboida."
  63. stop
  64. player cannot build at block {@dzialka.size} meters south:
  65. send "&8 » &7Nie mozesz w tym miejscu stworzyc cuboida."
  66. stop
  67. player cannot build at block {@dzialka.size} meters southeast:
  68. send "&8 » &7Nie mozesz w tym miejscu stworzyc cuboida."
  69. stop
  70. make console execute command "pex user %player% add worldguard.*"
  71. make console execute command "pex user %player% add worldedit.*"
  72. execute player command "//pos1"
  73. execute player command "//pos2"
  74. execute player command "//expand {@dzialka.size} n"
  75. execute player command "//expand {@dzialka.size} e"
  76. execute player command "//expand {@dzialka.size} s"
  77. execute player command "//expand {@dzialka.size} w"
  78. execute player command "//expand vert"
  79. execute player command "rg define %player%"
  80. execute player command "rg flag %player% other-explosion deny"
  81. execute player command "rg flag %player% creeper-explosion deny"
  82. execute player command "rg flag %player% mob-damage deny"
  83. execute player command "rg flag %player% mob-spawning deny"
  84. execute player command "rg flag %player% pvp deny"
  85. execute player command "rg flag %player% tnt deny"
  86. execute player command "rg addmember %player% %player%"
  87. execute player command "rg addowner %player% %player%"
  88. execute player command "//pos1"
  89. execute player command "//pos2"
  90. loop 20 times:
  91. send " "
  92. set {kordy::cuboid::%player%} to location of player
  93. make console execute command "pex user %player% remove worldguard.*"
  94. make console execute command "pex user %player% remove worldedit.*"
  95. loop 20 times:
  96. send " "
  97. wait 2 tick
  98. loop 20 times:
  99. send " "
  100. set {_members} to "%members of region at player%"
  101. replace " and " in {_members} with ", "
  102. send "&8&m------------&8(&cHaczykWorld&8)&m------------"
  103. send " &8 » &7Cuboid zostal stworzony."
  104. send " &8 » &cJesli cos ponizej sie nie zgadza zglos to!"
  105. send " &8 » &7Wlasciciel cuboida to &c%owner of region at player%."
  106. send " &8 » &7Osoby dodane do cuboida to &c%{_members}%"
  107. send " &8 » &aJesli wszystko sie zgadza milej gry!"
  108. send "&8&m------------&8(&cHaczykWorld&8)&m------------"
  109. make console execute command "pex user %player% add wlasciciel.cuboid.*"
  110. stop
  111. else:
  112. send "&8 » &7Musisz byc 100 kratek od spawnu aby zalozyc cuboid!"
  113. stop
  114. if arg 1 is "usun":
  115. set {_at} to {kordy::cuboid::%player%}
  116. if "%owners of region at {_at}%" contains "%player%":
  117. make console execute command "rg remove -w %world of player% %player%"
  118. send "&8 » &7Cuboid zostal usuniety!"
  119. clear {kordy::cuboid::%player%}
  120. make console execute command "pex user %player% remove wlasciciel.cuboid.*"
  121. stop
  122. else:
  123. send "&8 » &7Nie posiadasz cuboida."
  124. if arg 1 is "dodaj":
  125. set {_at} to {kordy::cuboid::%player%}
  126. if "%owners of region at {_at}%" contains "%player%":
  127. if arg 2 is set:
  128. set {_at} to {kordy::cuboid::%player%}
  129. if "%members of region at {_at}%" contains "%argument-offlineplayer%":
  130. send "&8 » &7Wpisany gracz jest juz dodany do cuboida."
  131. else:
  132. if argument-offlineplayer is online:
  133. make console execute command "rg addmember -w %world of player% %name of player% %arg 2%"
  134. send "&8 » &7Gracz &c%arg 2% &7zostal dodany do Twojego cuboida!"
  135. stop
  136. else:
  137. send "&8 » &7Wpisany gracz jest offline lub nie istnieje!"
  138.  
  139. else:
  140. send "&8 » &7Nie podales gracza, ktory ma zostac dodany do cuboida."
  141. stop
  142. else:
  143. send "&8 » &7Nie posiadasz cuboida."
  144. if arg 1 is "wyrzuc":
  145. set {_at} to {kordy::cuboid::%player%}
  146. if "%owners of region at {_at}%" contains "%player%":
  147. if arg 2 is set:
  148. set {_at} to {kordy::cuboid::%player%}
  149. if "%members of region at {_at}%" contains "%argument-offlineplayer%":
  150. if "%arg 2%" is "%player%":
  151. send "&8 » &7Nie mozesz wyrzucic sam siebie!"
  152. stop
  153. else:
  154. make console execute command "rg removemember -w %world of player% %player% %arg 2%"
  155. send "&8 » &7Gracz &c%arg 2% &7zostal wyrzucony z Twojego cuboida!"
  156. stop
  157.  
  158. else:
  159. send "&8 » &7Wpisany gracz nie jest dodany do Twojego cuboida!"
  160. stop
  161. else:
  162. send "&8 » &7Nie podales gracza, ktory ma zostac wyrzucony z cuboida."
  163. stop
  164. else:
  165. send "&8 » &7Nie posiadasz cuboida."
  166. if arg 1 is "info":
  167. if arg 2 is not set:
  168. set {_at} to {kordy::cuboid::%player%}
  169. if "%members of region at {_at}%" contains "%player%":
  170. set {_at} to {kordy::cuboid::%player%}
  171. set {_members} to "%members of region at {_at}%"
  172. replace " and " in {_members} with ", "
  173. send "&8&m------------&8(&cHaczykWorld&8)&m------------"
  174. send " &8 » &7Wlasciciel cuboida: &c%owner of region at {_at}%"
  175. send " &8 » &7Gracze dodani do cuboida:"
  176. send " &8 » &c%{_members}%"
  177. send " &8 » &aKordy (widoczne tylko dla Ciebie!)"
  178. send " &8 » &7%{_at}%"
  179. send "&8&m------------&8(&cHaczykWorld&8)&m------------"
  180. stop
  181. else:
  182. send "&8 » &7Nie posiadasz cuboida."
  183. else:
  184. set {_at} to {kordy::cuboid::%arg 2%}
  185. set {_members} to "%members of region at {_at}%"
  186. replace " and " in {_members} with ", "
  187. if "%{_members}%" is "<none>":
  188. send "&8 » &7Taki cuboid nie istnieje."
  189. stop
  190. send "&8&m------------&8(&cHaczykWorld&8)&m------------"
  191. send " &8 » &7Wlasciciel cuboida: &c%owner of region at {_at}%"
  192. send " &8 » &7Gracze dodani do cuboida:"
  193. send " &8 » &c%{_members}%"
  194. if "%owner of region at {_at}%" is "%player%":
  195. send " &8 » &aKordy (widoczne tylko dla Ciebie!)"
  196. send " &8 » &7%{_at}%"
  197. send "&8&m------------&8(&cHaczykWorld&8)&m------------"
  198. stop
  199. if player has permissions "cuboid.admin" or "cuboid.*":
  200. send " &8 » &aKordy (widoczne dzieki uprawnien!)"
  201. send " &8 » &7%{_at}%"
  202. send "&8&m------------&8(&cHaczykWorld&8)&m------------"
  203. stop
  204. send "&8&m------------&8(&cHaczykWorld&8)&m------------"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement