minmin0917

AGENT - Server Management System (Ver . 1.0)

Jul 21st, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.73 KB | None | 0 0
  1. # Agent - Server Management System (Ver . 1.0)
  2. # Create : Xx_Clasher_xX
  3. # Support : rikuriku4
  4.  
  5. #ALL SUPPORT : Server Stop / Announce / Change Fly Mode / First Join Message / Join Message / Quit Message / Mute / UnMute /
  6. # Rank / Chat / Vanish / Agent Infomation
  7.  
  8. #(1) Server Stop
  9.  
  10. command /ServerStop:
  11. aliases: /SS
  12. permission: Agent.ServerStop
  13. permission: &8[&5AGENT&8] &cYou do not have permission to use this command!
  14. trigger:
  15. send "&8[&5AGENT&8] &fPreparing for a stop..."
  16. wait 10 seconds
  17. broadcast "&8[&5AGENT&8] &cThe server will stop soon! Stop until &660 &cSeconds"
  18. wait 50 seconds
  19. broadcast "&8[&5AGENT&8] &cThe server will stop soon! Stop until &610 &cSeconds"
  20. wait 5 seconds
  21. broadcast "&8[&5AGENT&8] &cThe server will stop soon! Stop until &65 &cSeconds"
  22. wait 1 seconds
  23. broadcast "&8[&5AGENT&8] &cThe server will stop soon! Stop until &64 &cSeconds"
  24. wait 1 seconds
  25. broadcast "&8[&5AGENT&8] &cThe server will stop soon! Stop until &63 &cSeconds"
  26. wait 1 seconds
  27. broadcast "&8[&5AGENT&8] &cThe server will stop soon! Stop until &62 &cSeconds"
  28. wait 1 seconds
  29. broadcast "&8[&5AGENT&8] &cThe server will stop soon! Stop until &61 &cSeconds"
  30. wait 1 seconds
  31. broadcast "[&5AGENT&8] &cServer stopped!"
  32. command "/stop"
  33.  
  34. #(2) Announce
  35.  
  36. command /Announce [<text>]:
  37. aliases: /AN
  38. permission: Agent.Announce
  39. permission: &8[&5AGENT&8] &cYou do not have permission to use this command!
  40. trigger:
  41. wait 1 ticks
  42. broadcast "&8[&5AGENT&8] &f%arg 1%"
  43.  
  44. #(3) Change Fly Mode
  45.  
  46. command /FlyMode [<text>]:
  47. aliases: /FM
  48. permission: Agent.Fly
  49. permission: &8[&5AGENT&8] &cYou do not have permission to use this command!
  50. trigger:
  51. if arg 1 is "on":
  52. set player's flight mode to true
  53. set {Agent.FlyMode.%player%} to true
  54. send "&8[&5AGENT&8] &7Fly : &aON"
  55. if arg 1 is "off":
  56. set player's flight mode to false
  57. set {Agent.FlyMode.%player%} to false
  58. send "&8[&5AGENT&8] &7Fly : &cOFF"
  59.  
  60. command /ToggleFly:
  61. aliases: /TF
  62. permission: Agent.Fly
  63. permission: &8[&5AGENT&8] &cYou do not have permission to use this command!
  64. trigger:
  65. if {Agent.FlyMode.%player%} is true:
  66. set player's flight mode to false
  67. set {Agent.FlyMode.%player%} to false
  68. send "&8[&5AGENT&8] &7Fly : &cOFF"
  69. stop
  70. if {Agent.FlyMode.%player%} is false:
  71. set player's flight mode to true
  72. set {Agent.FlyMode.%player%} to true
  73. send "&8[&5AGENT&8] &7Fly : &aON"
  74. stop
  75.  
  76. #(4) First Join Message / Join Message
  77.  
  78. on first join:
  79. broadcast "&8[&5AGENT&8] &6%player% has Joined the Server for First time!"
  80.  
  81. on join:
  82. broadcast "&8[&5AGENT&8] &6%player% has Joined the Server!"
  83.  
  84. #(5) Quit Message
  85.  
  86. on quit:
  87. broadcast "&8[&5AGENT&8] &7%player% has Left the Server"
  88.  
  89. #(6) Mute
  90.  
  91. command /Mute [<player>] [<text>]:
  92. permission: Agent.Mute
  93. permission: &8[&5AGENT&8] &cYou do not have permission to use this command!
  94. trigger:
  95. if arg 1 is not set:
  96. send "&8[&5AGENT&8] &cPlease Specify a Player!"
  97. else:
  98. if arg 2 is not set:
  99. set {Agent.Muted.%arg 1%} to true
  100. send "&8[&5AGENT&8] &cYou Muted %arg 1%!"
  101. wait 1 seconds
  102. broadcast "&8[&5AGENT&8] &c%player% has been Muted!"
  103. else:
  104. set {Agent.Muted.%arg 1%} to true
  105. send "&8[&5AGENT&8] &cYou Muted %arg 1%!"
  106. wait 1 seconds
  107. broadcast "&8[&5AGENT&8] &c%player% was Muted for %arg 2% Reasons!"
  108.  
  109. #(7) UnMute
  110.  
  111. command /UnMute [<player>]:
  112. permission: Agent.UnMute
  113. permission: &8[&5AGENT&8] &cYou do not have permission to use this command!
  114. trigger:
  115. if arg 1 is not set:
  116. send "&8[&5AGENT&8] &cPlease Specify a Player!"
  117. else:
  118. set {Agent.Muted.%arg 1%} to false
  119. send "&8[&5AGENT&8] &cYou UnMuted %arg 1%!"
  120. wait 1 seconds
  121. broadcast "&8[&5AGENT&8] &c%player% has been UnMuted!"
  122.  
  123. #(8) Rank
  124.  
  125. on first join:
  126. set {Agent.Rank.%player%} to "&7"
  127.  
  128. command /RankSet [<offline player>] [<text>]:
  129. permission: Agent.Rank
  130. permission: &8[&5AGENT&8] &cYou do not have permission to use this command!
  131. trigger:
  132. if arg 1 is not set:
  133. send "&8[&5AGENT&8] &cPlease Specify a Player!"
  134. else:
  135. if arg 2 is not set:
  136. send "&8[&5AGENT&8] &cPlease Specify a Ranks!"
  137. if arg 2 is "Default":
  138. set {Agent.Rank.%player%} to "&7[Default]"
  139. if arg 2 is "Vip":
  140. set {Agent.Rank.%player%} to "&2[Vip]"
  141. if arg 2 is "Vip+":
  142. set {Agent.Rank.%player%} to "&2[VIP+]"
  143. if arg 2 is "Mvp":
  144. set {Agent.Rank.%player%} to "&3[Mvp]"
  145. if arg 2 is "Mvp+":
  146. set {Agent.Rank.%player%} to "&3[Mvp+]"
  147. if arg 2 is "Legend":
  148. set {Agent.Rank.%player%} to "&6[Legend]"
  149. if arg 2 is "Legend+":
  150. set {Agent.Rank.%player%} to "&6[Legend+]"
  151. if arg 2 is "Pro":
  152. set {Agent.Rank.%player%} to "&5[Pro]"
  153. if arg 2 is "Pro+":
  154. set {Agent.Rank.%player%} to "&5[Pro+]"
  155. if arg 2 is "Herobrine":
  156. set {Agent.Rank.%player%} to "&c[Herobrine]"
  157. if arg 2 is "Herobrine+":
  158. set {Agent.Rank.%player%} to "&c[Herobrine+]"
  159. if arg 2 is "Helper":
  160. set {Agent.Rank.%player%} to "&9[Helper]"
  161. if arg 2 is "Helper+":
  162. set {Agent.Rank.%player%} to "&9[Helper+]"
  163. if arg 2 is "Mod":
  164. set {Agent.Rank.%player%} to "&e[Mod]"
  165. if arg 2 is "Mod+":
  166. set {Agent.Rank.%player%} to "&e[Mod+]"
  167. if arg 2 is "Admin":
  168. set {Agent.Rank.%player%} to "&4[Admin]"
  169. if arg 2 is "SubOwner":
  170. set {Agent.Rank.%player%} to "&4[SubOwner]"
  171. if arg 2 is "Owner":
  172. set {Agent.Rank.%player%} to "&4[Owner]"
  173.  
  174. #(9) Chat
  175.  
  176. on chat:
  177. cancel event
  178. wait 1 ticks
  179. if {Agent.Muted.%player%} is true:
  180. stop
  181. else:
  182. broadcast "%{Agent.Rank.%player%}% %{Agent.Name.%player%}% &f: %message%"
  183.  
  184. #(10) Agent System Reboot
  185.  
  186. command /AgentSystemReboot:
  187. aliases: /ASR
  188. permission: Agent.Reboot
  189. permission: &8[&5AGENT&8] &cYou do not have permission to use this command!
  190. trigger:
  191. send "&8[&5AGENT&8] ReBoot Agent System..."
  192. wait 5 seconds
  193. broadcast "&8[&5AGENT&8] &4Agent System Reboot!! The server will stop along with it! &7&l60 &cSeconds!"
  194. wait 50 seconds
  195. broadcast "&8[&5AGENT&8] &4Agent System Reboot!! The server will stop along with it! &7&l10 &cSeconds!"
  196. wait 5 seconds
  197. broadcast "&8[&5AGENT&8] &4Agent System Reboot!! The server will stop along with it! &7&l5 &cSeconds!"
  198. wait 1 seconds
  199. broadcast "&8[&5AGENT&8] &4Agent System Reboot!! The server will stop along with it! &7&l4 &cSeconds!"
  200. wait 1 seconds
  201. broadcast "&8[&5AGENT&8] &4Agent System Reboot!! The server will stop along with it! &7&l3 &cSeconds!"
  202. wait 1 seconds
  203. broadcast "&8[&5AGENT&8] &4Agent System Reboot!! The server will stop along with it! &7&l2 &cSeconds!"
  204. wait 1 seconds
  205. broadcast "&8[&5AGENT&8] &4Agent System Reboot!! The server will stop along with it! &7&l1 &cSeconds!"
  206. wait 1 seconds
  207. broadcast "&8[&5AGENT&8] &4AGENT SYSTEM REBOOT! SERVER STOP!"
  208. wait 1 ticks
  209. command "/stop"
  210.  
  211. #(11) Vanish
  212.  
  213. command /VanishMode [<text>]:
  214. aliases: /VM
  215. permission: Agent.Vanish
  216. permission: &8[&5AGENT&8] &cYou do not have permission to use this command!
  217. trigger:
  218. if arg 1 is "on":
  219. hide player from all players
  220. set {Agent.VanishMode.%player%} to true
  221. send "&8[&5AGENT&8] &7Vanish : &aON"
  222. if arg 1 is "off":
  223. reveal player from all players
  224. set {Agent.VanishMode.%player%} to false
  225. send "&8[&5AGENT&8] &7Vanish : &cOFF"
  226.  
  227. command /ToggleVanish:
  228. aliases: /TV
  229. permission: Agent.Vanish
  230. permission: &8[&5AGENT&8] &cYou do not have permission to use this command!
  231. trigger:
  232. if {Agent.VanishMode.%player%} is true:
  233. reveal player from all players
  234. set {Agent.VanishMode.%player%} to false
  235. send "&8[&5AGENT&8] &7Vanish : &cOFF"
  236. stop
  237. if {Agent.VanishMode.%player%} is false:
  238. hide player from all players
  239. set {Agent.VanishMode.%player%} to true
  240. send "&8[&5AGENT&8] &7Vanish : &aON"
  241. stop
  242.  
  243. #(12) Nick
  244.  
  245. on join:
  246. set {Agent.Name.%player%} to "%player%"
  247.  
  248. command /Nick [<text>]:
  249. permission: Agent.Nick
  250. permission: &8[&5AGENT&8] &cYou do not have permission to use this command!
  251. trigger:
  252. if arg 1 is not set:
  253. send "&8[&5AGENT&8] &cPlease Specify a Nick Name! Nick Restet : /nick reset"
  254. if arg 1 is "reset":
  255. set {Agent.Name.%player%} to "%player%"
  256. else:
  257. set {Agent.Name.%player%} to "%arg 1%"
  258.  
  259. #(13) Agent Infomation
  260.  
  261. command /Agent [<text>]:
  262. trigger:
  263. if arg 1 is not set:
  264. send "&5Agent - Server Management System"
  265. send "&a(Ver . &c1.0&a)"
  266. send " "
  267. send "&6Create : Xx_Clasher_xX"
  268. send "&9Support : rikuriku4"
  269. if arg 1 is "info":
  270. send "&5Agent - Server Management System"
  271. send "&a(Ver . &c1.0&a)"
  272. send " "
  273. send "&6Create : Xx_Clasher_xX"
  274. send "&9Support : rikuriku4"
  275. if arg 1 is "help":
  276. send "&5Agent - Server Management System"
  277. send "&a(Ver . &c1.0&a)"
  278. send " "
  279. send "&6Create : Xx_Clasher_xX"
  280. send "&9Support : rikuriku4"
Add Comment
Please, Sign In to add comment