LordziaK

Untitled

Aug 21st, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.90 KB | None | 0 0
  1. command /sklep [<text>]:
  2. trigger:
  3. arg-1 is not set:
  4. new Inventory "&6SKLEP";
  5. "&6SKLEP".Inventory.setRow{1};
  6. "&6SKLEP".Inventory.setItem{1, 1 golden apple:1 named "&6ITEMY TYMCZASOWE" with lore "&7Kliknij, aby zakupic itemy!||"};
  7. "&6SKLEP".Inventory.setCommand{1, "sklep tymczasowe"};
  8. "&6SKLEP".Inventory.setExecutor{1, "player"};
  9. "&6SKLEP".Inventory.setItem{9, 1 golden apple:1 named "&6ITEMY STALE" with lore "&7Kliknij, aby zakupic itemy!||"};
  10. "&6SKLEP".Inventory.setCommand{9, "sklep stale"};
  11. "&6SKLEP".Inventory.setExecutor{9, "player"};
  12. "&6SKLEP".Inventory.display{player};
  13. arg-1 is "stale":
  14. new Inventory "&6STALE";
  15. "&6STALE".Inventory.setRow{1};
  16. "&6STALE".Inventory.setItem{1, 1 wool named "&4&lHARDCORE! &7(10$)" with lore "&7Kliknij, aby przejsc dalej!"};
  17. "&6STALE".Inventory.setCommand{1, "sklep shardcore"};
  18. "&6STALE".Inventory.setExecutor{1, "player"};
  19. "&6STALE".Inventory.display{player};
  20. arg-1 is "shardcore":
  21. new Inventory "&6HARDCORE";
  22. "&6HARDCORE".Inventory.setRow{1};
  23. "&6HARDCORE".Inventory.setItem{1, 1 golden apple:1 named "&4&lKOX!" with lore "&7Kliknij, aby zakupic!"};
  24. "&6HARDCORE".Inventory.setCommand{1, "sklep skoxhard"};
  25. "&6HARDCORE".Inventory.setExecutor{1, "player"};
  26. "&6HARDCORE".Inventory.setItem{2, 1 ender pearl named "&5&lPERLA!" with lore "&7Kliknij, aby zakupic!"};
  27. "&6HARDCORE".Inventory.setCommand{2, "sklep sperlahard"};
  28. "&6HARDCORE".Inventory.setExecutor{2, "player"};
  29. "&6HARDCORE".Inventory.display{player};
  30. arg-1 is "skoxhard":
  31. if {staly::kox::hardcore::%player%} is false:
  32. remove 10 from player's balance
  33. set {staly::kox::hardcore::%player%} to true
  34. send "&7Zakupiles stalego koxa! &7(tryb: HARDCORE)"
  35. else:
  36. send "&7Ten przedmiot jest juz zakupiony!"
  37. arg-1 is "sperlahard":
  38. if {staly::perla::hardcore::%player%} is false:
  39. remove 10 from player's balance
  40. set {staly::perla::hardcore::%player%} to true
  41. send "&7Zakupiles stala perle! &7(tryb: HARDCORE)"
  42. else:
  43. send "&7Ten przedmiot jest juz zakupiony!"
  44. command /gui:
  45. trigger:
  46. new Inventory "&6SKLEP";
  47. "&6ARENY".Inventory.setRow{1};
  48. "&6ARENY".Inventory.setItem{1, 1 golden apple:1 named "&4&lHARCORE" with lore "&7Aktualnie: &aonline&7."};
  49. "&6ARENY".Inventory.setCommand{1, "arena hardcore"};
  50. "&6ARENY".Inventory.setExecutor{1, "player"};
  51. "&6ARENY".Inventory.setItem{2, 1 diamond sword of knockback 2 with no nbt named "&b&lKNOCKBACK" with lore "&7Aktualnie: &aonline&7."};
  52. "&6ARENY".Inventory.setCommand{2, "arena knockback"};
  53. "&6ARENY".Inventory.setExecutor{2, "player"};
  54. "&6ARENY".Inventory.setItem{3, 1 golden apple:0 of lure 1 with no nbt named "&6&lMUTATED APPLE" with lore "&7Aktualnie: &aonline&7."};
  55. "&6ARENY".Inventory.setCommand{3, "arena mutated"};
  56. "&6ARENY".Inventory.setExecutor{3, "player"};
  57. "&6ARENY".Inventory.display{player};
  58. on load:
  59. loop 54 times:
  60. add 1 to {_a}
  61. "&6SKLEP".Inventory.removeItem{{_a}};
  62. "&6STALE".Inventory.removeItem{{_a}};
  63. "&6HARDCORE".Inventory.removeItem{{_a}};
  64. "&6ARENY".Inventory.removeItem{{_a}};
  65. on command:
  66. if command is "money" or "monety" or "kasa" or "coin" or "coins":
  67. cancel event
  68. send "&7Kasa: &e%player's money%"
  69. on place cobblestone:
  70. if player's world is "%{mapaKnockback}%":
  71. wait 6.5 seconds
  72. set block to air
  73. on eat:
  74. if event-item is golden apple:0:
  75. if player's world is "%{mapaMutated}%":
  76. cancel event
  77. remove 1 golden apple:0 from player
  78. apply regeneration 10 to player for 5 seconds
  79. apply absorption 2 to player for 30 seconds
  80. command /cleareffects [<player>]:
  81. trigger:
  82. if executor is console:
  83. if arg-1 is online:
  84. remove regeneration from the arg-1
  85. remove fire resistance from the arg-1
  86. remove absorption from the arg-1
  87. remove resistance from the arg-1
  88. remove strength from the arg-1
  89. remove speed from the arg-1
  90. else:
  91. send "&cBlad: &7Komenda jest zablokowana przez &nCONSOLE&7."
  92. command /arena [<text>] [<text>]:
  93. trigger:
  94. arg-1 is "hardcore":
  95. if player's world is "%{mapaSpawn}%":
  96. if {onlineHardcore} is "online":
  97. teleport player to {hardcore}
  98. set action bar of player to "&7Dolaczyles do areny &ehardcore&7."
  99. execute console command "cleareffects %player%"
  100. give diamond helmet of protection 4 and unbreaking 3 to player's helmet
  101. give diamond chestplate of protection 4 and unbreaking 3 to player's chestplate
  102. give diamond leggings of protection 4 and unbreaking 3 to player's leggings
  103. give diamond boots of protection 4 and unbreaking 3 to player's boots
  104. give diamond sword of sharpness 5 and fire aspect 2 to player
  105. give 2 golden apple:1 to player
  106. give 5 golden apple:0 to player
  107. give 1 ender pearl to player
  108. if player has permission "account.vip":
  109. give 1 golden apple:1 to player
  110. give 2 golden apple:0 to player
  111. give 1 ender pearl to player
  112. give bow of punch 2 and infinity 1 to player
  113. give diamond helmet of protection 4 and unbreaking 3 to player
  114. give diamond chestplate of protection 4 and unbreaking 3 to player
  115. give diamond leggings of protection 4 and unbreaking 3 to player
  116. give diamond boots of protection 4 and unbreaking 3 to player
  117. give arrow to player
  118. else:
  119. send "&cBlad: &7Tryb jest wylaczony!"
  120. else:
  121. send "&cBlad: &7Jestes juz na arenie!"
  122. arg-1 is "knockback":
  123. if player's world is "%{mapaSpawn}%":
  124. if {onlineKnockback} is "online":
  125. teleport player to {knockback}
  126. set action bar of player to "&7Dolaczyles do areny &eknockback&7."
  127. execute console command "cleareffects %player%"
  128. give diamond helmet of protection 4 and unbreaking 3 to player's helmet
  129. give diamond chestplate of protection 4 and unbreaking 3 to player's chestplate
  130. give diamond leggings of protection 4 and unbreaking 3 to player's leggings
  131. give diamond boots of protection 4 and unbreaking 3 to player's boots
  132. give diamond sword of sharpness 3 to player
  133. give diamond sword of knockback 2 to player
  134. give bow of punch 2 and infinity 1 to player
  135. give 1 golden apple:1 to player
  136. give 3 golden apple:0 to player
  137. give 2 ender pearl to player
  138. give arrow to player
  139. if player has permission "account.vip":
  140. give 1 golden apple:1 to player
  141. give 2 golden apple:0 to player
  142. give 2 ender pearl to player
  143. else:
  144. send "&cBlad: &7Tryb jest wylaczony!"
  145. else:
  146. send "&cBlad: &7Jestes juz na arenie!"
  147. arg-1 is "mutated":
  148. if player's world is "%{mapaSpawn}%":
  149. if {onlineMutated} is "online":
  150. teleport player to {mutated}
  151. set action bar of player to "&7Dolaczyles do areny &emutated_apple&7."
  152. execute console command "cleareffects %player%"
  153. give diamond helmet of protection 4 and unbreaking 3 to player's helmet
  154. give diamond chestplate of protection 4 and unbreaking 3 to player's chestplate
  155. give diamond leggings of protection 4 and unbreaking 3 to player's leggings
  156. give diamond boots of protection 4 and unbreaking 3 to player's boots
  157. give diamond sword of sharpness 5 and fire aspect 2 to player
  158. give iron sword of knockback 1 to player
  159. give 3 golden apple:0 named "&6&lMUTATED APPLE" to player
  160. give 1 ender pearl to player
  161. if player has permission "account.vip":
  162. give 5 golden apple:0 named "&6&lMUTATED APPLE" to player
  163. give 1 ender pearl to player
  164. else:
  165. send "&cBlad: &7Tryb jest wylaczony!"
  166. else:
  167. send "&cBlad: &7Jestes juz na arenie!"
  168. arg-1 is "ustaw":
  169. if player has permission "arena.set":
  170. arg-2 is "hardcore":
  171. set {hardcore} to location of player
  172. send "&7Arena &ehardcore &7zostala ustawiona!"
  173. arg-2 is "mutated":
  174. set {mutated} to location of player
  175. send "&7Arena &emutated &7zostala ustawiona!"
  176. arg-2 is "knockback":
  177. set {knockback} to location of player
  178. send "&7Arena &eknockback &7zostala ustawiona!"
  179. else:
  180. send "&cBlad: &7Nie masz uprawnien."
  181. on respawn:
  182. if player's world is "%{mapaHardcore}%":
  183. teleport player to {hardcore}
  184. send "&8&m-----------------------------"
  185. send "&6Zostales zabity!"
  186. send "&6Aby, zmienic tryb wpisz &7/spawn."
  187. send "&8&m-----------------------------"
  188. if player's world is "%{mapaMutated}%":
  189. teleport player to {mutated}
  190. send "&8&m-----------------------------"
  191. send "&6Zostales zabity!"
  192. send "&6Aby, zmienic tryb wpisz &7/spawn."
  193. send "&8&m-----------------------------"
  194. if player's world is "%{mapaKnockback}%":
  195. teleport player to {knockback}
  196. send "&8&m-----------------------------"
  197. send "&6Zostales zabity!"
  198. send "&6Aby, zmienic tryb wpisz &7/spawn."
  199. send "&8&m-----------------------------"
  200. command /setspawn [<text>]:
  201. trigger:
  202. if player has permission "spawn.set":
  203. set {spawn} to location of player
  204. send "&7Arena &espawn &7zostala ustawiona!"
  205. else:
  206. send "&cBlad: &7Nie masz uprawnien!"
  207. command /spawn [<offlineplayer>] [<text>]:
  208. trigger:
  209. if arg-1 is not set:
  210. if {spawn} is set:
  211. if player has permission "spawn.admin":
  212. teleport player to {spawn}
  213. clear player's inventory
  214. send "&7Teleportacja na &espawn&7."
  215. send "&7Szybsza teleportacja dzieki &euprawnieniu&7."
  216. stop
  217. set {_posx} to x-location of player
  218. set {_posz} to z-location of player
  219. set {_posy} to y-location of player
  220. send "&7Teleportacja na &espawn&7. &4&nNie ruszaj sie."
  221. loop 4 times:
  222. wait 1 second
  223. difference between x-location of player and {_posx} is bigger than 0.5:
  224. send "&cTeleportacja nie powiodla sie."
  225. stop
  226. difference between z-location of player and {_posz} is bigger than 0.5:
  227. send "&cTeleportacja nie powiodla sie."
  228. stop
  229. difference between y-location of player and {_posy} is bigger than 0.5:
  230. send "&cTeleportacja nie powiodla sie."
  231. stop
  232. teleport player to {spawn}
  233. clear player's inventory
  234. send "&7Teleportacja na &espawn&7."
  235. stop
  236. else:
  237. send "&cBlad: &7Nie odnaleziono spawnu."
  238. if arg-1 is set:
  239. if player has permission "other.spawn.teleport":
  240. if arg-1 is online:
  241. if {spawn} is set:
  242. teleport arg-1 to {spawn}
  243. send "&7Teleportacja gracza &e%arg-1% &7na &espawn&7."
  244. send "&7Zostales przeteleportowany na &espawn&7." to arg-1
  245. else:
  246. send "&cBlad: &7Nie odnaleziono spawnu."
  247. else:
  248. send "&cBlad: &7Ten gracz jest offline."
  249. #on heal:
  250. # if player is in world "spawn":
  251. # cancel event
  252. # message "test"
  253. # else:
  254. # stop
  255. command /maps:
  256. trigger:
  257. send "hc name: %{mapaHardcore}%"
  258. send "hc online: %{onlineHardcore}%"
  259. send "knock name: %{mapaKnockback}%"
  260. send "knock online: %{onlineKnockback}%"
  261. send "mutated name: %{mapaMutated}%"
  262. send "mutated online: %{onlineMutated}%"
  263. on load:
  264. if folder "plugins/rPvP" doesn't exists:
  265. create folder "plugins/rPvP"
  266. if file "plugins/rPvP/config.yml" doesn't exists:
  267. create file "plugins/rPvP/config.yml"
  268. download from "https://pastebin.com/raw/AinjX6Qz" to "plugins/AntyLogout/config.yml"
  269. set {mapaSpawn} to single value "rPvP.maps.spawn.name" get of "plugins/rPvP/config.yml"
  270. set {mapaHardcore} to single value "rPvP.maps.hardcore.name" get of "plugins/rPvP/config.yml"
  271. set {onlineHardcore} to single value "rPvP.maps.hardcore.online" get of "plugins/rPvP/config.yml"
  272. set {mapaKnockback} to single value "rPvP.maps.knockback.name" get of "plugins/rPvP/config.yml"
  273. set {onlineKnockback} to single value "rPvP.maps.knockback.online" get of "plugins/rPvP/config.yml"
  274. set {mapaMutated} to single value "rPvP.maps.mutated_apple.name" get of "plugins/rPvP/config.yml"
  275. set {onlineMutated} to single value "rPvP.maps.mutated.online" get of "plugins/rPvP/config.yml"
  276. set {itemsHardcorePlayer::*} to value list "rPvP.maps.hardcore.items.player" get of "plugins/rPvP/config.yml"
  277. set {itemsHardcoreVip::*} to value list "rPvP.maps.hardcore.items.vip" get of "plugins/rPvP/config.yml"
Advertisement
Add Comment
Please, Sign In to add comment