Advertisement
Guest User

Untitled

a guest
Jan 19th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # # # # # # # # # # # # # # # # #
  2. # ----------------------------- #
  3. # Config: #
  4. # ----------------------------- #
  5. # # # # # # # # # # # # # # # # #
  6.  
  7. options:
  8.  
  9. Prefix: &4[&cCustom Broadcast&4] # Set the prefix of message !
  10.  
  11. PrefixBasicBroadcast: &8&l[&c&lServerAnnounce&8&l]&r&l # Set the prefix of basic broadcast !
  12. ColorBasicBroadcast: &f # Set the color of basic broadcast !
  13.  
  14. PrefixPlayerBroadcast: &8&l[&e&l%player%&8&l]&r&l # Set the prefix of player broadcast ! %player% will be replaced by the name of the player !
  15. ColorPlayerBroadcast: &f # Set the color of player broadcast !
  16.  
  17. PrefixConsoleBroadcast: &8&l[&9&lConsole&8&l]&r&l # Set the color of console broadcast !
  18. ColorConsoleBroadcast: &f # Set the color of console broadcast !
  19.  
  20. ErrorPermission: &cYou don't have the permission ! # Set the message when a player tries to use a command without having the permission!
  21. ErrorMissingArgument: &cError an argument is missing ! # Set the message when a player tries to use a command without argument!
  22.  
  23. Reload: &aThe config was reloaded !
  24.  
  25.  
  26. # # # # # # # # # # # # # # # # # # # # #
  27. # ------------------------------------- #
  28. # CODE DON'T TOUCH ! #
  29. # ------------------------------------- #
  30. # # # # # # # # # # # # # # # # # # # # #
  31.  
  32.  
  33. command /bc [<text>]:
  34.  
  35. executable by: players and console
  36.  
  37. aliases: /broadcast , /b
  38.  
  39. trigger:
  40.  
  41. if player has permission "bc.Server":
  42.  
  43. if arg 1 is set:
  44.  
  45. broadcast "{@PrefixBasicBroadcast} {@ColorBasicBroadcast}%arg 1%"
  46. stop
  47.  
  48. else:
  49.  
  50. message "{@Prefix} {@ErrorMissingArgument}" to player
  51.  
  52. else:
  53.  
  54. message "{@Prefix} {@ErrorPermission}" to player
  55. stop
  56.  
  57. command /bcp [<text>]:
  58.  
  59. executable by: players
  60.  
  61. aliases: /broadcastp , /bp
  62.  
  63. trigger:
  64.  
  65. if player has permission "bc.player":
  66.  
  67. if arg 1 is set:
  68.  
  69. broadcast "{@PrefixPlayerBroadcast} {@ColorPlayerBroadcast}%arg 1%"
  70. stop
  71.  
  72. else:
  73.  
  74. message "{@Prefix} {@ErrorMissingArgument}" to player
  75.  
  76. else:
  77.  
  78. message "{@Prefix} {@ErrorPermission}" to player
  79. stop
  80.  
  81. command /bcc [<text>]:
  82.  
  83. executable by: console
  84.  
  85. aliases: /broadcastc
  86.  
  87. trigger:
  88.  
  89. if arg 1 is set:
  90.  
  91. broadcast "{@PrefixConsoleBroadcast} {@ColorConsoleBroadcast}%arg 1%"
  92. stop
  93.  
  94. else:
  95.  
  96. message "{@Prefix} {@ErrorMissingArgument}" to console
  97.  
  98. command /cb [<text=help>]:
  99.  
  100. aliases: /custombc , /custombroadcast , /brh
  101.  
  102. trigger:
  103.  
  104. if arg 1 is "help":
  105.  
  106. message "&4&m-----[&9&l CUSTOM BROADCAST &4&m]-----" to player
  107. message " " to player
  108. message " &4* &c/bc <text> &4: &cサーバーアナウンスを飛ばします " to player
  109. message " " to player
  110. message " &4* &c/bcp <text> &4: &cプレイヤーアナウンスを飛ばします " to player
  111. message " " to player
  112. message " &4* &c/bcc <text> &4: &cコマンドブロックでのみ有効のアナウンスです " to player
  113. message " " to player
  114. message " &4* &c/cb help &4: &cCustom BroadcastのHelpを見ます " to player
  115. message " " to player
  116. message "&4&m-----[&9&l CUSTOM BROADCAST &4&m]-----" to player
  117. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement