Guest User

TerenZ - Zajmowanie Terenu by Thorus

a guest
Mar 2nd, 2015
1,473
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.21 KB | None | 0 0
  1. #========================#
  2. # Nazwa Skryptu: TerenZ #
  3. # Autor: Thorus #
  4. # Version: 1.0 #
  5. # #
  6. # Zakaz Kopiowania ! #
  7. #========================#
  8.  
  9. options:
  10.  
  11. tag: &1&l[&6Teren&4Z&1&l]
  12.  
  13. teren: 30 # Wielkosc terenu w tym przypadku to bedzie 30x30
  14.  
  15. command /teren [<text>] [<text>]:
  16. trigger:
  17. if arg 1 is not set:
  18. send "&a======== &7[&6Teren&4Z&7] &a======="
  19. send "&e/teren info &6Pokazuje informacje o twoim terenie"
  20. send "&e/teren stworz &6Zakladasz teren"
  21. send "&e/teren usun &6Usuwasz teren"
  22. send "&e/teren dodaj <nick> &6Dodaje gracza do terenu"
  23. send "&e/teren wyrzuc <nick> &6Wyrzuca gracza z terenu"
  24. send "&e/teren flagi &6Lista dostepnych flag"
  25. send "&a======== &7[&6Teren&4Z&7] &a======="
  26. stop
  27. if arg 1 is "stworz":
  28. send "{@tag} &3Trwa zakladanie terenu !"
  29. make console execute command "pex user %player% add worldguard.*"
  30. make console execute command "pex user %player% add worldedit.*"
  31. execute player command "//pos1"
  32. execute player command "//pos2"
  33. execute player command "//expand {@teren} n"
  34. execute player command "//expand {@teren} e"
  35. execute player command "//expand {@teren} s"
  36. execute player command "//expand {@teren} w"
  37. execute player command "//expand vert"
  38. execute player command "rg define %player%"
  39. execute player command "rg flag %player% greeting &cWchodzisz na teren gracza %player%"
  40. execute player command "rg flag %player% farewell &aOpuszczasz teren gracza %player%"
  41. execute player command "rg flag %player% creeper-explosion deny"
  42. execute player command "rg flag %player% mob-damage deny"
  43. execute player command "rg flag %player% mob-spawning deny"
  44. execute player command "rg flag %player% pvp deny"
  45. execute player command "/rg addowner %player% %player%"
  46. execute player command "//pos1"
  47. execute player command "//pos2"
  48. make console execute command "pex user %player% remove worldguard.*"
  49. make console execute command "pex user %player% remove worldedit.*"
  50. send "{@tag} &3Teren zostal zalozony !"
  51. make console execute command "pex user %player% add teren.lider"
  52. stop
  53. if arg 1 is "usun":
  54. if player has permission "teren.lider":
  55. make console execute command "rg remove -w %world of player% %player%"
  56. send "{@tag} &3Teren zostal usuniety !"
  57. stop
  58. if arg 1 is "dodaj":
  59. if player has permissions "teren.lider":
  60. if arg 2 is not empty:
  61. make console execute command "rg addmember -w %world of player% %name of player% %arg 2%"
  62. wait 1 tick
  63. send "{@tag} &3Gracz &c%arg 2% &3zostal dodany do twojego terenu !"
  64. stop
  65. if arg 1 is "wyrzuc":
  66. if player has permissions "teren.lider":
  67. if arg 2 is not empty:
  68. make console execute command "rg removemember -w %player% %name of player% %arg 2%"
  69. wait 1 tick
  70. send "{@tag} &3Gracz &c%arg 2% &3zostal wyrzucony z twojego terenu !"
  71. stop
  72. if arg 1 is "info":
  73. if player has permission "teren.gracz":
  74. make console execute command "pex user %player% add worldguard.*"
  75. execute player command "/rg info %player%"
  76. make console execute command "pex user %player% remove worldguard.*"
  77. stop
  78. if arg 1 is "flagi":
  79. send "&e/teren spawnmob &cwlacz&e/&cwylacz &7- &6Spawnowanie potworow"
  80. send "&e/teren damagemob &cwlacz&e/&cwylacz &7- &6Obrazenia od potworow"
  81. send "&e/teren pvp &cwlacz&e/&cwylacz &7- &6PVP na twoim terenie"
  82. send "&e/teren tnt &cwlacz&e/&cwylacz &7- &6Szkody przez TNT"
  83. send "&e/teren skrzynie &cwlacz&e/&cwylacz &7- &6Otwieranie skrzynek przez innych graczy"
  84. send "&e/teren ogien &cwlacz&e/&cwylacz &7- &6Podpalanie na twoim terenie"
  85. send "&e/teren lava &cwlacz&e/&cwylacz &7- &6Obrazenia po wpadnieciu do lavy"
  86. stop
  87. if arg 1 is "spawnmob":
  88. if player has permission "teren.lider":
  89. if arg 2 is "wlacz":
  90. make console execute command "rg flag -w %world of player% %player% mob-spawning allow"
  91. send "{@tag} &3Spawnowanie mobow zostalo wlaczone !"
  92. stop
  93. if arg 1 is "spawnmob":
  94. if player has permission "teren.lider":
  95. if arg 2 is "wylacz":
  96. make console execute command "rg flag -w %world of player% %player% mob-spawning deny"
  97. send "{@tag} &3Spawnowanie mobow zostalo wylaczone !"
  98. stop
  99. if arg 1 is "damagemob":
  100. if player has permission "teren.lider":
  101. if arg 2 is "wlacz":
  102. make console execute command "rg flag -w %world of player% %player% mob-damage allow"
  103. send "{@tag} &3Spawnowanie mobow zostalo wlaczone !"
  104. stop
  105. if arg 1 is "damagemob":
  106. if player has permission "teren.lider":
  107. if arg 2 is "wylacz":
  108. make console execute command "rg flag -w %world of player% %player% mob-damage deny"
  109. send "{@tag} &3Spawnowanie mobow zostalo wylaczone !"
  110. stop
  111. if arg 1 is "pvp":
  112. if player has permission "teren.lider":
  113. if arg 2 is "wlacz":
  114. make console execute command "rg flag -w %world of player% %player% pvp allow"
  115. send "{@tag} &3PVP na twoim terenie zostalo wlaczone !"
  116. stop
  117. if arg 1 is "pvp":
  118. if player has permission "teren.lider":
  119. if arg 2 is "wylacz":
  120. make console execute command "rg flag -w %world of player% %player% pvp deny"
  121. send "{@tag} &3PVP na twoim terenie zostalo wylaczone !"
  122. stop
  123. if arg 1 is "tnt":
  124. if player has permission "teren.lider":
  125. if arg 2 is "wlacz":
  126. make console execute command "rg flag -w %world of player% %player% other-explosion allow"
  127. send "{@tag} &3Szkody poprzez TNT zostaly wlaczone !"
  128. stop
  129. if arg 1 is "tnt":
  130. if player has permission "teren.lider":
  131. if arg 2 is "wylacz":
  132. make console execute command "rg flag -w %world of player% %player% other-explosion deny"
  133. send "{@tag} &3Szkody poprzez TNT zostaly wylaczone !"
  134. stop
  135. if arg 1 is "skrzynie":
  136. if player has permission "teren.lider":
  137. if arg 2 is "wlacz":
  138. make console execute command "rg flag -w %world of player% %player% chest-access allow"
  139. send "{@tag} &3Dostep do skrzynek dla innych graczy zostal wlaczone !"
  140. stop
  141. if arg 1 is "skrzynie":
  142. if player has permission "teren.lider":
  143. if arg 2 is "wylacz":
  144. make console execute command "rg flag -w %world of player% %player% chest-access deny"
  145. send "{@tag} &3Dostep do skrzynek dla innych graczy zostal wylaczone !"
  146. stop
  147. if arg 1 is "ogien":
  148. if player has permission "teren.lider":
  149. if arg 2 is "wlacz":
  150. make console execute command "rg flag -w %world of player% %player% lighter allow"
  151. send "{@tag} &3Podpalanie na twoim terenie zostalo wlaczone !"
  152. stop
  153. if arg 1 is "ogien":
  154. if player has permission "teren.lider":
  155. if arg 2 is "wylacz":
  156. make console execute command "rg flag -w %world of player% %player% lighter deny"
  157. send "{@tag} &3Podpalanie na twoim terenie zostalo wylaczone !"
  158. stop
  159. if arg 1 is "lava":
  160. if player has permission "teren.lider":
  161. if arg 2 is "wlacz":
  162. make console execute command "rg flag -w %world of player% %player% lava-fire allow"
  163. send "{@tag} &3Obrazenia po wpadnieciu do lavy zostaly wlaczone !"
  164. stop
  165. if arg 1 is "lava":
  166. if player has permission "teren.lider":
  167. if arg 2 is "wylacz":
  168. make console execute command "rg flag -w %world of player% %player% lava-fire deny"
  169. send "{@tag} &3Obrazenia po wpadnieciu do lavy zostaly wylaczone !"
  170. stop
Advertisement
Add Comment
Please, Sign In to add comment