Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # # # # # # # # # # # # # # # # #
- # ----------------------------- #
- # Config: #
- # ----------------------------- #
- # # # # # # # # # # # # # # # # #
- options:
- Prefix: &4[&cCustom Broadcast&4] # Set the prefix of message !
- PrefixBasicBroadcast: &8&l[&c&lServerAnnounce&8&l]&r&l # Set the prefix of basic broadcast !
- ColorBasicBroadcast: &f # Set the color of basic broadcast !
- 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 !
- ColorPlayerBroadcast: &f # Set the color of player broadcast !
- PrefixConsoleBroadcast: &8&l[&9&lConsole&8&l]&r&l # Set the color of console broadcast !
- ColorConsoleBroadcast: &f # Set the color of console broadcast !
- ErrorPermission: &cYou don't have the permission ! # Set the message when a player tries to use a command without having the permission!
- ErrorMissingArgument: &cError an argument is missing ! # Set the message when a player tries to use a command without argument!
- Reload: &aThe config was reloaded !
- # # # # # # # # # # # # # # # # # # # # #
- # ------------------------------------- #
- # CODE DON'T TOUCH ! #
- # ------------------------------------- #
- # # # # # # # # # # # # # # # # # # # # #
- command /bc [<text>]:
- executable by: players and console
- aliases: /broadcast , /b
- trigger:
- if player has permission "bc.Server":
- if arg 1 is set:
- broadcast "{@PrefixBasicBroadcast} {@ColorBasicBroadcast}%arg 1%"
- stop
- else:
- message "{@Prefix} {@ErrorMissingArgument}" to player
- else:
- message "{@Prefix} {@ErrorPermission}" to player
- stop
- command /bcp [<text>]:
- executable by: players
- aliases: /broadcastp , /bp
- trigger:
- if player has permission "bc.player":
- if arg 1 is set:
- broadcast "{@PrefixPlayerBroadcast} {@ColorPlayerBroadcast}%arg 1%"
- stop
- else:
- message "{@Prefix} {@ErrorMissingArgument}" to player
- else:
- message "{@Prefix} {@ErrorPermission}" to player
- stop
- command /bcc [<text>]:
- executable by: console
- aliases: /broadcastc
- trigger:
- if arg 1 is set:
- broadcast "{@PrefixConsoleBroadcast} {@ColorConsoleBroadcast}%arg 1%"
- stop
- else:
- message "{@Prefix} {@ErrorMissingArgument}" to console
- command /cb [<text=help>]:
- aliases: /custombc , /custombroadcast , /brh
- trigger:
- if arg 1 is "help":
- message "&4&m-----[&9&l CUSTOM BROADCAST &4&m]-----" to player
- message " " to player
- message " &4* &c/bc <text> &4: &cサーバーアナウンスを飛ばします " to player
- message " " to player
- message " &4* &c/bcp <text> &4: &cプレイヤーアナウンスを飛ばします " to player
- message " " to player
- message " &4* &c/bcc <text> &4: &cコマンドブロックでのみ有効のアナウンスです " to player
- message " " to player
- message " &4* &c/cb help &4: &cCustom BroadcastのHelpを見ます " to player
- message " " to player
- message "&4&m-----[&9&l CUSTOM BROADCAST &4&m]-----" to player
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement