Guest User

Untitled

a guest
Aug 17th, 2014
411
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.43 KB | None | 0 0
  1. options:
  2. tag: &6Dzialki by MrxJoint
  3. item: diamond
  4. nazwa.przedmiotu: &5Super diament który daje dzialke
  5. odleglosc.cuba: 250
  6. setblock.type: stone
  7. spawn.dystans: 250
  8. teren: 50
  9. wysokosc: 250
  10. item.zapros.1: 32 diamond
  11. item.zapros.2: none
  12. item.zapros.3: none
  13.  
  14. #===================Wiadomosci===========================#
  15. jestes.zbyt.blisko.innego.cuba: &7Jestes zbyt blisko innej dzialki! Minimalna odleglosc to 200 kratek
  16. tworzenie.cubba: &6Tworzenie zabezpieczen...
  17. zbyt.blisko.spawnu: &7Jestes zbyt blisko spawnu!
  18. Limit.dzialek: &7Limit dzialek zostal osiagniety!
  19. zapraszenie.wylaczone: &7Nie posiadasz zadnego terenu aby muc zapraszac!
  20. nie.jestes.zalozycielem.zadnego.terenu: &7Nie jestes zalozycielem zadnego terenu!
  21. nie.posiadasz: &7Nie posiadasz: &a{@item.zapros.1} &7lub &a{@item.zapros.2} &7lub &a{@item.zapros.3}&7!
  22. zostales.zaproszony: &7Zostales zaproszony go dzialki!
  23. zeby.dolaczyc.wpisz: &7Aby dolaczyc wpisz &a/dolacz [nazwa dzialki] &7.
  24. gracz.zostal.zaproszony: &7Gracz &a%arg% &7zostal zaproszony do twojej dzialki!
  25. prawidlowe.uzycie: &7Prawidlowe uzycie to: &a/zapros [nick gracza] &7!
  26. podaj.nazwe.dzialki: &7Podaj nazwe dzialki, aby dolaczyc do niej!
  27. jestes.jzu.czlonkiem: &7Jestes juz czlonkiem innej dzialki!
  28. jestes.juz.zalozycielem: &7Jestes zaozycielem innej dzialki!
  29. dolaczyles.do: &7Dolaczyles do dzialkii: &a%{dzialka.tag.%player%}%&7.
  30. nie.dostlaes.zaproszenia: &7Nie dostales zaproszenia od tej dzialki!
  31. wyszedles.z.terenu: &6Wyszedles z terenu dzialki: &2[&6%{region.%player%.last}%&2]
  32. wszedles.na.teren: &6Wkroczyles na teren dzialki: &2[&6%{_dzialka}%&2]
  33. nie.mozesz.niszczyc: &cNie mozesz nic niszczyc na tym terenie!
  34. nie.mozesz.budowac: &cNie mozesz nic budowac na tym terenie!
  35. posiadasz.juz.dzialke: &7Posiadasz juz dzialke!
  36. posiadasz.juz.dzialke.2: &7Jestes zalozycielem innej dzialki nie mozesz miec 2!
  37. nie.jestes.zaozycielem: &7Nie jestes zalozycielem dzialki!
  38. podaj.nazwe.gracza: &7Podaj Nick gracza, ktorego chcesz wyrzucic!
  39. command /daj:
  40. trigger:
  41. give 1 diamond of Unbreaking 10 named "&5Super diament który daje dzialke" to player
  42.  
  43. on rightclick with {@item}:
  44. {m.%player%} is set:
  45. send "{@tag} {@posiadasz.juz.dzialke}"
  46. stop
  47. {l.%player%} is set:
  48. send "{@tag} {@posiadasz.juz.dzialke.2}"
  49. stop
  50. player is holding diamond of Unbreaking 10 named "{@nazwa.przedmiotu}"
  51. if distance between {spawn} and location of player is greater than {@spawn.dystans}+{@teren}/2:
  52. if {dzialka.%player%.limit.claim} is false:
  53. loop {lista.cuboidow::*}:
  54. {srodek.cuboida.%loop-value%} and location of player is smaller than {@odleglosc.cuba}
  55. Send "{@jestes.zbyt.blisko.innego.cuba}"
  56. Stop
  57. set {dzialka.tag.%player%} to "%name of player%"
  58. set {_nick} to player
  59. send "{@tag} {@tworzenie.cubba}"
  60. wait 1 second
  61. loop 100 times:
  62. send " "
  63. stop
  64. new Region "%{dzialka.tag.%player%}%";
  65. set {_loc} to location of player
  66. "%{dzialka.tag.%player%}%".Region.selectLS{{_loc}, {@teren}};
  67. "%{dzialka.tag.%player%}%".Region.setHeight{{@wysokosc}};
  68. add {_nick} to {regiony.czlonkowie.%{dzialka.tag.%player%}%::*}
  69. set {region.szef.%{dzialka.tag.%player%}%} to {_nick}
  70. set block under the player to {@setblock.type}
  71. Set {srodek.cuboida.%{dzialka.tag.%player%}%} to location of player
  72. set {dzialka.%player%.zapraszanie} to true
  73. set {dzialka.%player%.limit.claim} to true
  74. set {l.%player%} to "%{dzialka.tag.%player%}%"
  75. add {dzialka.tag.%player%} to {lista.cuboidow::*}
  76. remove 1 Diamond of Unbreaking 10 named "{@nazwa.przedmiotu}" from player
  77. send "{@tag} &7Stworzyles terytorium!"
  78. stop
  79. else:
  80. send "{@tag} {@Limit.dzialek}"
  81. stop
  82. else:
  83. send "{@tag} {@zbyt.blisko.spawnu}"
  84. stop
  85.  
  86. command /zapros [<player>]:
  87. trigger:
  88. arg 1 is set:
  89. {dzialka.%player%.zapraszanie} is false:
  90. send "{@tag} {@zapraszenie.wylaczone"
  91. stop
  92. {l.%player%} is not set:
  93. send "{@tag} {@nie.jestes.zalozycielem.zadnego.terenu}"
  94. stop
  95. if player doesn't have {@item.zapros.1} and {@item.zapros.2} and {@item.zapros.3}:
  96. send "{@tag} {@nie.posiadasz}"
  97. stop
  98. remove {@item.zapros.1} and {@item.zapros.2} and {@item.zapros.3} from player
  99. add "%arg%" to {dz-%{dzialka.tag.%player%}%.invites::*}
  100. send "{@tag} {@zostales.zaproszony}" to arg player
  101. send "{@tag} {@zeby.dolaczyc.wpisz}" to arg player
  102. send "{@tag} {@gracz.zostal.zaproszony}"
  103. stop
  104. else:
  105. send "{@tag} {@prawidlowe.uzycie}"
  106. stop
  107. command /dolacz [<text>]:
  108. trigger:
  109. arg 1 is not set:
  110. send "{@tag} {@podaj.nazwe.dzialki}"
  111. stop
  112. {m.%player%} is set:
  113. send "{@tag} {@jestes.jzu.czlonkiem}"
  114. {l.%player%} is set:
  115. send "{@tag} {@jestes.juz.zalozycielem}"
  116. loop {dz-%arg%.invites::*}:
  117. loop-value is "%player%":
  118. set {dzialka.tag.%player%} to arg
  119. set {_nick} to player
  120. add {_nick} to {regiony.czlonkowie.%arg 1%::*}
  121. remove "%player%" from {dz-%{dzialka.tag.%player%}%.invites::*}
  122. send "{@tag} {@dolaczyles.do}"
  123. stop
  124. send "{@tag} {@nie.dostlaes.zaproszenia}"
  125. stop
  126.  
  127. on anymove:
  128. if {region.%player%.last} is not set:
  129. set {region.%player%.last} to "Brak"
  130. if Region.at{location of player} is not set:
  131. set {_dzialka} to "Brak"
  132. else:
  133. set {_dzialka} to Region.at{location of player}
  134. if {_dzialka} is not {region.%player%.last}:
  135. if {_dzialka} is "None" or "<none>" or "Brak":
  136. display "{@wyszedles.z.terenu}" on bossbar with 100 percent by 10 seconds for player
  137. else:
  138. display "{@wszedles.na.teren}" on bossbar with 100 percent by 10 seconds for player
  139. set {region.%player%.last} to {_dzialka}
  140.  
  141. on break:
  142. player doesn't have permission "dzialka.niszczenie":
  143. location of event-block is in any region:
  144. set {_rg} to Region.at{location of event-block};
  145. if {regiony.czlonkowie.%{_rg}%::*} contains player:
  146. stop
  147. send "{@nie.mozesz.niszczyc}"
  148. cancel event
  149. stop
  150.  
  151. on place:
  152. player doesn't have permission "dzialka.budowanie":
  153. location of event-block is in any region:
  154. set {_rg} to Region.at{location of event-block};
  155. if {regiony.czlonkowie.%{_rg}%::*} contains player:
  156. stop
  157. send "{@nie.mozesz.budowac}"
  158. cancel event
  159. stop
  160.  
  161.  
  162. command /wyrzuc [<player>]:
  163. trigger:
  164. arg 1 is not set:
  165. send "{@tag} {@podaj.nazwe.gracza}"
  166. stop
  167. {m.%player%} is set:
  168. send "{@tag} {@nie.jestes.zaozycielem}"
  169. {l.%player%} is set:
Advertisement
Add Comment
Please, Sign In to add comment