Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # CUSTOM BROADCAST
- # V.0.1
- # BY SKGEEK ALIAS SKYZIK
- # SUBSCRIBE : https://www.youtube.com/user/SkyZik1
- # SORRY FOR MY BAD ENGLISH
- # I'M FRENCH !
- # # # # # # # # # # # # # # # # #
- # ----------------------------- #
- # Config: #
- # ----------------------------- #
- # # # # # # # # # # # # # # # # #
- options:
- Prefix: &cSkyNation &4BC: # Set the prefix of message !
- PrefixBasicBroadcast: &cSkyNation &4BC: # Set the prefix of basic broadcast !
- ColorBasicBroadcast: &b # Set the color of basic broadcast !
- PrefixPlayerBroadcast: &4[&c%player%&4] # 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: &4[&cServer&4] # 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.basic":
- 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
- trigger:
- if arg 1 is "help":
- message "&4&m-----[&c CUSTOM BROADCAST &4&m]-----" to player
- message " " to player
- message " &4* &c/bc <text> &4: &cBasic Broadcast " to player
- message " " to player
- message " &4* &c/bcp <text> &4: &cPlayer Broadcast " to player
- message " " to player
- message " &4* &c/bcc <text> &4: &cConsole Broadcast " to player
- message " " to player
- message " &4* &c/cb help &4: &cCustom Broadcast Help " to player
- message " " to player
- message " &4* &c/cb reload &4: &cReload The Config " to player
- message " " to player
- message "&4&m-----[&c CUSTOM BROADCAST &4&m]-----" to player
- stop
- if arg 1 is "reload":
- make player execute "/skript reload Custom Broadcast"
- wait 1 seconds
- message "{@Prefix} {@Reload}" to player
- stop
- # BY SKGEEK ALIAS SKYZIK !
- # V.0.1
- # 04.21.2015
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement