SCAutoBroadcaster is a
BungeeCord plugin that displays random messages from the configuration to the certain servers or server groups after specified intervals.
Features: • Configurable message prefix
•
3 broadcast modes: - global broadcast to all Bungee servers - message broadcast to certain servers by server names - message broadcast to server groups using regex "!" • Color codes support
• Separate intervals for messages
• Fast configuration reload via command
• [v 1.1.0+]Clickable URLs • [v 1.1.0+]Customizable URL hover text • [v 1.2.0+]Multi-line support. New line character: %n% - not actual since v 1.5.0 • [v 1.3.0+]Servers blacklist, ability to choice order of dispatching messages •
[v 1.4.0+] Message processing system, message headers and footers, hex colors support (only with MINI_MESSAGE processing type) •
[v 1.5.0+]Delivery optimization system to avoid sending messages to target server at the same time
There are two ways to process the messages.
1)
DEFAULT - this is default formatting system like Bukkit. You can use these codes:
2)
MINI_MESSAGE - modern formatting system. Using kyori's minimessage library. It supports hex colors, custom hovering and click events, keybind and much more! See Wiki here:
https://docs.adventure.kyori.net/minimessage
Commands and Permissions: /scab reload - reload configuration (Permission: scab.admin)
Code (Text):
#######################################################
### Welcome to SCAutoBroadcaster configuration file ###
#######################################################
## Servers section description: ##
## @ You can use variable "global" to broadcast ##
## messages to all servers of your network. ##
## EXAMPLE: ##
## servers: ##
## - global ##
## @ You can also use server names like Hub1, BW-10 ##
## etc to broadcast message only to separate servers.##
## EXAMPLE: ##
## servers: ##
## - Hub1 ##
## - BW-18 ##
## @ SCAutoBroadcaster supports regex "!". ##
## It means that you can broadcast messages only ##
## to all servers that name contains regex words. ##
## EXAMPLE: ##
## servers: ##
## - bw! ##
## - hub! ##
#######################################################
configVersion: 2 # DON'T TOUCH!
defaultProcessor: DEFAULT # DEFAULT or MINI_MESSAGE https://docs.adventure.kyori.net/minimessage
settings:
messagePrefix: "[&eSCBroadcaster&f]&r " # Prefix of your message
messageHeader: "" # Leave blank to disable
messageFooter: "" # Leave blank to disable
clickableUrls: true
clickableUrlHover: "&aClick to visit!"
broadcast:
'1':
interval: 10 # Broadcast interval in seconds
randomMessages: true # if true messages dispatching randomly, if false in order
servers:
- global
messages:
- global1
- global2
'2':
interval: 15
randomMessages: true
servers:
- Hub
- Hub2
messages:
- hub1
'3':
interval: 20
randomMessages: false
servers:
- skywars!
- -skywars-lobby
messages:
- skywars1
'mini_message_example':
interval: 15
randomMessages: true
servers:
- global
messages:
- minimessage
messages:
'global1':
processor: DEFAULT
content:
- '&6Welcome to my server! &aWe''re using SCAutoBroadcaster'
'global2':
content:
- '&aHey! This is a global message!'
- '&fAnother line'
'hub1':
content:
- '&3This message will be broadcasted only on Hub and Hub2 servers'
'skywars1':
content:
- '&3This message will be broadcasted only on all skywars servers exempt skywars-lobby'
'minimessage':
processor: MINI_MESSAGE
content:
- '<yellow>This is a <italic>MiniMessage</italic> test'
Installation: - Download SCAutoBroadcaster.jar and place to your BungeeCord plugins folder
- Restart your BungeeCord server
- Configure plugin as you like in config.yml
- Type /scab reload to apply changes or restart proxy again
This is my first plugin on spigotmc platform. I hope you enjoy it