Advertisement
Guest User

Untitled

a guest
Nov 16th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.69 KB | None | 0 0
  1. # -------------------- #
  2.  
  3. # LobbySystem - SrSergioxx #
  4. # Plugin Version 2.0 #
  5.  
  6. # -------------------- #
  7.  
  8.  
  9. # ------------------------- #
  10.  
  11. # Configuration Zone #
  12. # Messages // Settings #
  13.  
  14. # ------------------------- #
  15.  
  16. options:
  17. Prefix: &3LOBBY &fยป
  18. #=======================#
  19. # Messages #
  20. #=======================#
  21. Set: &7Lobby has been changed to your location.
  22. Teleport: &7You have been teleported to the Lobby!
  23. Teleported: &e%arg 1% &7has been teleported to the Lobby!
  24. SetVip: &7Lobby for VIP players have been changed !
  25. TeleportVip: &7You have been teleported to the Vip Lobby!
  26. Join: &a+ &e%player% &7Has joined the server.
  27. Join_Vip: &a&l+ &6&lVIP &a%player% &7Has joined the server.
  28. Leave: &4- &e%player% &7Has left the server.
  29. Leave_Vip: &4&l- &6&lVIP &a%player% &7Has left the server.
  30. #=======================#
  31. # Join Message #
  32. #=======================#
  33. Line1: &6Welcome &7%player%
  34. Line2: &6
  35. Line3: &ePlaying: &f%number of all players%/100
  36. Line4: &eMoney: &f-/-
  37. Line5: &eShop: &fshop.servername.net
  38. Spacer: &7&m---------------------------
  39. #=======================#
  40. # True/False Settings #
  41. #=======================#
  42. Lobby_Vip: false
  43. Tiles: true
  44. Title: &6&LWelcome Again, &a&l%player%
  45. Subtitle: &7Hope you enjoy the server!
  46. Lobby_Title: &6&lYou've Return To Lobby
  47. Lobby_Subtitle: &7Plugin Developed By @SrSergioxx
  48. ActionBar: true
  49. Bar: &3&lIP: &Dmc.servername.net
  50. JoinMSG: true
  51. ClearChat: true
  52. #=======================#
  53. # Join Items (Max 5) #
  54. #=======================#
  55. #---- Item 1 ----#
  56. Item1: true
  57. Slot1: 0
  58. Name1: &6Server Selector
  59. ID1: compass
  60. CMD1: /menu
  61. #---- Item 2 ----#
  62. Item2: true
  63. Slot2: 1
  64. Name2: &6Shop
  65. ID2: book
  66. CMD2: /shop
  67. #---- Item 3 ----#
  68. Item3: true
  69. Slot3: 7
  70. Name3: &6Test Item
  71. ID3: bone
  72. CMD3: /say Hello World!
  73. #---- Item 4 ----#
  74. Item4: true
  75. Slot4: 8
  76. Name4: &aTeleport Lobby
  77. ID4: diamond axe
  78. CMD4: /lobby
  79. # ---- Item 5 ----#
  80. Item5: false
  81. Slot5: 0
  82. Name5: &aVipLobby
  83. ID5: diamond
  84. CMD5: /lobbyvip
  85. #-----------------#
  86.  
  87. # ------------------------- #
  88.  
  89. # Codification Zone #
  90. # Commands // Events #
  91.  
  92. # ------------------------- #
  93. on join:
  94. clear player's inventory
  95. if {@Item1} is true:
  96. set slot {@Slot1} of player's inventory to {@ID1} named "{@Name1}"
  97. if {@Item2} is true:
  98. set slot {@Slot2} of player's inventory to {@ID2} named "{@Name2}"
  99. if {@Item3} is true:
  100. set slot {@Slot3} of player's inventory to {@ID3} named "{@Name3}"
  101. if {@Item4} is true:
  102. set slot {@Slot4} of player's inventory to {@ID4} named "{@Name4}"
  103. if {@Item5} is true:
  104. set slot {@Slot5} of player's inventory to {@ID5} named "{@Name5}"
  105.  
  106. on rightclick with {@ID1}:
  107. if name of tool is "{@Name1}":
  108. make player execute command "{@CMD1}"
  109.  
  110. on rightclick with {@ID2}:
  111. if name of tool is "{@Name2}":
  112. make player execute command "{@CMD2}"
  113.  
  114. on rightclick with {@ID3}:
  115. if name of tool is "{@Name3}":
  116. make player execute command "{@CMD3}"
  117.  
  118. on rightclick with {@ID4}:
  119. if name of tool is "{@Name4}":
  120. make player execute command "{@CMD4}"
  121.  
  122. on rightclick with {@ID5}:
  123. if name of tool is "{@Name5}":
  124. make player execute command "{@CMD5}"
  125.  
  126. on join:
  127. if {@ClearChat} is true:
  128. loop 32 times:
  129. send ""
  130.  
  131. on join:
  132. if {@JoinMSG} is true:
  133. send "{@Spacer}"
  134. send "{@Line1}"
  135. send "{@Line2}"
  136. send "{@Line3}"
  137. send "{@Line4}"
  138. send "{@Line5}"
  139. send "{@Spacer}"
  140. command /lobbysystem:
  141. aliases: /ls
  142. permission: lobby.admin
  143. trigger:
  144. send ""
  145. send " &a&lLobby&3&lSystem"
  146. send ""
  147. send "&f&lCommands"
  148. send "&e/lobby [<player>]"
  149. send "&e/lobbyv [<player>]"
  150. send "&e/setlobby"
  151. send "&e/setlobbyvip"
  152. send ""
  153.  
  154. command /setlobby:
  155. trigger:
  156. if player has the permission "lobby.admin":
  157. set {server.lobby} to location of player
  158. send "{@Prefix} {@Set}"
  159.  
  160. command /lobby [<player>]:
  161. trigger:
  162. if arg 1 is a player:
  163. player has permission "lobby.admin"
  164. teleport arg-1 to {server.lobby}
  165. send "{@Prefix} {@Teleported}" to player
  166. send player title "{@Lobby_Title}" with subtitle "{@Lobby_Subtitle}" for 2 seconds
  167. send "{@Prefix} {@Teleport}" to arg 1
  168. if arg 1 is not set:
  169. send player title "{@Lobby_Title}" with subtitle "{@Lobby_Subtitle}" for 2 seconds
  170. teleport player to {server.lobby}
  171. send "{@Prefix} {@Teleport}" to player
  172.  
  173. command /setlobbyvip:
  174. trigger:
  175. if player has the permission "lobby.admin":
  176. set {server.lobbyvip} to location of player
  177. send "{@Prefix} {@SetVip}"
  178.  
  179. command /lobbyvip [<player>]:
  180. aliases: /lobbyv
  181. trigger:
  182. if arg 1 is a player:
  183. player has permission "lobby.admin"
  184. teleport arg-1 to {server.lobbyvip}
  185. send "{@Prefix} {@Teleported}" to player
  186. send player title "{@Lobby_Title}" with subtitle "{@Lobby_Subtitle}" for 2 seconds
  187. send "{@Prefix} {@TeleportVip}" to arg 1
  188. if arg 1 is not set:
  189. teleport player to {server.lobbyvip}
  190. send player title "{@Lobby_Title}" with subtitle "{@Lobby_Subtitle}" for 2 seconds
  191. send "{@Prefix} {@TeleportVip}" to player
  192.  
  193. on join:
  194. if player has the permission "lobby.vip":
  195. if {@Lobby_Vip} is true:
  196. teleport player to {server.lobbyvip}
  197. set join message to "{@Join_Vip}"
  198. else:
  199. teleport player to {server.lobby}
  200. set join message to "{@Join}"
  201.  
  202. on join:
  203. {@Tiles} is true
  204. send player title "{@Title}" with subtitle "{@Subtitle}" for 2 seconds
  205.  
  206. on join:
  207. {@ActionBar} is true
  208. set action bar of player to "{@Bar}"
  209.  
  210. on quit:
  211. if player has the permission "lobby.vip":
  212. teleport player to {server.lobbyvip}
  213. set quit message to "{@Leave_Vip}"
  214. else:
  215. teleport player to {server.lobby}
  216. set quit message to "{@Leave}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement