Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.45 KB | None | 0 0
  1. options:
  2.  
  3. motdline1: &5&l♔&6&l☾&e&l☼&6&l☽&5&l♛&6&lDark&4&lLegacy&5&l♛&6&l☾&e&l☼&6&l☽&5&l♔
  4. motdline2: &2&l✪&4&nSurvival&3&l⋙&6&nCreative&3&l⋙&7&nThe&6&nPit&3&l⋙&6&nLucky&7&nRace &3&nand &3&nmore&2&l✪
  5.  
  6. website: &2&eWWW.MYSERVER.ORG
  7.  
  8. HUBCOMPASS: &8● &c&l&6&lDark&4&lLegacy &3&lServers &8●
  9.  
  10. GADGETS: &8● &6&lDark&4&lLegacy&e&l`s &7&lhub &6&leffects&8●
  11.  
  12. CREATIVE-ITEM: &8● &a&lNAVIGATOR &8●
  13.  
  14. SKYBLOCK-ITEM: &8● &a&lNAVIGATOR &8●
  15.  
  16.  
  17. command cmc:
  18. trigger:
  19. loop 100 times:
  20. send ""
  21.  
  22.  
  23. on right click:
  24. if event-world is "world":
  25. if name of event-item is "{@HUBCOMPASS}":
  26. open virtual chest inventory with size 6 named "&3&l» &7&lGAME SELECTOR" to player
  27. wait a tick
  28. make a gui slot 0, 1, 2, 3, 4, 5, 6, 7, 17, 26, 35, 44, 18, 27, 36, 9, 45, 46, 47, 48, 49, 50, 51, 52, 53 and 8 of player with gray glass pane named "&8 " to do nothing
  29. make a gui slot 22 of player with bowl named "&8&l» &e&lTHE PIT &8&l«" with lore "&7" to run function send_player_to(player, "pit")
  30. make a gui slot 32 of player with blue clay named "&8&l» &e&lTHE BRIDGE &8&l«" with lore "&7" to run function send_player_to(player, "bridge")
  31. make a gui slot 20 of player with feather named "&8&l» &e&lSKYPVP &8&l«" with lore "&7" to run function send_player_to(player, "skypvp")
  32. make a gui slot 24 of player with bow named "&8&l» &e&lSKYWARS &8&l«" with lore "&7" to run function send_player_to(player, "skywars")
  33. make a gui slot 30 of player with birch sapling named "&8&l» &a&lSKYBLOCK &8&l«" with lore "&7" to run function send_player_to(player, "skyblock")
  34. make a gui slot 28 of player with painting named "&8&l» &6&lCREATIVE &8&l«" with lore "&7" to run function send_player_to(player, "creative")
  35. make a gui slot 34 of player with nether_star named "&8&l» &e&lLUCK RACE &8&l«" with lore "&7" to run function send_player_to(player, "luckyrace")
  36.  
  37.  
  38. if event-world is "world" or "creative":
  39. if name of event-item is "{@GADGETS}":
  40. make player execute command "uc menu main"
  41.  
  42. if event-world is "creative":
  43. if name of event-item is "{@CREATIVE-ITEM}":
  44. open virtual chest inventory with size 5 named "&3&l» &7&lCREATIVE MENU" to player
  45. wait a tick
  46. loop numbers between 0 and 45:
  47. make a gui slot loop-number of player with black glass pane named "&7 " with lore "&7" to do nothing
  48. make a gui slot 10 of player with green glass pane named "&3&l» &e&lCLAIM A PLOT" with lore "&7" to run player command "plot auto"
  49. make a gui slot 19 of player with green glass pane named "&3&l» &e&lCLAIM THIS PLOT" with lore "&7" to run player command "plot claim"
  50.  
  51. make a gui slot 14 of player with red glass pane named "&c&l» &9&lCLEAR THIS PLOT &7(&c&l!&7)" with lore "&7" to run:
  52. make player execute command "plot clear"
  53. close player's inventory
  54.  
  55. make a gui slot 8 of player with barrier named "&3&l» &c&lCLOSE MENU" with lore "&7" to run:
  56. close player's inventory
  57. make a gui slot 44 of player with chest named "&3&l» &e&lTELEPORT TO YOUR PLOT" with lore "&7" to run player command "plot home"
  58. if event-world is "skyblock":
  59. if name of event-item is "{@SKYBLOCK-ITEM}":
  60. open virtual chest inventory with size 5 named "&3&l» &7&lSKYBLOCK MENU" to player
  61. wait a tick
  62. loop numbers between 0 and 45:
  63. make a gui slot loop-number of player with black glass pane named "&7 " with lore "&7" to do nothing
  64. make a gui slot 10 of player with green glass pane named "&3&l» &e&lSHOP" with lore "&7" to run player command "shop"
  65. make a gui slot 19 of player with green glass pane named "&3&l» &e&lISLAND WARPS" with lore "&7" to run player command "is warps"
  66. make a gui slot 12 of player with blue glass pane named "&3&l» &e&lCHANGE BIOME" with lore "&7" to run player command "is biomes"
  67. make a gui slot 14 of player with red glass pane named "&c&l» &9&lRESET ISLAND &7(&c&l!&7)" with lore "&7" to run:
  68. close player's inventory
  69. wait 0.1 seconds
  70. make player execute command "is reset"
  71. make a gui slot 23 of player with orange glass pane named "&3&l» &e&lTOP 10 ISLANDS" with lore "&7" to run:
  72. close player's inventory
  73. wait 0.1 seconds
  74. make player execute command "is top"
  75.  
  76. make a gui slot 8 of player with barrier named "&3&l» &c&lCLOSE MENU" with lore "&7" to run:
  77. close player's inventory
  78. make a gui slot 44 of player with chest named "&3&l» &e&lTELEPORT TO YOUR ISLAND" with lore "&7" to run player command "is go"
  79.  
  80. if event-world is "bridge-maps":
  81. if name of event-item is "&8&l» &7ARENAS":
  82. make player execute command "bridge list"
  83. if name of event-item is "&8&l» &7STATS":
  84. make player execute command "bridge stats"
  85. if name of event-item is "&8&l» &6Leave":
  86. make player execute command "hub"
  87.  
  88. if event-world is "luckyrace":
  89. if name of event-item is "&8&l» &7ARENAS":
  90. make player execute command "lucky list"
  91. if name of event-item is "&8&l» &7STATS":
  92. make player execute command "lucky stats"
  93. if name of event-item is "&8&l» &6Leave":
  94. make player execute command "hub"
  95.  
  96. on inventory click:
  97. name of event-item is "{@GADGETS}" or "{@CREATIVE-ITEM}" or "{@SKYBLOCK-ITEM}" or "&8&l» &7ARENAS" or "&8&l» &7STATS" or "&8&l» &6Leave"
  98. cancel event
  99.  
  100. on drop:
  101. name of event-item is "{@GADGETS}" or "{@CREATIVE-ITEM}" or "{@SKYBLOCK-ITEM}" or "&8&l» &7ARENAS" or "&8&l» &7STATS" or "&8&l» &6Leave"
  102. cancel event
  103.  
  104. on right click on entity:
  105. if event-world is "skypvp":
  106. name of event-entity is "&aKIT SELECTOR"
  107. open virtual chest inventory with size 3 named "&7&lKITS" to player
  108. wait 1 ticks
  109. make a gui slot 11 of player with bow named "&8● &a&lNOOB &8●" with lore "&7" to close then run player command "kit noob"
  110. make a gui slot 13 of player with bow named "&8● &a&lNewbie &8●" with lore "&7" to close then run player command "kit newbie"
  111. make a gui slot 15 of player with bow named "&8● &a&lRecruit &8●" with lore "&7" to close then run player command "kit recruit"
  112.  
  113.  
  114. on player world change:
  115. if "%past changed world%" is "skywars":
  116. wait 0.1 seconds
  117. if player's world is "world":
  118. hub(player)
  119.  
  120. command /spawn:
  121. trigger:
  122. if player's world is "skyblock":
  123. make player execute command "warp skyblock"
  124. if player's world is "skypvp":
  125. make player execute command "warp skypvp"
  126. if player's world is "skypvp":
  127. make player execute command "pit spawn"
  128. if player's world is "world":
  129. make console execute command "mvtp %player% world"
  130.  
  131. function clear_player(p: player):
  132. clear {_p}'s inventory
  133. clear {_p}'s level
  134. set {_p}'s hunger to 20
  135. heal {_p}
  136. milk {_p}
  137.  
  138.  
  139. function hub(p: player):
  140. make console execute command "mvtp %{_p}% world"
  141. wait 5 ticks
  142. if {_p}'s world is "world":
  143. clear_player({_p})
  144. set slot 0 of {_p} to compass named "{@HUBCOMPASS}"
  145. set slot 8 of {_p} to enderchest named "{@GADGETS}"
  146. make console execute command "nte player %{_p}% prefix %{_p}'s prefix%"
  147. setScoreboard({_p}, "world")
  148.  
  149.  
  150. function send_player_to(p: player, loc: text):
  151. set {_uuid} to uuid of {_p}
  152. clear_player({_p})
  153. deleteBoard({_p})
  154. if {_loc} is "skypvp":
  155. {_p}'s world is "world"
  156. if {skypvp.kills.%{_uuid}%} is not set:
  157. set {skypvp.kills.%{_uuid}%} to 0
  158. if {skypvp.deaths.%{_uuid}%} is not set:
  159. set {skypvp.deaths.%{_uuid}%} to 0
  160. make console execute command "mvtp %{_p}% skypvp"
  161. setScoreboard({_p}, "skypvp")
  162. stop
  163. if {_loc} is "skyblock":
  164. if {skyblock.kills.%{_uuid}%} is not set:
  165. set {skyblock.kills.%{_uuid}%} to 0
  166. if {skyblock.deaths.%{_uuid}%} is not set:
  167. set {skyblock.deaths.%{_uuid}%} to 0
  168. make console execute command "mvtp %{_p}% skyblock"
  169. set slot 8 of {_p} to nether_star named "{@SKYBLOCK-ITEM}"
  170. setScoreboard({_p}, "skyblock")
  171. stop
  172. if {_loc} is "creative":
  173. make console execute command "mvtp %{_p}% creative"
  174. set slot 8 of {_p} to enderchest named "{@GADGETS}"
  175. set slot 7 of {_p} to nether_star named "{@CREATIVE-ITEM}"
  176. setScoreboard({_p}, "creative")
  177. if {_loc} is "pit":
  178. pit_join({_p})
  179. stop
  180. if {_loc} is "bridge":
  181. make console execute command "mvtp %{_p}% bridge-maps"
  182. setScoreboard({_p}, "bridge")
  183. set slot 0 of {_p} to book named "&8&l» &7ARENAS"
  184. set slot 4 of {_p} to paper named "&8&l» &7STATS"
  185. set slot 8 of {_p} to magma_cream named "&8&l» &6Leave"
  186. stop
  187. if {_loc} is "luckyrace":
  188. make console execute command "mvtp %{_p}% luckyrace"
  189. set slot 0 of {_p} to book named "&8&l» &7ARENAS"
  190. set slot 4 of {_p} to paper named "&8&l» &7STATS"
  191. set slot 8 of {_p} to magma_cream named "&8&l» &6Leave"
  192. stop
  193. if {_loc} is "skywars":
  194. make {_p} execute colored "sw join"
  195. stop
  196.  
  197.  
  198.  
  199. on join:
  200. set join message to ""
  201. set tab header to "&7&m-------------]&m--------------[&m--------------%nl%" and footer to "%nl%&7&m-------------]&m--------------[&m--------------" for player
  202. hub(player)
  203. if {bridge.stats.goals::%uuid of player%} is not set:
  204. bridge_reset_stats(player)
  205. loop "kills", "wins", "coins" and "deaths":
  206. if {lucky.stats.%loop-value%.%uuid of player%} is not set:
  207. set {lucky.stats.%loop-value%.%uuid of player%} to 0
  208.  
  209. on quit:
  210. set quit message to ""
  211. deleteBoard(player)
  212.  
  213. on death of player:
  214. set death message to ""
  215. if victim's world is "skypvp":
  216. if attacker is online:
  217. add 1 to {skypvp.kills.%uuid of attacker%}
  218. add 1 to {skypvp.deaths.%uuid of victim%}
  219. if victim's world is "survival":
  220. if attacker is online:
  221. add 1 to {skyblock.kills.%uuid of attacker%}
  222. add 1 to {skyblock.deaths.%uuid of victim%}
  223.  
  224.  
  225. command /glist:
  226. trigger:
  227. send "&7&l&m-------------------------"
  228. send ""
  229. send "&8&l➡ &7PLAYERS ONLINE &8(&c%number of all players%&8)"
  230. send ""
  231. send "&8&l➡ &7PLAYERS AT YOUR SECTION &8(&c%number of players in player's world%&8)"
  232. send ""
  233. send "&7&l&m-------------------------"
  234.  
  235.  
  236. command hub:
  237. trigger:
  238. if player's world is "world":
  239. send "&7You are already in hub"
  240. stop
  241. if player's world is "pit":
  242. pit_leave(player)
  243. stop
  244. if player's world is "pit":
  245. make player execute command "pit leave"
  246. if player's world is "luckyrace":
  247. make player execute command "lucky leave"
  248. if player's world is "bridge-maps":
  249. make player execute command "bridge leave"
  250. if player's world is "skywars":
  251. make player execute command "sw leave"
  252. make player execute command "sw leave"
  253. clear player's inventory
  254. hub(player)
  255.  
  256.  
  257. on chat:
  258. cancel event
  259. if player's world is not "pit":
  260. broadcast "%colored player's prefix% &7%player% %message%" in player's world
  261.  
  262. command /setrank [<offline player>] [<text>]:
  263. permission: staff.owner
  264. permission message: &c&lSetRank &8> &7You Don't have permission!
  265. trigger:
  266. if arg-2 is not set:
  267. send "&c&lSetRank &8> &7Use:"
  268. send "&c/setrank &7<player> <rank>"
  269. if arg-2 is set:
  270. execute console command "pex user %arg-1% group set %arg-2%"
  271. send "&c&lSetRank &8> &7%arg-1% Is now a %arg-2%"
  272. send "&c&lSetRank &8> &7Your rank is now %arg-2%!" to arg 1
  273.  
  274.  
  275. command /alert [<text>]:
  276. aliases: /broadcast,/bc,/a
  277. permission: staff.alert
  278. permission message: &c&8┃ &bBroadCast &8┃ &cYou don't have Permission !
  279. trigger:
  280. if arg 1 is not set:
  281. send "&cUse /alert (message)"
  282. if arg 1 is set:
  283. broadcast "&8┃ &bBroadCast &8┃ &8» &6%arg-1%"
  284.  
  285. function createBoard(p: player, t: text, size: integer = 15):
  286. add "&a", "&b", "&c", "&d", "&e", "&1", "&2", "&3", "&4", "&5", "&6", "&7", "&8", "&9" and "&f" to {_d::*}
  287. if stylish scoreboard "%{_t}%-%{_p}%" does not exist:
  288. create new stylish scoreboard named "%{_t}%-%{_p}%"
  289. loop {_size} times:
  290. create a new id based score "%{_p}%Slot%loop-number%" with text "%{_d::%loop-number%}%" slot loop-number for stylish scoreboard "%{_t}%-%{_p}%"
  291. wait a tick
  292. set stylish scoreboard of {_p} to "%{_t}%-%{_p}%"
  293.  
  294. function deleteBoard(p: player):
  295. loop "skypvp", "world", "skyblock", "creative", "bridge", "BR1", "BR2", "LUCKYGAME", "LUCKYDM" and "LUCKYLOBBY":
  296. if stylish scoreboard "%loop-value%-%{_p}%" exists:
  297. loop 15 times:
  298. delete the id based score "%{_p}%Slot%loop-number-2%" in stylish scoreboard "%loop-value-1%-%{_p}%"
  299. delete stylish scoreboard "%loop-value-1%-%{_p}%"
  300. function setSlot(p: player, board: text, slot: integer, t: text):
  301. add "&a", "&b", "&c", "&d", "&e", "&1", "&2", "&3", "&4", "&5", "&6", "&7", "&8", "&9" and "&f" to {_d::*}
  302. if {_slot} is between 1 and 15:
  303. set text of id "%{_p}%Slot%{_slot}%" to "%{_d::%{_slot}%}%%{_t}%"
  304.  
  305. function setScoreboard(p: player, board: text):
  306. set {_uuid} to uuid of {_p}
  307. deleteBoard({_p})
  308. wait a tick
  309. if {_board} is "skypvp":
  310. createBoard({_p}, {_board}, 12)
  311. set title of stylish scoreboard "%{_board}%-%{_p}%" to "&7 &7&lSKYPVP &7"
  312. while {_p}'s world is "skypvp":
  313. if stylish scoreboard "%{_board}%-%{_p}%" exists:
  314. setSlot({_p}, {_board}, 12, "")
  315. setSlot({_p}, {_board}, 11, "&e&l» &7&lPROFILE")
  316. setSlot({_p}, {_board}, 10, "")
  317. setSlot({_p}, {_board}, 9, "&8&l➡ &7&lNick &c%{_p}%")
  318. setSlot({_p}, {_board}, 8, "&8&l➡ &7&lRank %colored {_p}'s prefix%")
  319. setSlot({_p}, {_board}, 7, "&8&l➡ &7&lKills &c%{skypvp.kills.%{_uuid}%}%")
  320. setSlot({_p}, {_board}, 6, "&8&l➡ &7&lDeaths &c%{skypvp.deaths.%{_uuid}%}%")
  321. setSlot({_p}, {_board}, 5, "")
  322. setSlot({_p}, {_board}, 4, "&e&l» &7&lSERVER")
  323. setSlot({_p}, {_board}, 3, "")
  324. setSlot({_p}, {_board}, 2, "&8&l➡ &7&lSKYPVP &c%number of players in world ""skypvp""%")
  325. setSlot({_p}, {_board}, 1, "")
  326. else:
  327. stop
  328. wait a second
  329. if {_board} is "world":
  330. createBoard({_p}, {_board}, 13)
  331. set title of stylish scoreboard "%{_board}%-%{_p}%" to "&4&lDark&6&lLegacy"
  332. while {_p}'s world is "world":
  333. if stylish scoreboard "%{_board}%-%{_p}%" exists:
  334. setSlot({_p}, {_board}, 13, "")
  335. setSlot({_p}, {_board}, 12, "&e&l» &7&lPROFILE")
  336. setSlot({_p}, {_board}, 11, "")
  337. setSlot({_p}, {_board}, 10, "&8&l➡ &7&lNick &c%{_p}%")
  338. setSlot({_p}, {_board}, 9, "&8&l➡ &7&lRank %colored {_p}'s prefix%")
  339. setSlot({_p}, {_board}, 8, "")
  340. setSlot({_p}, {_board}, 7, "&e&l» &7&lSERVER")
  341. setSlot({_p}, {_board}, 6, "")
  342. setSlot({_p}, {_board}, 5, "&8&l➡ &7&lHUB &c%number of players in world ""world""%")
  343. setSlot({_p}, {_board}, 4, "")
  344. setSlot({_p}, {_board}, 3, "&8&l➡ &7&lGLOBAL &c%number of all players%")
  345. setSlot({_p}, {_board}, 2, "")
  346. setSlot({_p}, {_board}, 1, "&e&lMC.SERVER-NAME.NET")
  347. else:
  348. stop
  349. wait a second
  350. if {_board} is "skyblock":
  351. createBoard({_p}, {_board}, 12)
  352. set title of stylish scoreboard "%{_board}%-%{_p}%" to "&1&8&l● &b&lSKYBLOCK &1&8&l●"
  353. while {_p}'s world is "skyblock":
  354. if stylish scoreboard "%{_board}%-%{_p}%" exists:
  355. setSlot({_p}, {_board}, 12, "")
  356. setSlot({_p}, {_board}, 11, "&e&l» &7&lPROFILE")
  357. setSlot({_p}, {_board}, 10, "")
  358. setSlot({_p}, {_board}, 9, "&8&l➡ &7&lNick &c%{_p}%")
  359. setSlot({_p}, {_board}, 8, "&8&l➡ &7&lRank %colored {_p}'s prefix%")
  360. setSlot({_p}, {_board}, 7, "&8&l➡ &7&lKills &c%{skyblock.kills.%{_uuid}%}%")
  361. setSlot({_p}, {_board}, 6, "&8&l➡ &7&lDeaths &c%{skyblock.deaths.%{_uuid}%}%")
  362. setSlot({_p}, {_board}, 5, "")
  363. setSlot({_p}, {_board}, 4, "&e&l» &7&lSERVER")
  364. setSlot({_p}, {_board}, 3, "")
  365. setSlot({_p}, {_board}, 2, "&8&l➡ &7&lSKYBLOCK &c%number of players in world ""skyblock""%")
  366. setSlot({_p}, {_board}, 1, "")
  367. else:
  368. stop
  369. wait a second
  370. if {_board} is "creative":
  371. createBoard({_p}, {_board}, 10)
  372. set title of stylish scoreboard "%{_board}%-%{_p}%" to "&1&8&l● &6&lCREATIVE &1&8&l●"
  373. while {_p}'s world is "creative":
  374. if stylish scoreboard "%{_board}%-%{_p}%" exists:
  375. setSlot({_p}, {_board}, 10, "")
  376. setSlot({_p}, {_board}, 9, "&e&l» &7&lPROFILE")
  377. setSlot({_p}, {_board}, 8, "")
  378. setSlot({_p}, {_board}, 7, "&8&l➡ &7&lNick &c%{_p}%")
  379. setSlot({_p}, {_board}, 6, "&8&l➡ &7&lRank %colored {_p}'s prefix%")
  380. setSlot({_p}, {_board}, 5, "")
  381. setSlot({_p}, {_board}, 4, "&e&l» &7&lSERVER")
  382. setSlot({_p}, {_board}, 3, "")
  383. setSlot({_p}, {_board}, 2, "&8&l➡ &7&lCREATIVE &c%number of players in world ""creative""%")
  384. setSlot({_p}, {_board}, 1, "")
  385. else:
  386. stop
  387. wait a second
  388. if {_board} is "bridge":
  389. createBoard({_p}, {_board}, 10)
  390. set title of stylish scoreboard "%{_board}%-%{_p}%" to "&e&lTHE BRIDGE"
  391. while {_p}'s world is "bridge-maps":
  392. if stylish scoreboard "%{_board}%-%{_p}%" exists:
  393. setSlot({_p}, {_board}, 10, "")
  394. setSlot({_p}, {_board}, 9, "&8&l➡ &2&7NICK &e%{_p}%")
  395. setSlot({_p}, {_board}, 8, "&8&l➡ &2&7RANK &e%colored {_p}'s prefix%")
  396. setSlot({_p}, {_board}, 7, "")
  397. setSlot({_p}, {_board}, 6, "&8&l➡ &2&7WINS &e%{bridge.stats.wins::%{_uuid}%}%")
  398. setSlot({_p}, {_board}, 5, "&8&l➡ &2&7GOALS &e%{bridge.stats.goals::%{_uuid}%}%")
  399. setSlot({_p}, {_board}, 4, "&8&l➡ &2&7DEATHS &e%{bridge.stats.deaths::%{_uuid}%}%")
  400. setSlot({_p}, {_board}, 3, "")
  401. setSlot({_p}, {_board}, 2, "&e&l» &7&lTHE BRIDGE &c%number of players in world ""bridge-maps""%")
  402. setSlot({_p}, {_board}, 1, "")
  403. else:
  404. stop
  405. wait a second
  406.  
  407.  
  408. on server ping:
  409. set motd to "{@motdline1}%nl%{@motdline2}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement