At first, i've created this plugin for more emancipation than /alert
. Indeed, with command /announce
you're able to send an announcement to all players on all of your bungee servers. Then, i've improved my plugin and now you can send a title or action or warn message. You can also create scheduled message to repeat every X seconds.
Finally, you can specify on which server a message will be displayed. Moreover, you can create announcements which will be displayed only for players who have a specific permission (you may need BungeePEXBridge).
You can also add your name in the config and specify that when you join a server it will be displayed a big title with written "Administrator (your name) joined !".
Setup
To setup the plugin, that's as usual:
- Download the plugin.
- Drop it into your bungee/proxy's plugins folder.
- Restart your proxy server with
end
command. - Edit the configuration file to suit your needs and reload the plugin with
/ba:reload
. - Then, Have Fun !
Configuration
Have a look at this amazing web page that I've developed to help you to configure Bungee Announce: https://royalphax.github.io/BungeeAnnounce/config-tool/
Commands
<> = required | () = permission
/announce <announcement>
(bungeecord.command.announce) ➽ Send an announcement on all servers./colorcode
➽ Display the color codes help./bwarn <message>
(bungeecord.command.warn) ➽ Send a warn message on all servers./sendsubtitle <fadeIn> <stay> <fadeOut> <message>
(bungeecord.command.sendsubtitle) ➽ Send a subtitle to all players./sendtitle <fadeIn> <stay> <fadeOut> <message>
(bungeecord.command.sendtitle) ➽ Send a title to all players./sendaction <message>
(bungeecord.command.sendaction) ➽ Send a message in action bar to all players./msg <player> <message>
➽ Talk with players through servers. (You are able to change this command to /bmsg or whatever you want in config file. You can also put several commands by separating them with,
)/reply <message>
➽ Reply to the last player you talked with./ba:reload
(bungeecord.command.reload) ➽ Reload the plugin's configuration./forcebroadcast
(bungeecord.command.forcebroadcast) ➽ Force a scheduled announcement to be broadcasted.
Note: Permissions have to be assigned to your group in the bungeecord configuration file.
Developers / API
Hi developer! You're able to use my plugin to send announcement as in the following example:
AnnouncementManager.sendToServer([...])
AnnouncementManager.sendToPlayer([...])
Just add my plugin to the librairies of your project and use the class AnnouncementManager
located in fr.royalpha.bungeeannounce.manager.AnnouncementManager
.
To learn more about sendToServer
& sendToPlayer
methods, click on them to access the javadocs.