Oxalist

Lobby

Apr 4th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.31 KB | None | 0 0
  1. variables:
  2. {hidden::%player%} = "False"
  3.  
  4. on inventory click:
  5. if player is in world "ul_lobby-1":
  6. if {Bypass::%player%} is not set:
  7. cancel event
  8.  
  9. on drop:
  10. if player is in world "ul_lobby-1":
  11. if {Bypass::%player%} is not set:
  12. cancel event
  13.  
  14. on break:
  15. if player is in world "ul_lobby-1":
  16. if {Bypass::%player%} is not set:
  17. cancel event
  18. send "&e(Anti-Grief) &7You cannot destroy blocks here."
  19.  
  20. on rightclick:
  21. if player is in world "ul_lobby-1":
  22. if {Bypass::%player%} is not set:
  23. cancel event
  24.  
  25. on join:
  26. wait 0.3 seconds
  27. if player is in world "ul_lobby-1":
  28. set slot 0 of player's inventory to compass named "&eServer Selector &7(Right-Click)"
  29. set slot 3 of player's inventory to chest named "&eCosmetics &7(Right-Click)"
  30. set slot 5 of player's inventory to gray dye named "&eHide all players &7(Right-Click)"
  31. set slot 8 of player's inventory to book named "&eDiscord &7(Right-Click)"
  32.  
  33. on first join:
  34. if player is in world "ul_lobby-1":
  35. clear player's inventory
  36. set slot 0 of player's inventory to compass named "&eServer Selector &7(Right-Click)"
  37. set slot 3 of player's inventory to chest named "&eCosmetics &7(Right-Click)"
  38. set slot 5 of player's inventory to gray dye named "&eHide all players &7(Right-Click)"
  39. set slot 8 of player's inventory to book named "&eDiscord &7(Right-Click)"
  40.  
  41. on walk on obsidian:
  42. if player is in world "ul_lobby-1":
  43. open chest with 3 rows named "&cServers" to player
  44. format slot 10 of player with 1 emerald named "&eClicker Server" to run [make player execute "/joinserver Clicker"]
  45. format slot 12 of player with 1 diamond pickaxe named "&eSurvival Server" to run [make player execute "/joinserver Survival"]
  46. format slot 14 of player with 1 grass named "&eCreative Server" to run [make player execute "/joinserver Creative"]
  47. format slot 16 of player with 1 bedrock named "&4Coming Soon" to run [make player execute ""]
  48.  
  49. on right click with compass:
  50. if player is in world "ul_Lobby-1":
  51. if name of item is "&eServer Selector &7(Right-Click)":
  52. open chest with 3 rows named "&cServers" to player
  53. format slot 10 of player with 1 emerald named "&eClicker Server" to run [make player execute "/joinserver Clicker"]
  54. format slot 12 of player with 1 diamond pickaxe named "&eSurvival Server" to run [make player execute "/joinserver Survival"]
  55. format slot 14 of player with 1 grass named "&eCreative Server" to run [make player execute "/joinserver Creative"]
  56. format slot 16 of player with 1 bedrock named "&4Coming Soon" to run [make player execute ""]
  57.  
  58. on right click with gray dye:
  59. if player is in world "ul_Lobby-1":
  60. if name of item is "&eHide all players &7(Right-Click)":
  61. if {hidden::%player%} is "False":
  62. hide all players in player's world from player
  63. send "&e(Players) &7All players are &fHidden &7for you"
  64. set {hidden::%player%} to "True"
  65. stop
  66. if {hidden::%player%} is "True":
  67. reveal all players in player's world from player
  68. send "&e(Players) &7All players are &fUnhidden &7for you"
  69. set {hidden::%player%} to "False"
  70. stop
  71.  
  72. on right click with book:
  73. if player is in world "ul_Lobby-1":
  74. if name of item is "&eDiscord &7(Right-Click)":
  75. json("%player%","&e(Social) &7Join our discord for updates *Click Here*||url:discord.gg/QDs6FEX||ttp:&e(Discord) &7Click this link to access the discord")
  76.  
  77.  
  78. command /joinserver [<text>]:
  79. trigger:
  80. if player is in world "ul_Lobby-1":
  81. if arg 1 is not set:
  82. send "&e(Server) &7/joinserver <Clicker|Survival|Prison|Creative>"
  83. if arg 1 is set:
  84. if arg 1 is "clicker":
  85. send "&e(Server) &7Sending you to the &fClicker Server"
  86. wait 0.25 seconds
  87. make console execute "/mv tp %player% main"
  88. if arg 1 is "survival":
  89. send "&e(Server) &7Sending you to the &fSurvival Server"
  90. wait 0.25 seconds
  91. make console execute "/mv tp %player% survival"
  92. if arg 1 is "creative":
  93. send "&e(Server) &7Sending you to the &fCreative Server"
  94. wait 0.25 seconds
  95. make console execute "/mv tp %player% plots"
  96.  
  97. command /lobby:
  98. trigger:
  99. if player is not in world "ul_lobby-1":
  100. send "&e(Server) &7Sending you to &fLobby ##1"
  101. wait 0.25 seconds
  102. make console execute "/mv tp %player% ul_lobby-1"
  103. else:
  104. send "&e(Server) &7You are already in &fLobby ##1"
  105.  
  106. command /bc [<text>]:
  107. aliases: /broadcast, /announce, /announcement, /a
  108. permission: alert.use
  109. trigger:
  110. if arg 1 is not set:
  111. send "&e(Alert) &7Please put some text:"
  112. send "&e(Alert) &7*/announce hi*"
  113. if arg 1 is set:
  114. broadcast "&e(Announcement) &f%arg 1%"
  115. send player title "&eAnnouncement" with subtitle "&f%arg 1%" for 4 seconds
Add Comment
Please, Sign In to add comment