Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.70 KB | None | 0 0
  1. variables:
  2.  
  3. {glow.mode.%player%} = "False"
  4.  
  5.  
  6.  
  7. command /glow:
  8.  
  9. aliases: gl
  10.  
  11. permission: glow.enable
  12.  
  13. trigger:
  14.  
  15. if player does not have permission "glow.enable":
  16.  
  17. message "&4&lGlow &8► &7You have no right to this command!"
  18.  
  19. stop
  20.  
  21. if {glow.mode.%player%} is "False":
  22.  
  23. message "&4&lGlow &8► &7Glowing now &2&lenabled!"
  24.  
  25. set {glow.mode.%player%} to "True"
  26.  
  27. apply glowing to the player for 100000 seconds
  28.  
  29. apply night vision to the player for 100000 seconds
  30.  
  31. apply absorption to the player for 100000 seconds
  32.  
  33. else:
  34.  
  35. if {glow.mode.%player%} is "True":
  36.  
  37. message "&4&lGlow &8► &7Glowing now &4&ldisabled!"
  38.  
  39. set {glow.mode.%player%} to "False"
  40.  
  41. remove glowing from the player
  42.  
  43. remove absorption from the player
  44.  
  45. remove night vision from the player
  46. # GIVE SYSTEM
  47.  
  48.  
  49.  
  50. command /restore <player> [<text>] [<text>]:
  51. permission: avaloncs.admin
  52. trigger:
  53. if arg 2 is "give":
  54. send "&4&lAdministrator &e%player% &7 has returned the item &c&o%arg 3%" to arg 1
  55. execute console command "give %arg 1% %arg 3%"
  56. stop
  57. command /ann <text>:
  58.  
  59. usage: &f/ann <msg>
  60.  
  61. permission: broadcast.use
  62.  
  63. aliases: bc
  64.  
  65. executable by: players and console
  66.  
  67. permission message: &4&lError &8► &7You dont have permission!.
  68.  
  69. trigger:
  70.  
  71. broadcast "&8+---------------------------+&r"
  72.  
  73. broadcast " &c&lANNOUNCER"
  74.  
  75. broadcast ""
  76.  
  77. broadcast " %colored arg-1%"
  78.  
  79. broadcast ""
  80.  
  81. broadcast "&8+---------------------------+&r"
  82.  
  83. stop
  84.  
  85.  
  86.  
  87. # AdminChat
  88.  
  89. options:
  90. #Permission
  91. permission: adminchat.chat
  92. #No permission message
  93. PermMsg: &4You do not have permission to use this command!
  94. #Admin chat prefix
  95. Prefix: &4&lAC &7► &8[%player's display name%&8]
  96.  
  97. command /adminchat [<text>]:
  98. permission: {@permission}
  99. permission message: {@PermMsg}
  100. executable by: players and console
  101. aliases: staffchat, sc, a
  102. trigger:
  103. if argument 1 is not set:
  104. if {adminchat::%player%} is not set:
  105. set {adminchat::%player%} to 1
  106. message "&4&lAdminChat &8► &2ON&8."
  107. if {adminchat::%player%} is 1:
  108. set {adminchat::%player%} to 0
  109. message "&4&lAdminChat &8► &4OFF&8."
  110. if argument 1 is set:
  111. if argument 1 is "on":
  112. set {adminchat::%player%} to 1
  113. message "&4&lAdminChat &8► &2ON&8."
  114. if argument 1 is "off":
  115. set {adminchat::%player%} to 0
  116. message "&4&lAdminChat &8► &4OFF&8."
  117. if argument 1 is not "on" or "off":
  118. loop all players:
  119. loop-player has the permission "{@permission}":
  120. message "{@Prefix} " to loop-player
  121.  
  122. on chat:
  123. if {adminchat::%player%} is 1:
  124. cancel event
  125. loop all players:
  126. loop-player has the permission "{@permission}":
  127. message "{@Prefix} %coloured message%" to loop-player
  128. else:
  129. stop
  130.  
  131. on quit:
  132. if {adminchat::%player%} is 1:
  133. delete {adminchat::%player%}
  134. if {adminchat::%player%} is 0:
  135. delete {adminchat::%player%}
  136.  
  137.  
  138.  
  139. command /afk:
  140. trigger:
  141. if {afk::%player%} is false:
  142. set {afk::%player%} to true
  143. broadcast "&4&lAFK &8-> &7Player &c&o%player% &7is in AFK mode"
  144. else:
  145. set {afk::%player%} to false
  146. broadcast "&4&lAFK &8-> &7The player &c&o%player% &7is again in play"
  147. on chat:
  148. if {afk::%player%} is true:
  149. cancel event
  150. message "&4&lERROR &8► &7You are AFK! use &c&o/afk"
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187. command /facebook [<text>]:
  188. trigger:
  189. if arg 1 is not set:
  190. send "&1&lFacebook &8► &7Try &c/facebook [message]"
  191. if arg 1 is set:
  192. broadcast "&1&lFacebook &8► &7%arg 1%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement