Advertisement
moeycvbn12

Untitled

Dec 16th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.46 KB | None | 0 0
  1. # CUSTOM BROADCAST
  2.  
  3. # V.0.1
  4.  
  5. # BY SKGEEK ALIAS SKYZIK
  6.  
  7. # SUBSCRIBE : https://www.youtube.com/user/SkyZik1
  8.  
  9. # SORRY FOR MY BAD ENGLISH
  10.  
  11. # I'M FRENCH !
  12.  
  13.  
  14. # # # # # # # # # # # # # # # # #
  15. # ----------------------------- #
  16. # Config: #
  17. # ----------------------------- #
  18. # # # # # # # # # # # # # # # # #
  19.  
  20. options:
  21.  
  22. Prefix: &cSkyNation &4BC: # Set the prefix of message !
  23.  
  24. PrefixBasicBroadcast: &cSkyNation &4BC: # Set the prefix of basic broadcast !
  25. ColorBasicBroadcast: &b # Set the color of basic broadcast !
  26.  
  27. PrefixPlayerBroadcast: &4[&c%player%&4] # Set the prefix of player broadcast ! %player% will be replaced by the name of the player !
  28. ColorPlayerBroadcast: &f # Set the color of player broadcast !
  29.  
  30. PrefixConsoleBroadcast: &4[&cServer&4] # Set the color of console broadcast !
  31. ColorConsoleBroadcast: &f # Set the color of console broadcast !
  32.  
  33. ErrorPermission: &cYou don't have the permission ! # Set the message when a player tries to use a command without having the permission!
  34. ErrorMissingArgument: &cError an argument is missing ! # Set the message when a player tries to use a command without argument!
  35.  
  36. Reload: &aThe config was reloaded !
  37.  
  38.  
  39. # # # # # # # # # # # # # # # # # # # # #
  40. # ------------------------------------- #
  41. # CODE DON'T TOUCH ! #
  42. # ------------------------------------- #
  43. # # # # # # # # # # # # # # # # # # # # #
  44.  
  45.  
  46. command /bc [<text>]:
  47.  
  48. executable by: players and console
  49.  
  50. aliases: /broadcast , /b
  51.  
  52. trigger:
  53.  
  54. if player has permission "bc.basic":
  55.  
  56. if arg 1 is set:
  57.  
  58. broadcast "{@PrefixBasicBroadcast} {@ColorBasicBroadcast}%arg 1%"
  59. stop
  60.  
  61. else:
  62.  
  63. message "{@Prefix} {@ErrorMissingArgument}" to player
  64.  
  65. else:
  66.  
  67. message "{@Prefix} {@ErrorPermission}" to player
  68. stop
  69.  
  70. command /bcp [<text>]:
  71.  
  72. executable by: players
  73.  
  74. aliases: /broadcastp , /bp
  75.  
  76. trigger:
  77.  
  78. if player has permission "bc.player":
  79.  
  80. if arg 1 is set:
  81.  
  82. broadcast "{@PrefixPlayerBroadcast} {@ColorPlayerBroadcast}%arg 1%"
  83. stop
  84.  
  85. else:
  86.  
  87. message "{@Prefix} {@ErrorMissingArgument}" to player
  88.  
  89. else:
  90.  
  91. message "{@Prefix} {@ErrorPermission}" to player
  92. stop
  93.  
  94. command /bcc [<text>]:
  95.  
  96. executable by: console
  97.  
  98. aliases: /broadcastc
  99.  
  100. trigger:
  101.  
  102. if arg 1 is set:
  103.  
  104. broadcast "{@PrefixConsoleBroadcast} {@ColorConsoleBroadcast}%arg 1%"
  105. stop
  106.  
  107. else:
  108.  
  109. message "{@Prefix} {@ErrorMissingArgument}" to console
  110.  
  111. command /cb [<text=help>]:
  112.  
  113. aliases: /custombc , /custombroadcast
  114.  
  115. trigger:
  116.  
  117. if arg 1 is "help":
  118.  
  119. message "&4&m-----[&c CUSTOM BROADCAST &4&m]-----" to player
  120. message " " to player
  121. message " &4* &c/bc <text> &4: &cBasic Broadcast " to player
  122. message " " to player
  123. message " &4* &c/bcp <text> &4: &cPlayer Broadcast " to player
  124. message " " to player
  125. message " &4* &c/bcc <text> &4: &cConsole Broadcast " to player
  126. message " " to player
  127. message " &4* &c/cb help &4: &cCustom Broadcast Help " to player
  128. message " " to player
  129. message " &4* &c/cb reload &4: &cReload The Config " to player
  130. message " " to player
  131. message "&4&m-----[&c CUSTOM BROADCAST &4&m]-----" to player
  132. stop
  133.  
  134. if arg 1 is "reload":
  135.  
  136. make player execute "/skript reload Custom Broadcast"
  137. wait 1 seconds
  138. message "{@Prefix} {@Reload}" to player
  139. stop
  140.  
  141.  
  142.  
  143.  
  144. # BY SKGEEK ALIAS SKYZIK !
  145.  
  146. # V.0.1
  147.  
  148. # 04.21.2015
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement