Zeldaboy111

Skript #278 ]|[ Lobby bugfixing (2)

Jan 7th, 2020
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 58.58 KB | None | 0 0
  1. #Read 'license.txt' before using this Skript please
  2.  
  3. options:
  4. config: plugins/Lobby/config.yml
  5.  
  6. #-----------------------------------{ Functions / Startup }-----------------------------------
  7. function startUp():
  8. clear {config.list.interaction::*}
  9. clear {config.list.join::*}
  10. clear {config.list.prefixes::*}
  11. clear {config.list.prefixes.default::*}
  12. add "trapdoor", "armor_stand", "item_frame", "button", "furnace", "chest", "trapped_chest", "crafting_table" and "door" to {config.list.interaction::*}
  13. add "teleportLobby", "clearJoinMessage" and "clearPlayer" to {config.list.join::*}
  14. add "Server.logo", "Server.chatColor", "Server.arcatedColor", "Lobby.logo", "Lobby.chatColor" and "Lobby.arcatedColor" to {config.list.prefixes::*}
  15. add "&e&lServer &7➤", "&f", "&e", "&d&lLobby &7➤", "&f" and "&d" to {config.list.prefixes.default::*}
  16.  
  17. if file "{@config}" doesn't exist:
  18. create file "{@config}"
  19.  
  20. loop {config.list.prefixes::*}:
  21. set yml value "Lobby.Prefix.%loop-value%" of file "{@config}" to "%{config.list.prefixes.default::%loop-index%}%"
  22.  
  23. loop {config.list.interaction::*}:
  24. set yml value "Lobby.Interaction.%loop-value%" of file "{@config}" to false
  25.  
  26. loop {config.list.join::*}:
  27. set yml value "Lobby.Join.%loop-value%" of file "{@config}" to true
  28.  
  29. set {lobby.logo.Server} to yml value "Lobby.Prefix.Server.logo" of file "{@config}"
  30. set {lobby.chatColor.Server} to yml value "Lobby.Prefix.Server.chatColor" of file "{@config}"
  31. set {lobby.arcatedColor.Server} to yml value "Lobby.Prefix.Server.arcatedColor" of file "{@config}"
  32. set {lobby.logo.Lobby} to yml value "Lobby.Prefix.Lobby.logo" of file "{@config}"
  33. set {lobby.chatColor.Lobby} to yml value "Lobby.Prefix.Lobby.chatColor" of file "{@config}"
  34. set {lobby.arcatedColor.Lobby} to yml value "Lobby.Prefix.Lobby.arcatedColor" of file "{@config}"
  35.  
  36. #logo: %{lobby.arcatedColor.Server}%&lServer &7➤&f
  37. #lobby: %{lobby.arcatedColor.Lobby}%Lobby &7➤&f
  38.  
  39. #set yml value "Lobby.Prefix.Server.logo" of file "{@config}" to "%{lobby.arcatedColor.Server}%&lServer &7➤&f"
  40. #set yml value "Lobby.Prefix.Server.chatColor" of file "{@config}" to "&f"
  41. #set yml value "Lobby.Prefix.Server.arcatedColor" of file "{@config}" to "%{lobby.arcatedColor.Server}%"
  42.  
  43. #set yml value "Lobby.Prefix.Lobby.logo" of file "{@config}" to "%{lobby.arcatedColor.Lobby}%Lobby &7➤&f"
  44. #set yml value "Lobby.Prefix.Lobby.chatColor" of file "{@config}" to "&f"
  45. #set yml value "Lobby.Prefix.Lobby.arcatedColor" of file "{@config}" to "%{lobby.arcatedColor.Lobby}%"
  46.  
  47. set yml value "Lobby.Join.Compass.give" of file "{@config}" to true
  48. set yml value "Lobby.Join.Compass.item" of file "{@config}" to "compass"
  49. set yml value "Lobby.Join.Compass.name" of file "{@config}" to "&9Compass"
  50. set yml value "Lobby.Join.Compass.lore" of file "{@config}" to "&7Click to use"
  51. set yml value "Lobby.Join.Compass.GUI.name" of file "{@config}" to "&9Minigames"
  52. set yml value "Lobby.Join.Compass.GUI.rows" of file "{@config}" to 3
  53. set yml value "Lobby.Join.teleportLobby" of file "{@config}" to true
  54. set yml value "Lobby.Join.Message.clear" of file "{@config}" to true
  55. set yml value "Lobby.Join.Message.message" of file "{@config}" to "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%[player] joined the lobby!"
  56.  
  57.  
  58.  
  59.  
  60. else:
  61. set {lobby.logo.Server} to yml value "Lobby.Prefix.Server.logo" of file "{@config}"
  62. set {lobby.chatColor.Server} to yml value "Lobby.Prefix.Server.chatColor" of file "{@config}"
  63. set {lobby.arcatedColor.Server} to yml value "Lobby.Prefix.Server.arcatedColor" of file "{@config}"
  64. set {lobby.logo.Lobby} to yml value "Lobby.Prefix.Lobby.logo" of file "{@config}"
  65. set {lobby.chatColor.Lobby} to yml value "Lobby.Prefix.Lobby.chatColor" of file "{@config}"
  66. set {lobby.arcatedColor.Lobby} to yml value "Lobby.Prefix.Lobby.arcatedColor" of file "{@config}"
  67.  
  68.  
  69. loop {config.list.prefixes::*}:
  70. if yml value "Lobby.Prefix.%loop-value%" of file "{@config}" is not set:
  71. set yml value "Lobby.Prefix.%loop-value%" of file "{@config}" to "%{config.list.prefixes.default::%loop-index%}%"
  72.  
  73. loop {config.list.interaction::*}:
  74. if yml value "Lobby.Interaction.%loop-value%" of file "{@config}" is not set:
  75. set yml value "Lobby.Interaction.%loop-value%" of file "{@config}" to false
  76.  
  77. loop {config.list.join::*}:
  78. if yml value "Lobby.Join.%loop-value%" of file "{@config}" is not set:
  79. set yml value "Lobby.Join.%loop-value%" of file "{@config}" to true
  80.  
  81.  
  82.  
  83. if yml value "Lobby.Join.Compass.give" of file "{@config}" is not set:
  84. set yml value "Lobby.Join.Compass.give" of file "{@config}" to true
  85. if yml value "Lobby.Join.Compass.item" of file "{@config}" is not set:
  86. set yml value "Lobby.Join.Compass.item" of file "{@config}" to "compass"
  87. if yml value "Lobby.Join.Compass.name" of file "{@config}" is not set:
  88. set yml value "Lobby.Join.Compass.name" of file "{@config}" to "&9Minigames"
  89. if yml value "Lobby.Join.Compass.lore" of file "{@config}" is not set:
  90. set yml value "Lobby.Join.Compass.lore" of file "{@config}" to "&7Click to use"
  91. if yml value "Lobby.Join.Compass.GUI.name" of file "{@config}" is not set:
  92. set yml value "Lobby.Join.Compass.GUI.name" of file "{@config}" to "&9Minigames"
  93. if yml value "Lobby.Join.Compass.GUI.rows" of file "{@config}" is not set:
  94. set yml value "Lobby.Join.Compass.GUI.rows" of file "{@config}" to 3
  95.  
  96. if yml value "Lobby.Join.teleportLobby" of file "{@config}" is not set:
  97. set yml value "Lobby.Join.teleportLobby" of file "{@config}" to true
  98. if yml value "Lobby.Join.Message.clear" of file "{@config}" is not set:
  99. set yml value "Lobby.Join.Message.clear" of file "{@config}" to true
  100. if yml value "Lobby.Join.Message.message" of file "{@config}" is not set:
  101. set yml value "Lobby.Join.Message.message" of file "{@config}" to "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%[player] joined the lobby!"
  102. if yml value "Lobby.Join.clearPlayer" of file "{@config}" is not set:
  103. set yml value "Lobby.Join.clearPlayer" of file "{@config}" to true
  104.  
  105. setupLobby()
  106.  
  107. on enable:
  108. startUp()
  109.  
  110. #-----------------------------------{ Functions / Disable }-----------------------------------
  111.  
  112.  
  113. #-----------------------------------{ Functions / Join and Quit }-----------------------------------
  114. on join:
  115. if {lobby.location} is set:
  116. set player's health to 20
  117. set player's max health to 10
  118. set player's hunger to 20
  119.  
  120. if {lobby.join.teleportLobby} is true:
  121. wait 2 ticks
  122. teleport player to {lobby.location}
  123. #reveal player for all players in world of player
  124. #reveal all players in world of player for player
  125.  
  126. if {lobby.join.clearJoinMessage} is true:
  127. set join message to ""
  128. if {lobby.joinMessage} is true:
  129. set {_message} to {lobby.joinMessage}
  130. replace all "[player]" in {_message} with name of player
  131. send "%{_message}%" to all players in world of player
  132.  
  133. if {lobby.join.clearPlayer} is true:
  134. clear player's inventory
  135. set player's level to 0
  136.  
  137. if {lobby.join.giveCompass} is true:
  138. set slot 4 of player to {lobby.items.compass}
  139.  
  140. if {lobby.buildmode.removeLeft.%player%} is set:
  141. delete {lobby.buildmode.removeLeft.%player%}
  142. send "%{lobby.logo.server}% %{lobby.chatColor.Lobby}%Your buildmode has been %{lobby.arcatedColor.Lobby}%disabled %{lobby.chatColor.Lobby}%in the %{lobby.arcatedColor.Lobby}%lobby %{lobby.chatColor.Lobby}%because you left."
  143.  
  144. on quit:
  145. if {lobby.buildmode.%player%} is true:
  146. delete {lobby.buildmode.%player%}
  147. set {lobby.buildmode.removeLeft.%player%} to true
  148.  
  149. on disconnect:
  150. if {lobby.buildmode.%player%} is true:
  151. delete {lobby.buildmode.%player%}
  152. set {lobby.buildmode.removeLeft.%player%} to true
  153.  
  154. on hunger meter change:
  155. if world of player is {lobby.world}:
  156. cancel event
  157.  
  158. #-----------------------------------{ Functions / Compass }-----------------------------------
  159. function closeEvent(p: Player, command: Boolean, accept: String, acceptValue: String, minigame: String):
  160. if {_command} is true:
  161. execute {_p} command {_accept}
  162. wait 3 ticks
  163. if {_acceptValue} is not "delete":
  164. execute {_p} command "/lobbycompass gui %{_minigame}%"
  165.  
  166. else:
  167. send "%{_accept}%" to {_p}
  168. set {lobby.chatEvent.%{_p}%} to {_acceptValue}
  169. set {lobby.chatEventMinigame.%{_p}%} to {_minigame}
  170.  
  171. function closeInventory(p: Player, deny: String, minigame: String):
  172. send "%{_deny}%" to {_p}
  173. wait 2 ticks
  174. execute {_p} command "/Lobbycompass gui %{_minigame}%"
  175.  
  176. function setupLobby():
  177.  
  178. set {_compassItem} to yml value "Lobby.Join.Compass.item" of file "{@config}"
  179. set {_compassName} to yml value "Lobby.Join.Compass.name" of file "{@config}"
  180. set {_compassLore} to yml value "Lobby.Join.Compass.lore" of file "{@config}"
  181.  
  182. if {_compassItem} parsed as an item type is not set:
  183. send "%{lobby.logo.Lobby}% &4[ERROR] %{lobby.arcatedColor.Lobby}%%{_compassItem}% %{lobby.chatColor.Lobby}%is not an item! Setting the item to a compass..." to console
  184. set {_compassItem} to a compass
  185.  
  186. if {_compassName} is not set:
  187. send "%{lobby.logo.Lobby}% &4[ERROR] %{lobby.chatColor.Lobby}%There is no %{lobby.arcatedColor.Lobby}%name %{lobby.chatColor.Lobby}%given for the compass!" to console
  188. set {_compassName} to name of {_compassItem}
  189.  
  190. if {_compassLore} is not set:
  191. send "%{lobby.logo.Lobby}% &4[ERROR] %{lobby.chatColor.Lobby}%There is no %{lobby.arcatedColor.Lobby}%lore %{lobby.chatColor.Lobby}%given for the compass!" to console
  192. set {_compassLore} to ""
  193.  
  194. loop {config.list.interaction::*}:
  195. set {lobby.interaction.%loop-value%} to yml value "Lobby.Interaction.%loop-value%" of file "{@config}"
  196. loop {config.list.join::*}:
  197. set {lobby.join.%loop-value%} to yml value "Lobby.Join.%loop-value%" of file "{@config}"
  198.  
  199.  
  200. set {lobby.items.compass} to ({_compassItem} parsed as an item type) named "%{_compassName}%" with lore "%{_compassLore}%"
  201. set {lobby.items.compass.guiName} to yml value "Lobby.Join.Compass.GUI.name" of file "{@config}"
  202. set {lobby.items.compass.rows} to yml value "Lobby.Join.Compass.GUI.rows" of file "{@config}"
  203. set {lobby.join.joinMessage} to yml value "Lobby.Join.Message.message" of file "{@config}"
  204. set {lobby.join.giveCompass} to yml value "Lobby.Join.Compass.give" of file "{@config}"
  205.  
  206. function createCompassGUI(p: Player, gname: String, rows: Integer, slot1: Integer, slot2: Integer, item1: Item, item2: Item, i1name: String, i2name: String, accept: String, acceptValue: String, deny: String, minigame: String, command: Boolean):
  207. wait 2 ticks
  208. open chest with {_rows} rows named {_gname} to {_p}
  209. wait 2 ticks
  210.  
  211. set name of {_item1} to {_i1name}
  212. set name of {_item2} to {_i2name}
  213.  
  214. format slot {_slot1} of {_p} with {_item1} to close then run [closeEvent({_p}, {_command}, {_accept}, {_acceptValue}, {_minigame})]
  215.  
  216. format slot {_slot2} of {_p} with {_item2} to close then run [closeInventory({_p}, {_deny}, {_minigame})]
  217.  
  218. command /createGUICompass [<text>] [<text>] [<text>] [<text>]:
  219. trigger:
  220. if executor is console:
  221. wait 2 ticks
  222. open chest with {lobby.items.compass.rows} rows named arg-4 to arg-1 parsed as a player
  223. wait 2 ticks
  224.  
  225. if arg-2 is "1" or "2" or "3" or "4" or "5":
  226. set {_item1} to green wool named "&2Change"
  227. set {_item2} to red wool named "&4Deny"
  228.  
  229. if arg-2 is "1":
  230. format slot 12 of arg-1 parsed as a player with {_item1} to close then run [closeEvent(arg-1 parsed as a player, false, "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Type the new name in the chat", "name", arg-3)]
  231. format slot 14 of arg-1 parsed as a player with {_item2} to close then run [closeInventory(arg-1 parsed as a player, "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You have chosen to give the minigame %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%not an other name.", arg-3)]
  232.  
  233. else if arg-2 is "2":
  234. format slot 12 of arg-1 parsed as a player with {_item1} to close then run [closeEvent(arg-1 parsed as a player, false, "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Type the new lore in the chat", "lore", arg-3)]
  235. format slot 14 of arg-1 parsed as a player with {_item2} to close then run [closeInventory(arg-1 parsed as a player, "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You have chosen to give the minigame %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%not an other lore.", arg-3)]
  236.  
  237. if arg-2 is "3":
  238. format slot 12 of arg-1 parsed as a player with {_item1} to close then run [closeEvent(arg-1 parsed as a player, false, "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Type the new item in the chat", "item", arg-3)]
  239. format slot 14 of arg-1 parsed as a player with {_item2} to close then run [closeInventory(arg-1 parsed as a player, "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You have chosen to give the minigame %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%not an other item.", arg-3)]
  240.  
  241. if arg-2 is "4":
  242. format slot 12 of arg-1 parsed as a player with {_item1} to close then run [closeEvent(arg-1 parsed as a player, false, "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Type the new slot in the chat", "slot", arg-3)]
  243. format slot 14 of arg-1 parsed as a player with {_item2} to close then run [closeInventory(arg-1 parsed as a player, "%{lobby.chatColor.Lobby}%You have chosen to give the minigame %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%not an other slot.", arg-3)]
  244.  
  245. if arg-2 is "5":
  246. format slot 12 of arg-1 parsed as a player with {_item1} to close then run [closeEvent(arg-1 parsed as a player, true, "/lobbycompass setspawn %arg-3%", "setspawn", arg-3)]
  247. format slot 14 of arg-1 parsed as a player with {_item2} to close then run [closeInventory(arg-1 parsed as a player, "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You have chosen to give the minigame %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%not an other spawn.", arg-3)]
  248.  
  249. if arg-2 is "6":
  250. set {_item1} to green wool named "&2Delete"
  251. set {_item2} to red wool named "&4Deny"
  252.  
  253. format slot 12 of arg-1 parsed as a player with {_item1} to close then run [closeEvent(arg-1 parsed as a player, true, "/lcompass delete %arg-3%", "delete", arg-3)]
  254. format slot 14 of arg-1 parsed as a player with {_item2} to close then run [closeInventory(arg-1 parsed as a player, "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You have chosen to not delete the minigame %{lobby.arcatedColor.Lobby}%%arg-3%%{lobby.chatColor.Lobby}%.", arg-3)]
  255.  
  256.  
  257. #-----------------------------------{ Player Interaction / Damage / Chat }-----------------------------------
  258. on damage:
  259. if victim is a player:
  260. if world of victim is {lobby.world}:
  261. if damage cause is ("void" parsed as a damage cause):
  262. set victim's health to 0
  263.  
  264. else:
  265. cancel event
  266.  
  267. else:
  268. if world of attacker is {lobby.world}:
  269. if {lobby.buildmode.%attacker%} is not set:
  270. cancel event
  271.  
  272. on death:
  273. if world of player is {lobby.world}:
  274. set death message to ""
  275.  
  276. on respawn:
  277. if world of player is {lobby.world}:
  278. set slot 4 of player to {lobby.items.compass}
  279. teleport player to {lobby.location}
  280.  
  281.  
  282. on inventory click:
  283. if world of player is {lobby.world}:
  284. cancel event
  285. if name of clicked inventory is {lobby.items.compass.guiName}:
  286. set {_name} to "%name of clicked item%"
  287. loop {lobby.minigames.list::*}:
  288. if {_name} is "&f%{lobby.minigames.%loop-value%.name}%":
  289. if "%{lobby.minigames.%loop-value%.slot}%" == "%clicked slot%":
  290. close player's inventory
  291. execute console command "/teleportminigame %player% %loop-value in lower case%"
  292. stop loop
  293.  
  294.  
  295.  
  296. else if {lobby.buildmode.%player%} is true:
  297. uncancel event
  298.  
  299.  
  300. on click:
  301. if world of player is {lobby.world}:
  302. if player's held item is {lobby.items.compass}:
  303. cancel event
  304. execute console command "/opencompass %player%"
  305.  
  306. on drop:
  307. if world of player is {lobby.world}:
  308. if {lobby.buildmode.%player%} is not set:
  309. cancel event
  310.  
  311. on break:
  312. if world is {lobby.world}:
  313. if {lobby.buildmode.%player%} is not set:
  314. cancel event
  315. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You can't do this!"
  316.  
  317.  
  318.  
  319. on place:
  320. if world of player is {lobby.world}:
  321. if {lobby.buildmode.%player%} is not set:
  322. cancel event
  323.  
  324. on chat:
  325. if world of player is {lobby.world}:
  326. cancel event
  327. wait 1 tick
  328.  
  329. if {lobby.chatEvent.%player%} is set:
  330. execute console command "/lobbycompass set %{lobby.chatEvent.%player%}% %player% %{lobby.chatEventMinigame.%player%}% %message%"
  331.  
  332. else:
  333. set {_prefix} to "&8[%{lobby.arcatedColor.Server}%%player%&8]"
  334. send "%{_prefix}% &7➣ &f%message%" to all players in world of player
  335. send "&8[&eLOBBY&8]&8[%{lobby.arcatedColor.Server}%%player%&8] &7➣ &f%message%" to console
  336.  
  337. on rightclick on trapdoor:
  338. if world of player is {lobby.world}:
  339. if {lobby.interaction.trapdoor} is false:
  340. cancel event
  341.  
  342. on rightclick on door:
  343. if world of player is {lobby.world}:
  344. if {lobby.interaction.door} is false:
  345. if {lobby.buildmode.%player%} is not set:
  346. cancel event
  347.  
  348. on rightclick on item frame:
  349. if world of player is {lobby.world}:
  350. if {lobby.interaction.item_frame} is false:
  351. if {lobby.buildmode.%player%} is not set:
  352. cancel event
  353.  
  354. on rightclick on button:
  355. if world of player is {lobby.world}:
  356. if {lobby.interaction.button} is false:
  357. if {lobby.buildmode.%player%} is not set:
  358. cancel event
  359.  
  360. on rightclick on armor stand:
  361. if world of player is {lobby.world}:
  362. if {lobby.interaction.armor_stand} is false:
  363. if {lobby.buildmode.%player%} is not set:
  364. cancel event
  365.  
  366. on rightclick on furnace:
  367. if world of player is {lobby.world}:
  368. if {lobby.interaction.button} is false:
  369. if {lobby.buildmode.%player%} is not set:
  370. close player's inventory
  371. cancel event
  372.  
  373. on rightclick on chest:
  374. if world of player is {lobby.world}:
  375. if {lobby.interaction.chest} is false:
  376. if {lobby.buildmode.%player%} is not set:
  377. close player's inventory
  378. cancel event
  379.  
  380. on rightclick on trapped chest:
  381. if world of player is {lobby.world}:
  382. if {lobby.interaction.trapped_chest} is false:
  383. if {lobby.buildmode.%player%} is not set:
  384. close player's inventory
  385. cancel event
  386.  
  387. on rightclick on crafting table:
  388. if world of player is {lobby.world}:
  389. if {lobby.interaction.crafting_table} is false:
  390. if {lobby.buildmode.%player%} is not set:
  391. close player's inventory
  392. cancel event
  393.  
  394. #-----------------------------------{ Lobby Functions / Command }-----------------------------------
  395.  
  396.  
  397. function teleportLobby(p: Player, w: World):
  398. if {lobby.location} is set:
  399.  
  400. if {_w} is {lobby.world}:
  401. teleport {_p} to {lobby.location}
  402.  
  403. else:
  404. teleport {_p} to {lobby.location}
  405. send "World" to console
  406. wait 1 tick
  407. set {_message} to {lobby.joinMessage}
  408. replace "[player]" in {_message} with name of {_p}
  409. send "%{_message}%" to all players in world {lobby.world}
  410. send "&8[&eLOBBY&8]%{_message}%" to console
  411. clear {_p}'s inventory
  412. set slot 4 of {_p} to {lobby.items.compass}
  413.  
  414. else:
  415. send "%{lobby.logo.Server}% %{lobby.chatColor.Server}%The %{lobby.arcatedColor.Server}%lobby %{lobby.chatColor.Server}%is %{lobby.chatColor.Server}%not set%{lobby.chatColor.Lobby}%!" to {_p}
  416.  
  417.  
  418. command /lobby [<text>] [<text>]:
  419. aliases: /hub
  420. trigger:
  421. if executor is player:
  422. if player has permission "lobby.*" or "lobby.set" or "lobby.buildmode":
  423. if arg-1 is set:
  424. if arg-1 is "help":
  425. send "&7──────────[ %{lobby.arcatedColor.Lobby}%lobby &7]──────────"
  426. send "<ttp:&7Get the help page><cmd:/lobby help>%{lobby.arcatedColor.Lobby}%/lobby help"
  427. if player has permission "op" or "lobby.*" or "rank.heler" or "lobby.set":
  428. send "<ttp:&7Set the lobby location><sgt:/lobby set>%{lobby.arcatedColor.Lobby}%/lobby set"
  429. if player has permission "op" or "lobby.*" or "rank.heler" or "lobby.buildmode":
  430. send "<ttp:&7Enable/Disable buildmode><sgt:/lobby buildmode enable/disable>%{lobby.arcatedColor.Lobby}%/lobby buildmode enable/disable"
  431.  
  432. send "&7──────────[ %{lobby.arcatedColor.Lobby}%lobby &7]──────────"
  433.  
  434. else if arg-1 is "set":
  435. if player has permission "lobby.*" or "lobby.set":
  436. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully set the %{lobby.arcatedColor.Lobby}%%{cmd}% %{lobby.chatColor.Lobby}%to your location!"
  437. set {lobby.world} to "%world of player%"
  438. set {lobby.location} to location of player
  439. else:
  440. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You don't have enough permissions to do this!"
  441.  
  442. else if arg-1 is "buildmode":
  443. if player has permission "lobby.*" or "lobby.buildmode":
  444. if world of player is {lobby.world}:
  445. if arg-2 is set:
  446. if arg-2 parsed as a player is set:
  447. if {lobby.buildmode.%arg-2%} is true:
  448. delete {lobby.buildmode.%arg-2%}
  449. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You have %{lobby.arcatedColor.Lobby}%disabled %{lobby.chatColor.Lobby}%buildmode for %{lobby.arcatedColor.Lobby}%%name of arg-2 parsed as a player% %{lobby.chatColor.Lobby}%in the %{lobby.arcatedColor.Lobby}%lobby%{lobby.chatColor.Lobby}%!"
  450. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Your buildmode has been %{lobby.arcatedColor.Lobby}%disabled %{lobby.chatColor.Lobby}%in the %{lobby.arcatedColor.Lobby}%lobby%{lobby.chatColor.Lobby}%!" to arg-2 parsed as a player
  451.  
  452. else:
  453. set {lobby.buildmode.%arg-2%} to true
  454. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You have %{lobby.arcatedColor.Lobby}%enabled %{lobby.chatColor.Lobby}%buildmode for %{lobby.arcatedColor.Lobby}%%name of arg-2 parsed as a player% %{lobby.chatColor.Lobby}%in the %{lobby.arcatedColor.Lobby}%lobby%{lobby.chatColor.Lobby}%!"
  455. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Your buildmode has been %{lobby.arcatedColor.Lobby}%enabled %{lobby.chatColor.Lobby}%in the %{lobby.arcatedColor.Lobby}%lobby%{lobby.chatColor.Lobby}%!" to arg-2 parsed as a player
  456. else:
  457. send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%%arg-2% %{lobby.chatColor.Lobby}%is not online!"
  458.  
  459. else:
  460. if {lobby.buildmode.%player%} is true:
  461. delete {lobby.buildmode.%player%}
  462. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You have %{lobby.arcatedColor.Lobby}%disabled %{lobby.chatColor.Lobby}%buildmode for yourself in the %{lobby.arcatedColor.Lobby}%lobby%{lobby.chatColor.Lobby}%!"
  463.  
  464. else:
  465. set {lobby.buildmode.%player%} to true
  466. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You have %{lobby.arcatedColor.Lobby}%enabled %{lobby.chatColor.Lobby}%buildmode for yourself in the %{lobby.arcatedColor.Lobby}%lobby%{lobby.chatColor.Lobby}%!"
  467.  
  468. else:
  469. set {lobby.buildmode.%player%} to true
  470. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You have %{lobby.arcatedColor.Lobby}%enabled %{lobby.chatColor.Lobby}%buildmode for yourself in the %{lobby.arcatedColor.Lobby}%lobby%{lobby.chatColor.Lobby}%!"
  471. else:
  472. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You don't have enough permissions to do this!"
  473.  
  474. else:
  475. send "%{lobby.logo.server}% %{lobby.chatColor.Server}%You are %{lobby.arcatedColor.Server}%not %{lobby.chatColor.Server}%in the %{lobby.arcatedColor.Server}%lobby%{lobby.chatColor.Server}%!"
  476. else:
  477. teleportLobby(player, world of player)
  478. else:
  479. teleportLobby(player, world of player)
  480.  
  481. else:
  482. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Only players can execute this command!"
  483.  
  484.  
  485. command /lobbycompass [<text>] [<text>] [<text>] [<text>] [<text>]:
  486. aliases: /lcomp, /lcompass, /lobbycomp
  487. trigger:
  488. if player has permission "lobby.*" or "lobby.compass.*" or "lobby.compass.create" or "lobby.compass.delete" or "lobby.compass.setspawn" or "lobby.compass.setslot" or "lobby.compass.setname" or "lobby.compass.deletename" or "lobby.compass.setlore" or "lobby.compass.deletelore" or "lobby.compass.setitem" or "lobby.compass.deleteitem" or "lobby.compass.list" or "lobby.compass.setrows" or "lobby.compass.gui":
  489. if arg-1 is not set:
  490. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Do %{lobby.arcatedColor.Lobby}%/%{cmd}% help %{lobby.chatColor.Lobby}%for more info."
  491.  
  492. else if arg-1 is "help":
  493. send "&7──────────[ %{lobby.arcatedColor.Lobby}%LobbyCompass &7]──────────"
  494. send "<ttp:&7Get the help page><cmd:/lobbycompass help>%{lobby.arcatedColor.Lobby}%/lobbycompass help"
  495. if player has permission "op" or "lobby.*" or "lobby.compass.*" or "lobby.compass.create":
  496. send "<ttp:&7Create a minigame><sgt:/lobbycompass create <minigame>>%{lobby.arcatedColor.Lobby}%/lobbycompass create <minigame>"
  497. if player has permission "op" or "lobby.*" or "lobby.compass.*" or "lobby.compass.delete":
  498. send "<ttp:&7Delete a minigame><sgt:/lobbycompass delete <minigame>>%{lobby.arcatedColor.Lobby}%/lobbycompass delete <minigame>"
  499. if player has permission "op" or "lobby.*" or "lobby.compass.*" or "lobby.compass.setslot":
  500. send "<ttp:&7Set the slot for a minigame><sgt:/lobbycompass setslot <minigame> <slot>>%{lobby.arcatedColor.Lobby}%/lobbycompass setslot <minigame> <slot>"
  501. if player has permission "op" or "lobby.*" or "lobby.compass.*" or "lobby.compass.setname":
  502. send "<ttp:&7Set the name for a minigame><sgt:/lobbycompass setname <minigame> <name>>%{lobby.arcatedColor.Lobby}%/lobbycompass setname <minigame> <name>"
  503.  
  504. if player has permission "op" or "lobby.*" or "lobby.compass.*" or "lobby.compass.deletename":
  505. send "<ttp:&7Delete the name for a minigame><sgt:/lobbycompass deletename <minigame>>%{lobby.arcatedColor.Lobby}%/lobbycompass deletename <minigame>"
  506. if player has permission "op" or "lobby.*" or "lobby.compass.*" or "lobby.compass.setlore":
  507. send "<ttp:&7Set the lore for a minigame><sgt:/lobbycompass setlore <minigame> <lore>>%{lobby.arcatedColor.Lobby}%/lobbycompass setlore <minigame> <lore>"
  508. if player has permission "op" or "lobby.*" or "lobby.compass.*" or "lobby.compass.deletelore":
  509. send "<ttp:&7Delete the lore for a minigame><sgt:/lobbycompass deletelore <minigame>>%{lobby.arcatedColor.Lobby}%/lobbycompass deletelore <minigame>"
  510. if player has permission "op" or "lobby.*" or "lobby.compass.*" or "lobby.compass.setitem":
  511. send "<ttp:&7Set the item for a minigame><sgt:/lobbycompass setitem <minigame> <item>>%{lobby.arcatedColor.Lobby}%/lobbycompass setitem <minigame> <item>"
  512.  
  513. if player has permission "op" or "lobby.*" or "lobby.compass.*" or "lobby.compass.deleteitem":
  514. send "<ttp:&7Delete the item for a minigame><sgt:/lobbycompass deleteitem <minigame>>%{lobby.arcatedColor.Lobby}%/lobbycompass deleteitem <minigame>"
  515. if player has permission "op" or "lobby.*" or "lobby.compass.*" or "lobby.compass.list":
  516. send "<ttp:&7Get a list from all minigames><sgt:/lobbycompass list>%{lobby.arcatedColor.Lobby}%/lobbycompass list"
  517. if player has permission "op" or "lobby.*" or "lobby.compass.*" or "lobby.compass.setrows":
  518. send "<ttp:&7Set the amount of rows in the GUI><sgt:/lobbycompass setrows <rows>>%{lobby.arcatedColor.Lobby}%/lobbycompass setrows <rpws>"
  519. if player has permission "op" or "lobby.*" or "lobby.compass.*" or "lobby.compass.setspawn":
  520. send "<ttp:&7Set the spawn for a minigame><sgt:/lobbycompass setspawn <minigame>>%{lobby.arcatedColor.Lobby}%/lobbycompass setspawn <minigame>"
  521. if player has permission "op" or "lobby.*" or "lobby.compass.*" or "lobby.compass.setspawntype":
  522. send "<ttp:&7Set the teleportion type><sgt:/lobbycompasss setspawntype <minigame> world/location>%{lobby.arcatedColor.Lobby}%/Lobbycompass setspawntype/sst <minigame> world/location"
  523.  
  524. if player has permission "op" or "lobby.*" or "lobby.compass.*" or "lobby.compass.gui":
  525. send "<ttp:&7Open a easy-setup GUI for minigames><sgt:/lobbycompass gui <minigame>>%{lobby.arcatedColor.Lobby}%/lobbycompass gui <minigame>"
  526.  
  527.  
  528. send "&7──────────[ %{lobby.arcatedColor.Lobby}%LobbyCompass &7]──────────"
  529.  
  530. else if arg-1 is "create":
  531. if player has permission "lobby.*" or "lobby.compass.*" or "lobby.compass.create":
  532. if arg-2 is set:
  533. if {lobby.minigames.%arg-2%} is not set:
  534. set {lobby.minigames.%arg-2%} to true
  535. set {lobby.minigames.%arg-2%.name} to "&cNone"
  536. set {lobby.minigames.%arg-2%.lore} to "&cNone"
  537. set {lobby.minigames.%arg-2%.item} to "&cNone"
  538. set {lobby.minigames.%arg-2%.slot} to "&cNone"
  539. set {lobby.minigames.%arg-2%.teleportType} to "location"
  540. set {lobby.minigames.%arg-2%.spawn} to location of player
  541. add arg-2 to {lobby.minigames.list::*}
  542.  
  543. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully made the minigame %{lobby.arcatedColor.Lobby}%%arg-2%%{lobby.chatColor.Lobby}%!"
  544.  
  545. else:
  546. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The minigame %{lobby.arcatedColor.Lobby}%%arg-2% %{lobby.chatColor.Lobby}%already exists!"
  547. else:
  548. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The command is not used correctly!" and "%{lobby.logo.Lobby}% Correct usage: %{lobby.arcatedColor.Lobby}%/%{cmd}% %arg-1% <minigame>%{lobby.chatColor.Lobby}%."
  549. else:
  550. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You don't have enough permissions to do this!"
  551.  
  552. else if arg-1 is "delete" or "remove":
  553. if player has permission "lobby.*" or "lobby.compass.*" or "lobby.compass.delete":
  554. if arg-2 is set:
  555. if {lobby.minigames.%arg-2%} is set:
  556. delete {lobby.minigames.%arg-2%}
  557. delete {lobby.mninigames.%arg-2%.name}
  558. delete {lobby.mninigames.%arg-2%.lore}
  559. delete {lobby.mninigames.%arg-2%.item}
  560. delete {lobby.mninigames.%arg-2%.slot}
  561. delete {lobby.mninigames.%arg-2%.spawn}
  562. delete {lobby.minigames.%arg-2%.teleportType}
  563. remove arg-2 from {lobby.minigames.list::*}
  564.  
  565. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully removed the minigame %{lobby.arcatedColor.Lobby}%%arg-2%%{lobby.chatColor.Lobby}%!"
  566. else:
  567. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The minigame %{lobby.arcatedColor.Lobby}%%arg-2% %{lobby.chatColor.Lobby}%doesn't exist!"
  568. else:
  569. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The command is not used correctly!" and "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Correct usage: %{lobby.arcatedColor.Lobby}%/%{cmd}% %arg-1% <minigame>%{lobby.chatColor.Lobby}%."
  570. else:
  571. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You don't have enough permissions to do this!"
  572.  
  573. else if arg-1 is "setspawn":
  574. if player has permission "lobby.*" or "lobby.compass.*" or "lobby.compass.setspawn":
  575. if arg-2 is set:
  576. if {lobby.minigames.%arg-2%} is set:
  577. set {lobby.minigames.%arg-2%.spawn} to location of player
  578. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully set the spawn of the minigame %{lobby.arcatedColor.Lobby}%%arg-2% %{lobby.chatColor.Lobby}%at %{lobby.arcatedColor.Lobby}%%location of player%%{lobby.chatColor.Lobby}%!"
  579.  
  580. else:
  581. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The minigame %{lobby.arcatedColor.Lobby}%%arg-2% %{lobby.chatColor.Lobby}%doesn't exist!"
  582. else:
  583. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The command is not used correctly!" and "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Correct usage: %{lobby.arcatedColor.Lobby}%/%{cmd}% %arg-1% <minigame>%{lobby.chatColor.Lobby}%."
  584. else:
  585. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You don't have enough permissions to do this!"
  586.  
  587. else if arg-1 is "setslot":
  588. if player has permission "lobby.*" or "lobby.compass.*" or "lobby.compass.setslot":
  589. if arg-2 is set:
  590. if {lobby.minigames.%arg-2%} is set:
  591. if arg-3 is set:
  592. if (arg-3 parsed as a number) is set:
  593. if {lobby.items.compass.rows} is not set:
  594. set {lobby.items.compass.rows} to 1
  595.  
  596. else if {lobby.items.compass.rows} < 1:
  597. set {lobby.items.compass.rows} to 1
  598.  
  599. if {lobby.items.compass.rows}*9-1 <= arg-3 parsed as a number:
  600. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The amount %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%is to big! The slot number has to be between %{lobby.arcatedColor.Lobby}%0 %{lobby.chatColor.Lobby}%and %{lobby.arcatedColor.Lobby}%%{lobby.items.compass.rows}*9-1%%{lobby.chatColor.Lobby}%."
  601.  
  602. else:
  603. loop {lobby.minigames.list::*}:
  604. if {lobby.minigames.%loop-value%.slot} is arg-3:
  605. set {_set} to loop-value
  606. stop loop
  607.  
  608. if {_set} is set:
  609. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The slot %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%is already in use by the minigame %{lobby.arcatedColor.Lobby}%%{_set}%%{lobby.chatColor.Lobby}%!"
  610.  
  611. else:
  612. set {lobby.minigames.%arg-2%.slot} to arg-3 parsed as a number
  613. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully set the slot of the minigame %{lobby.arcatedColor.Lobby}%%arg-2% %{lobby.chatColor.Lobby}%to %{lobby.arcatedColor.Lobby}%%arg-3%%{lobby.chatColor.Lobby}%!"
  614. else:
  615. send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%is not a number!"
  616. else:
  617. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The command is not used correctly!" and "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Correct usage: %{lobby.arcatedColor.Lobby}%/%{cmd}% %arg-2% <slot>%{lobby.chatColor.Lobby}%."
  618. else:
  619. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The minigame %{lobby.arcatedColor.Lobby}%%arg-2% %{lobby.chatColor.Lobby}%doesn't exist!"
  620. else:
  621. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The command is not used correctly!" and "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Correct usage: %{lobby.arcatedColor.Lobby}%/%{cmd}% slot <minigame> <slot>%{lobby.chatColor.Lobby}%."
  622. else:
  623. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You don't have enough permissions to do this!"
  624.  
  625. else if arg-1 is "setname":
  626. if player has permission "lobby.*" or "lobby.compass.*" or "lobby.compass.setname":
  627. if arg-2 is set:
  628. if {lobby.minigames.%arg-2%} is set:
  629. if arg-3 is set:
  630. set {lobby.minigames.%arg-2%.name} to arg-3
  631. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully set the name of the minigame %{lobby.arcatedColor.Lobby}%%arg-2% %{lobby.chatColor.Lobby}%to %{lobby.arcatedColor.Lobby}%%arg-3%%{lobby.chatColor.Lobby}%!"
  632.  
  633. else:
  634. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The command is not used correctly!" and "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Correct usage: %{lobby.arcatedColor.Lobby}%/%{cmd}% setname %arg-2% <name>%{lobby.chatColor.Lobby}%."
  635. else:
  636. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The minigame %{lobby.arcatedColor.Lobby}%%arg-2% %{lobby.chatColor.Lobby}%doesn't exist!"
  637. else:
  638. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The command is not used correctly!" and "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Correct usage: %{lobby.arcatedColor.Lobby}%/%{cmd}% setname <minigame> <name>%{lobby.chatColor.Lobby}%."
  639. else:
  640. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You don't have enough permissions to do this!"
  641.  
  642. else if arg-1 is "deletename" or "delname":
  643. if player has permission "lobby.*" or "lobby.compass.*" or "lobby.compass.deletename":
  644. if arg-2 is set:
  645. if {lobby.minigames.%arg-2%} is set:
  646. set {lobby.minigames.%arg-2%.name} to "&cNone"
  647. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully deleted the name of the minigame %{lobby.arcatedColor.Lobby}%%arg-2%%{lobby.chatColor.Lobby}%!"
  648.  
  649. else:
  650. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The minigame %{lobby.arcatedColor.Lobby}%%arg-2% %{lobby.chatColor.Lobby}%doesn't exist!"
  651. else:
  652. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The command is not used correctly!" and "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Correct usage: %{lobby.arcatedColor.Lobby}%/%{cmd}% %arg-1 in lower case% <minigame>%{lobby.chatColor.Lobby}%."
  653.  
  654. else:
  655. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You don't have enough permissions to do this!"
  656.  
  657.  
  658. else if arg-1 is "setlore":
  659. if player has permission "lobby.*" or "lobby.compass.*" or "lobby.compass.setlore":
  660. if arg-2 is set:
  661. if {lobby.minigames.%arg-2%} is set:
  662. if arg-3 is set:
  663. set {lobby.minigames.%arg-2%.lore} to arg-3
  664. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully set the lore of the minigame %{lobby.arcatedColor.Lobby}%%arg-2% %{lobby.chatColor.Lobby}%to %{lobby.arcatedColor.Lobby}%%arg-3%%{lobby.chatColor.Lobby}%!"
  665.  
  666. else:
  667. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The command is not used correctly!" and "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Currect usage: %{lobby.arcatedColor.Lobby}%/%{cmd}% setlore %arg-2% <lore>%{lobby.chatColor.Lobby}%."
  668. else:
  669. send "%{lobby.logo.server}% %{lobby.chatColor.Lobby}%The minigame %{lobby.arcatedColor.Lobby}%%arg-2% %{lobby.chatColor.Lobby}%doesn't exist!"
  670. else:
  671. send "%{lobby.logo.server}% %{lobby.chatColor.Lobby}%The command is not used correctly!" and "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Correct usage: %{lobby.arcatedColor.Lobby}%/%{cmd}% setlore <minigame> <lore>%{lobby.chatColor.Lobby}%."
  672.  
  673. else:
  674. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You don't have enough permissions to do this!"
  675.  
  676. else if arg-1 is "deletelore" or "dellore":
  677. if player has permission "lobby.*" or "lobby.compass.*" or "lobby.compass.deletelore":
  678. if arg-2 is set:
  679. if {lobby.minigames.%arg-2%} is set:
  680. set {lobby.minigames.%arg-2%.lore} to "&cNone"
  681. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully deleted the lore of the minigame %{lobby.arcatedColor.Lobby}%%arg-2%%{lobby.chatColor.Lobby}%!"
  682.  
  683. else:
  684. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The minigame %{lobby.arcatedColor.Lobby}%%arg-2% %{lobby.chatColor.Lobby}%doesn't exist!"
  685. else:
  686. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The command is not used correctly!" and "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Correct usage: %{lobby.arcatedColor.Lobby}%/%{cmd}% %arg-1 in lower case% <minigame>%{lobby.chatColor.Lobby}%."
  687.  
  688. else:
  689. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You don't have enough permissions to do this!"
  690.  
  691.  
  692. else if arg-1 is "setitem":
  693. if player has permission "lobby.*" or "lobby.compass.*" or "lobby.compass.setitem":
  694. if arg-2 is set:
  695. if {lobby.minigames.%arg-2%} is set:
  696. if arg-3 is set:
  697. if arg-3 parsed as an item is set:
  698. set {lobby.minigames.%arg-2%.item} to arg-3 parsed as an item type
  699. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully set the item of the minigame %{lobby.arcatedColor.Lobby}%%arg-2% %{lobby.chatColor.Lobby}%to %{lobby.arcatedColor.Lobby}%%arg-3%%{lobby.chatColor.Lobby}%!"
  700.  
  701. else:
  702. send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%is not an item!"
  703. else:
  704. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The command is not used correctly!" and "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Correct usage: %{lobby.arcatedColor.Lobby}%/%{cmd}% setitem %arg-2% <item>%{lobby.chatColor.Lobby}%."
  705. else:
  706. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The minigame %{lobby.arcatedColor.Lobby}%%arg-2% %{lobby.chatColor.Lobby}%doesn't exist!"
  707. else:
  708. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The command is not used correctly!" and "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Correct usage: %{lobby.arcatedColor.Lobby}%/%{cmd}% setitem <minigame> <item>%{lobby.chatColor.Lobby}%."
  709. else:
  710. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You don't have enough permissions to do this!"
  711.  
  712. else if arg-1 is "deleteitem" or "delitem":
  713. if player has permission "lobby.*" or "lobby.compass.*" or "lobby.compass.deleteitem":
  714. if arg-2 is set:
  715. if {lobby.minigames.%arg-2%} is set:
  716. set {lobby.minigames.%arg-2%.item} to "&cNone"
  717. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully deleted the item of the minigame %{lobby.arcatedColor.Lobby}%%arg-2%%{lobby.chatColor.Lobby}%!"
  718.  
  719. else:
  720. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The minigame %{lobby.arcatedColor.Lobby}%%arg-2% %{lobby.chatColor.Lobby}%doesn't exist!"
  721. else:
  722. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The command is not used correctly!" and "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Correct usage: %{lobby.arcatedColor.Lobby}%/%{cmd}% %arg-1 in lower case% <minigame>%{lobby.chatColor.Lobby}%."
  723.  
  724. else:
  725. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You don't have enough permissions to do this!"
  726.  
  727.  
  728. else if arg-1 is "list":
  729. if player has permission "lobby.*" or "lobby.compass.*" or "lobby.compass.list":
  730. if {lobby.minigames.list::*} is not empty:
  731. loop {lobby.minigames.list::*}:
  732. if {_list} is set:
  733. set {_list} to "%{_list}%%{lobby.chatColor.Lobby}%, %{lobby.arcatedColor.Lobby}%%loop-value%"
  734. else:
  735. set {_list} to "%loop-value%"
  736.  
  737. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%This is the list of all the minigames:" and "%{lobby.arcatedColor.Lobby}%%{_list}%"
  738. else:
  739. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%There are no minigames added yet."
  740. else:
  741. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You don't have enough permissions to do this!"
  742.  
  743.  
  744. else if arg-1 is "setrows":
  745. if player has permission "lobby.*" or "lobby.compass.*" or "lobby.compass.setrows":
  746. if arg-2 is set:
  747. if arg-2 parsed as a number is set:
  748. if arg-2 parsed as a number < 7:
  749. set {lobby.items.compass.rows} to arg-2 parsed as a number
  750. set yml value "Lobby.Join.Compass.GUI.rows" of file "{@config}" to arg-2 parsed as a number
  751. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully set the amount of rows to %{lobby.arcatedColor.Lobby}%%arg-2%%{lobby.chatColor.Lobby}%!"
  752.  
  753. else:
  754. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The maximum amount of rows is %{lobby.arcatedColor.Lobby}%6%{lobby.chatColor.Lobby}%!"
  755. else:
  756. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%%{lobby.arcatedColor.Lobby}%%arg-2% %{lobby.chatColor.Lobby}%is not a number!"
  757. else:
  758. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The command is not used correctly!" and "%{lobby.logo.server}% %{lobby.chatColor.Lobby}%Correct usage: %{lobby.arcatedColor.Lobby}%/%{cmd}% setrows <rows>%{lobby.chatColor.Lobby}%."
  759. else:
  760. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You don't have enough permissions to do this!"
  761.  
  762. else if arg-1 is "setspawntype" or "sst":
  763. if player has permission "lobby.*" or "lobby.compass.*" or "lobby.compass.setrows":
  764. if arg-2 is set:
  765. if {lobby.minigames.%arg-2%} is true:
  766. if arg-3 is set:
  767. if arg-3 is "world" or "location":
  768. set {lobby.minigames.%arg-2%.teleportType} to arg-3 in lower case
  769. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully set the %{lobby.arcatedColor.Lobby}%spawn type %{lobby.chatColor.Lobby}%to %{lobby.arcatedColor.Lobby}%%arg-3 in lower case%%{lobby.chatColor.Lobby}%!"
  770.  
  771. else:
  772. send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%is not a valid type!"
  773. else:
  774. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The command is not used correctly!" and "%{lobby.logo.server}% %{lobby.chatColor.Lobby}%Correct usage: %{lobby.arcatedColor.Lobby}%/%{cmd}% %arg-1% %arg-2% world/location%{lobby.chatColor.Lobby}%."
  775.  
  776. else:
  777. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The minigame %{lobby.arcatedColor.Lobby}%%arg-2% %{lobby.chatColor.Lobby}%doesn't exist!"
  778.  
  779. else:
  780. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The command is not used correctly!" and "%{lobby.logo.server}% %{lobby.chatColor.Lobby}%Correct usage: %{lobby.arcatedColor.Lobby}%/%{cmd}% %arg-1% <mingame> world/location%{lobby.chatColor.Lobby}%."
  781. else:
  782. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You don't have enough permissions to do this!"
  783.  
  784. else if arg-1 is "gui":
  785. if player has permission "lobby.*" or "lobby.compass.*" or "lobby.compass.gui":
  786. if arg-2 is set:
  787. if {lobby.minigames.%arg-2%} is set:
  788. wait 2 ticks
  789. open chest with 2 rows named "&8Config GUI" to player
  790. wait 2 ticks
  791. set {_item} to "book"
  792. set {_name} to {lobby.minigames.%arg-2%.name}
  793. set {_lore} to {lobby.minigames.%arg-2%.lore}
  794.  
  795. replace all "&" in {_name} with "§"
  796. replace all "&" in {_lore} with "§"
  797.  
  798. if ({lobby.minigames.%arg-2%.item} parsed as an item type) is set:
  799. if ({lobby.minigames.%arg-2%.item} parsed as an item type) is not air:
  800. set {_item} to {lobby.minigames.%arg-2%.item}
  801.  
  802. format slot 2 of player with ({_item} parsed as an item type) named "%{lobby.chatColor.Lobby}%Minigame: %{lobby.arcatedColor.Lobby}%%arg-2%" to be unstealable
  803. format slot 3 of player with name tag named "%{lobby.chatColor.Lobby}%Name: %{lobby.arcatedColor.Lobby}%%{_name}%" to close then run [execute console command "/createGUICompass %player% 1 %arg-2% &8Name %arg-2%"]
  804. format slot 4 of player with paper named "%{lobby.chatColor.Lobby}%Lore" with lore {_lore} to close then run [execute console command "/createGUICompass %player% 2 %arg-2% &8Lore %arg-2%"]
  805. format slot 5 of player with ({_item} parsed as an item type) named "%{lobby.chatColor.Lobby}%Item: %{lobby.arcatedColor.Lobby}%%{lobby.minigames.%arg-2%.item}%" to close then run [execute console command "/createGUICompass %player% 3 %arg-2% &8Item %arg-2%"]
  806. format slot 6 of player with clock named "%{lobby.chatColor.Lobby}%Slot: %{lobby.arcatedColor.Lobby}%%{lobby.minigames.%arg-2%.slot}%" to close then run [execute console command "/createGUICompass %player% 4 %arg-2% &8Slot %arg-2%"]
  807.  
  808. format slot 12 of player with redstone named "%{lobby.chatColor.Lobby}%Spawn: %{lobby.arcatedColor.Lobby}%%{lobby.minigames.%arg-2%.spawn}%" to close then run [execute console command "/createGUICompass %player% 5 %arg-2% &8Spawn %arg-2%"]
  809. format slot 13 of player with barrier named "&cClose menu" to close
  810.  
  811. if {lobby.minigames.%arg-2%.teleportType} is "location":
  812. format slot 14 of player with end portal frame named "%{lobby.ChatColor.Lobby}%Teleport: %{lobby.arcatedColor.Lobby}%Location" to close then run [execute console command "/lobbycompass set setspawntype %player% %arg-2% world"]
  813.  
  814. else if {lobby.minigames.%arg-2%.teleportType} is "world":
  815. format slot 14 of player with end portal frame named "%{lobby.ChatColor.Lobby}%Teleport: %{lobby.arcatedColor.Lobby}%World" to close then run [execute console command "/lobbycompass set setspawntype %player% %arg-2% location"]
  816.  
  817. else:
  818. format slot 14 of player with end portal frame named "%{lobby.ChatColor.Lobby}%Teleport: %{lobby.arcatedColor.Lobby}%Location" to close then run [execute console command "/lobbycompass set setspawntype %player% %arg-2% world"]
  819.  
  820. #format slot 14 of player with end portal frame named "%{lobby.ChatColor.Lobby}%Teleport: %{lobby.arcatedColor.Lobby}%Location / World" to be unstealable
  821.  
  822. #command /createGUICompass [<text>] [<text>] [<text>] [<text>]:
  823. format slot 17 of player with redstone named "&4Delete" to close then run [execute console command "/createGUICompass %player% 6 %arg-2% &8Delete %arg-2%"]
  824. #format slot 17 of player with redstone named "&4Delete" to close then run [createCompassGUI(player, "&8Delete %arg-2%", 3, 12, 14, green wool, red wool, "&aDelete", "&cDeny", "/lcompass delete %arg-2%", "delete", "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You have chosen to not delete the minigame %{lobby.arcatedColor.Lobby}%%arg-2%%{lobby.chatColor.Lobby}%.", arg-2, true)]
  825.  
  826. else:
  827. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The minigame %{lobby.arcatedColor.Lobby}%%arg-2% %{lobby.chatColor.Lobby}%doesn't exist!"
  828. else:
  829. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The command is not used correctly!" and "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Correct usage: %{lobby.arcatedColor.Lobby}%/%{cmd}% gui <minigame>%{lobby.chatColor.Lobby}%."
  830.  
  831. else:
  832. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You don't have enough permissions to do this!"
  833.  
  834.  
  835.  
  836. else:
  837. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Do %{lobby.arcatedColor.Lobby}%/%{cmd}% help %{lobby.chatColor.Lobby}%for more info."
  838.  
  839. if executor is console:
  840. if arg-1 is "set":
  841. if arg-2 is set:
  842. if arg-3 is set:
  843. if arg-4 is set:
  844. if arg-5 is set:
  845. if arg-2 is "setspawntype":
  846. set {lobby.minigames.%arg-4%.teleportType} to arg-5 in lower case
  847. delete {lobby.chatEvent.%arg-3%}
  848. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully set the %{lobby.arcatedColor.Lobby}%teleport type%{lobby.chatColor.Lobby}% to %{lobby.arcatedColor.Lobby}%%arg-5%%{lobby.chatColor.Lobby}%!" to arg-3 parsed as a player
  849. execute arg-3 parsed as a player command "/lobbycompass gui %arg-4%"
  850. delete {lobby.chatEventMinigame.%arg-2%}
  851.  
  852. else if arg-2 is "item":
  853. if arg-5 parsed as an item type is set:
  854. set {lobby.minigames.%arg-4%.%arg-2%} to arg-5 parsed as an item type
  855. delete {lobby.chatEvent.%arg-3%}
  856. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully set the %{lobby.arcatedColor.Lobby}%%arg-2%%{lobby.chatColor.Lobby}% to %{lobby.arcatedColor.Lobby}%%arg-5%%{lobby.chatColor.Lobby}%!" to arg-3 parsed as a player
  857. execute arg-3 parsed as a player command "/lobbycompass gui %arg-4%"
  858. delete {lobby.chatEventMinigame.%arg-2%}
  859. else:
  860. send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%%arg-5% %{lobby.chatColor.Lobby}%is not an item!" to arg-3 parsed as a player
  861.  
  862. else if arg-2 is "slot":
  863. if arg-5 parsed as a number is set:
  864. set {lobby.minigames.%arg-4%.%arg-2%} to arg-5 parsed as a number
  865. delete {lobby.chatEvent.%arg-3%}
  866. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully set the %{lobby.arcatedColor.Lobby}%%arg-2%%{lobby.chatColor.Lobby}% to %{lobby.arcatedColor.Lobby}%%arg-5%%{lobby.chatColor.Lobby}%!" to arg-3 parsed as a player
  867. execute arg-3 parsed as a player command "/lobbycompass gui %arg-4%"
  868. delete {lobby.chatEventMinigame.%arg-2%}
  869. else:
  870. send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%%arg-5% %{lobby.chatColor.Lobby}%is not a number!" to arg-3 parsed as a player
  871.  
  872. else if arg-2 is "lore":
  873. set {_arg} to arg-5
  874. replace all "||" in {_arg} with "&r||"
  875.  
  876. else:
  877. set {_arg} to arg-5
  878.  
  879. if {_arg} is set:
  880. set {lobby.minigames.%arg-4%.%arg-2%} to {_arg}
  881. delete {lobby.chatEvent.%arg-3%}
  882. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully set the %{lobby.arcatedColor.Lobby}%%arg-2%%{lobby.chatColor.Lobby}% to %{lobby.arcatedColor.Lobby}%%{_arg}%%{lobby.chatColor.Lobby}%!" to arg-3 parsed as a player
  883. execute arg-3 parsed as a player command "/lobbycompass gui %arg-4%"
  884. delete {lobby.chatEventMinigame.%arg-4%}
  885. else:
  886. send "&7[&eLOBBY&7] &cERROR &fThere is no %arg-2% given!"
  887. else:
  888. send "&7[&eLOBBY&7] &cERROR &fThere is no mingiame given!"
  889. else:
  890. send "&7[&eLOBBY&7] &cERROR &fThere is no player given!"
  891. else:
  892. send "&7[&eLOBBY&7] &cERROR &fThere is no setting to set given!"
  893.  
  894.  
  895. command /teleportminigame [<text>] [<text>]:
  896. trigger:
  897. if executor is console:
  898. if {lobby.minigames.%arg-2%} is set:
  899. if {lobby.minigames.%arg-2%.teleportType} is "location":
  900. teleport arg-1 parsed as a player to {lobby.minigames.%arg-2%.spawn}
  901.  
  902. else if {lobby.minigames.%arg-2%.teleportType} is "world":
  903.  
  904. #wait 1 tick
  905. #execute console command "/mvtp %arg-1% %{lobby.minigames.%arg-2%.world}%"
  906. if {lobby.lastloc.%arg-1%.%{lobby.minigames.%arg-2%.world}%} is set:
  907.  
  908. teleport arg-1 parsed as a player to {lobby.lastloc.%arg-1 parsed as a player%.%{lobby.minigames.%arg-2%.world}%}
  909. else:
  910. execute console command "/mvtp %arg-1% %{lobby.minigames.%arg-2%.world}%"
  911.  
  912. #send "%{lobby.minigames.%arg-2%.world}%" to arg-1 parsed as a player
  913. #send "%{lobby.lastloc.%arg-1%.%{lobby.minigames.%arg-2%.world}%}%" to arg-1 parsed as a player
  914. wait 1 tick
  915. if world of arg-1 parsed as a player is not {lobby.minigames.%arg-2%.world}:
  916. send "&7[&6LOBBY&7] &cERROR &fThe plugin 'multiverse' is not installed or not loaded, teleport player to the location." to console
  917. teleport arg-1 parsed as a player to {lobby.minigames.%arg-2%.spawn}
  918.  
  919. else:
  920. teleport arg-1 parsed as a player to {lobby.minigames.%arg-2%.spawn}
  921.  
  922. else:
  923. send "%{lobby.logo.server}% %{lobby.chatColor.Server}%Error whilst connecting to %{lobby.arcatedColor.Server}%%arg-2%%{lobby.chatColor.Server}%! Please report this error to staff." to {_p}
  924.  
  925.  
  926. command /opencompass [<text>]:
  927. trigger:
  928. if executor is console:
  929. if {lobby.items.compass.rows} is not set:
  930. set {lobby.items.compass.rows} to 3
  931.  
  932. wait 2 ticks
  933. open chest with {lobby.items.compass.rows} rows named "%{lobby.items.compass.guiName}%" to arg-1 parsed as a player
  934. wait 2 ticks
  935.  
  936. loop {lobby.minigames.list::*}:
  937. if "%{lobby.minigames.%loop-value%.slot}%" starts with "-":
  938. send "%{lobby.logo.Lobby}% &4[ERROR] %{lobby.arcatedColor.Lobby}%%arg-1 parsed as a player% %{lobby.chatColor.Lobby}%has opened the compass with the following error:" and "%{lobby.arcatedColor.Lobby}%%{lobby.minigames.%loop-value%.slot}% %{lobby.chatColor.Lobby}%starts with '-'" to console
  939.  
  940. else:
  941. if ("%{lobby.minigames.%loop-value%.slot}%" parsed as a number) is set:
  942. if ("%{lobby.minigames.%loop-value%.item}%" parsed as an item type) is set:
  943. set {_item} to {lobby.minigames.%loop-value%.item}
  944.  
  945. else:
  946. set {_item} to paper
  947.  
  948. set {_slot} to ("%{lobby.minigames.%loop-value%.slot}%" parsed as a number)
  949.  
  950. if {lobby.minigames.%loop-value%.name} is set:
  951. if {lobby.minigames.%loop-value%.name} is not "&cNone":
  952. set {_name} to "%{lobby.minigames.%loop-value%.name}%"
  953. replace all "&" in {_name} with "§"
  954. if {lobby.mingames.%loop-value%lore} is set:
  955. if {lobby.minigames.%loop-value%.lore} is not "&cNone":
  956. set {_lore} to "%{lobby.minigames.%loop-value%.lore}%"
  957. replace all "&" in {_lore} with "§"
  958. set slot {_slot} of arg-1 parsed as a player's current inventory to ("%{_item}%" parsed as an item) named "&f%{_name}%" with lore "%{_lore}%" without any NBT
  959.  
  960. #format slot {%arg-2%.slot} of arg-1 parsed as a player with ("%{lobby.minigames.%arg-2%.item}%" parsed as an item) named "&f%{%arg-2%.name}%" with lore "%{%arg-2%.lore}%" without any NBT to close then run [execute console command "/teleportminigame %arg-1 parsed as a player% %{%arg-2%.name}% %{%arg-2%.slot}%"]
  961. else:
  962. set slot {_slot} of arg-1 parsed as a player's current inventory to ("%{_item}%" parsed as an item) named "&f%{_name}%" without any NBT
  963. #format slot {%arg-2%.slot} of arg-1 parsed as a player with "%{lobby.minigames.%arg-2%.item}%" parsed as an item named "&f%{%arg-2%.name}%" without any NBT to close then run [execute console command "/teleportminigame %arg-1 parsed as a player% %{%arg-2%.name}% %{%arg-2%.slot}%"]
  964. else:
  965. set slot {_slot} of arg-1 parsed as a player's current inventory to ("%{_item}%" parsed as an item) named "&f%{_name}%" without any NBT
  966.  
  967. #set slot {%arg-2%.slot} of arg-1 parsed as a player's current inventory to {%arg-2%.item}
  968. #format slot {%arg-2%.slot} of arg-1 parsed as a player with "%{lobby.minigames.%arg-2%.item}%" parsed as an item named "&f%{%arg-2%.name}%" without any NBT to close then run [execute console command "/teleportminigame %arg-1 parsed as a player% %{%arg-2%.name}% %{%arg-2%.slot}%"]
  969. else:
  970. set slot {_slot} of arg-1 parsed as a player's current inventory to ("%{_item}%" parsed as an item) without any NBT
  971.  
  972. #format slot {%arg-2%.slot} of arg-1 parsed as a player with "%{lobby.minigames.%arg-2%.item}%" parsed as an item without any NBT to close then run [execute console command "/teleportminigame %arg-1 parsed as a player% %{%arg-2%.name}% %{%arg-2%.slot}%"]
  973. else:
  974. set slot {_slot} of arg-1 parsed as a player's current inventory to ("%{_item}%" parsed as an item) without any NBT
  975. #format slot {%arg-2%.slot} of arg-1 parsed as a player with "%{lobby.minigames.%arg-2%.item}%" parsed as an item without any NBT to close then run [execute console command "/teleportminigame %arg-1 parsed as a player% %{%arg-2%.name}% %{%arg-2%.slot}%"]
  976. else:
  977. send "%{lobby.logo.Lobby}% &4[ERROR] %{lobby.arcatedColor.Lobby}%%arg-1 parsed as a player% %{lobby.chatColor.Lobby}%has opened the compass with the following error:" and "%{lobby.arcatedColor.Lobby}%%{lobby.minigames.%loop-value%.slot}% %{lobby.chatColor.Lobby}%is not a number" to console
  978.  
  979. #-----------------------------------{ Other }-----------------------------------
  980. function sendPluginList(p: Player):
  981. set {_list::*} to list of plugins
  982. set {_count} to 0
  983. loop {_list::*}:
  984. add 1 to {_count}
  985. if {_list} is set:
  986. set {_list} to "%{_list}%%{lobby.chatColor.Server}%, %{lobby.arcatedColor.Server}%%loop-value%"
  987. else:
  988. set {_list} to "%{lobby.arcatedColor.Server}%%loop-value%"
  989.  
  990. send "%{lobby.logo.server}% %{lobby.chatColor.Server}%Total Plugins: %{lobby.arcatedColor.Server}%%{_count}%%nl%%{lobby.chatColor.Server}%%{_list}%" to {_p}
  991. set {plugins.loaded::*} to {_list::*}
  992.  
  993. on command:
  994. command ends with "plugins":
  995. cancel event
  996. if player has permission "op":
  997. sendPluginList(player)
  998.  
  999. command ends with "pl":
  1000. cancel event
  1001. if player has permission "op":
  1002. sendPluginList(player)
  1003.  
  1004. command is "spawn":
  1005. if world of player is not "Zingdom-World" and "Zingdom1-Nether" and "Zingdom1-End":
  1006. cancel event
  1007. if world of player is {lobby.world}:
  1008. teleport player to {lobby.location}
  1009.  
  1010. command is "hub":
  1011. teleport player to {lobby.location}
  1012.  
  1013. else:
  1014. set {cmd} to command in lower case
Add Comment
Please, Sign In to add comment