Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.76 KB | None | 0 0
  1. on place of bedrock:
  2. cancel event
  3. if {clan1::%player%} is set:
  4. if {gompka::%{clan1::%player%}%} is not set:
  5. set {gompka::%{clan1::%player%}%} to 0
  6. loop blocks in radius 45 of event-block:
  7. if loop-block is sponge:
  8. send "&cZbyt blisko twojego cuba znajduje sie inny"
  9. stop
  10. if {gompka::%{clan1::%player%}%} is bigger than 0:
  11. send "&cTwoj clan ma juz cuboid"
  12. stop
  13. else:
  14. send "&aTeraz ten teren nalezy do twojego Clanu!"
  15. send "&akula o premieniu 20 kratek jest twoja"
  16. remove 1 bedrock from player
  17. add 1 to {gompka::%{clan1::%player%}%}
  18. wait 10 ticks
  19. set event-block to sponge
  20. set {clan::%event-block%} to "%{clan1::%player%}%"
  21. stop
  22. else:
  23. send "&cMusisz posiadac clan &9/clan"
  24. stop
  25.  
  26.  
  27.  
  28. on break of sponge:
  29. if {clan::%event-block%} is "%{clan1::%player%}%":
  30. cancel event
  31. set {gompka::%{clan::%event-block%}%} to 0
  32. set event-block to air
  33. send "&cJuz ten teren nie nalezy do twojego Clanu!"
  34. if player can hold 1 bedrock:
  35. give player 1 bedrock named "&cCuboid" with lore "&7Cuboid kula o premieniu 20 kratek"
  36. stop
  37. else:
  38. drop 1 bedrock named "&cCuboid" with lore "&7Cuboid kula o premieniu 20 kratek"
  39. stop
  40.  
  41. command /clan [<text>] [<text>]:
  42. trigger:
  43. if arg-1 is "cuboid":
  44. if player has 256 wood:
  45. remove 256 wood from player
  46. if player can hold 1 bedrock:
  47. give player 1 bedrock named "&cCuboid" with lore "&7Cuboid kula o premieniu 20 kratek"
  48. stop
  49. else:
  50. drop 1 bedrock named "&cCuboid" with lore "&7Cuboid kula o premieniu 20 kratek"
  51. stop
  52. else:
  53. send "&cnie masz 4 stakow drewna!"
  54. stop
  55. if arg-1 is "zaloz":
  56. if arg-2 is set:
  57. if {clan1::%player%} is not set:
  58. set {_l} to length of the string argument-2
  59. if {_l} is larger than 2:
  60. if {_l} is smaller than 5:
  61. loop {clan1::*}:
  62. if loop-value is "%arg-2%":
  63. send "&cjuz taki clan istnieje!"
  64. stop
  65. wait 2 ticks
  66. set {clan1::%player%} to "%arg-2%"
  67. send "&aZalozyles clan %arg-2%"
  68. execute console command "/say §cGracz §9%player% §czalozyl §cclan §9%arg-2% !"
  69. stop
  70. else:
  71. send "&cDlugosc nazwy nie moze byc dluzsza niz 5!"
  72. stop
  73. else:
  74. send "&cDlugosc nazwy nie moze byc krotsza niz 2!"
  75. stop
  76. else:
  77. SEND "&cmasz juz clan"
  78. stop
  79. else:
  80. send "&cPoprawne uzycie /clan zaloz <tag>"
  81. stop
  82. if arg-1 is "dolacz":
  83. if arg-2 is set:
  84. if {clan1::%player%} is not set:
  85. if {zaproszenie::%arg-2%.%player%} is set:
  86. set {clan1::%player%} to "%{zaproszenie::%arg-2%.%player%}%"
  87. send "&adolaczyles do clanu!"
  88. execute console command "/say §cGracz §9%player% §cdolaczyl §cdo §cclanu §9%arg-2% !"
  89. stop
  90. else:
  91. send "&cNie dostales zaproszenie do tego clanu"
  92. stop
  93. else:
  94. send "&cMasz juz clan"
  95. stop
  96. else:
  97. send "&cPoprawne uzycie /clan dolacz <nazwa>"
  98. stop
  99. if arg-1 is "zapros":
  100. if arg-2 is set:
  101. if {clan1::%player%} is set:
  102. set {zaproszenie::%{clan1::%player%}%.%arg-2%} to "%{clan1::%player%}%"
  103. send "&czaprosiles gracza %arg-2% to clanu"
  104. set {_gracz} to "%arg-2%" parsed as player
  105. send "&aZostales zaproszony do calnu &9%{clan1::%player%}% !" to {_gracz}
  106. send "&aWpisz [/clan dolacz %{clan1::%player%}%] aby dolaczyc" to {_gracz}
  107. stop
  108. else:
  109. send "&cnie masz clanu"
  110. stop
  111. else:
  112. send "&cPoprawne uzycie /clan zapros <gracz>"
  113. stop
  114. if arg-1 is "opusc":
  115. if {clan1::%player%} is set:
  116. set {_test} to {clan1::%player%}
  117. set {_test2} to 0
  118. loop {clan1::*}:
  119. if loop-value is "%{_test}%":
  120. add 1 to {_test2}
  121. wait 2 ticks
  122. if {_test2} is bigger than 1:
  123. clear {zaproszenie::%{clan1::%player%}%.%player%}
  124. clear {clan1::%player%}
  125. send "&copusciles clan"
  126. stop
  127. else:
  128. send "jestes sam w clanie"
  129. stop
  130. else:
  131. send "&cNie masz gildii"
  132. stop
  133. if arg-1 is "ausun":
  134. if player has permission "asdasd":
  135. clear {clan1::%arg-2%}
  136. else:
  137. send "&8/&7clan cuboid &8- &3kupujesz cuboid"
  138. send "&8/&7clan zaloz &8<&7nazwa&8> - &3zakladasz clan"
  139. send "&8/&7clan zapros &8<&7gracz&8> &8- &3zapraszasz gracza"
  140. send "&8/&7clan dolacz &8<&7nazwa&8> &8- &3dolaczasz do clanu"
  141. send "&8/&7clan opusc &8- &3opuszczasz clan"
  142. send "&8/&7info &8<&7clan&8> &8- &3Informacje o danym clanie"
  143.  
  144. command /info [<text>]:
  145. trigger:
  146. if arg-1 is set:
  147. set {com::%player%} to true
  148. send "&7Nazwa clanu: &3%arg-1%"
  149. send "&7Czlakowie clanu:"
  150. set {_123} to "%arg-1%"
  151. loop {clan1::*}:
  152. if loop-value is "%arg-1%":
  153. send "&3- %Loop-index%"
  154. wait 60 ticks
  155. clear {com::%player%}
  156.  
  157. on join:
  158. clear {com::%player%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement