AutoBroadcaster+
Have you ever needed to auto broadcast messages to chat, and notice that the few plugins that actually are able to do this spam the chat with their name, not fully customizable, or no full color support? This plugin is for you then!
This plugin is very simple to use, simple drag and drop. This plugin will generate a folder in /plugins/ called AutoBroadcaster, containing a messages.txt and a config.yml. The messages.txt is a blank text file, where each line is a broadcasted message. This file is a Global message file, which simply means you will receive the messages no matter what world you are in. The config.yml is the main file, in it you can customize things like the announcer name, and the interval. It also has some more advanced settings, such as what to split the message file by (default is new line), the minimum number of players before the plugin broadcasts messages, and whether or not to print to console.
The config is customizable enough to do whatever you want. Even per-world messages, intervals, announcements, announcer names, everything right down to how the message file should be parsed.
This plugin also allows to use BukkitSettings plugin as an add-on! If you have it installed, players can choose to toggle out of receiving messages!
Announcements are toggleable on or off using BukkitSettings by Anxuiz from Project Ares / OverCast Network. In game, you will be able to do /settings to see a list of all settings. If you're using my plugin along with Anxuiz's plugin, then Announcements should pop up. Do /toggle Announcements or /toggle a to enable or disable it. To learn more about the announcement toggle, do /setting Announcements
Get BukkitSettings here: http://repo.oc.tc/content/repositories/public/me/anxuiz/bukkit-settings/
Example Files for v1.1.0 and above!:
Example global messages file (messages.txt):
This is a white broadcast, which will be the first one broadcasted! &4This broadcast is red, and <his is bold + red! These messages will be received to every player in any world!
To create messages only for players in a world called Test, simply create another file in /plugins/AutoBroadcasterPlus/ called messages-Test.txt. Messages in here will only be received by those in a world called Test!
Example config.yml
broadcaster: #Should the plugin debug? debugging: true global: #Who will be the announcer? Ex: [AutoBroadcaster]: Message announcerName: '[&4Global&f]: ' #Interval, in seconds interval: 15 #Should messages be sent to console as well? broadcast-to-console: true #Minimum number of players before any message is broadcasted (0 to broadcast even if no one is online) min-players: 1 #What the messages file should be split by (Don't modify this unless you know what you're doing!) delimeter: '\n' # To customize settings for a world, say a world named Test, you can simply create a new section. Any settings you don't # fill out are defaulted to the global settings. Example: Test: announcerName: '[&1Test&f]: ' ## If you wanted the rest to be like global, you could just delete them or leave them commented :) #interval: 60 #broadcast-to-console: false #min-players: 1 #delimeter: '\n'
Read the comments in the middle to see how to customize the settings for messages in a specific world.
Example Files for v1.0.0 and below!:
Example messages.txt:
This is a white broadcast, which will be the first one broadcasted! &4This broadcast is red, and <his is bold + red!
Example config.yml (The actual file has a list of all the color codes, and it has a direct link to the wiki on colors!):
#Who will be the announcer? Ex: [AutoBroadcaster]: Message announcerName: '[&4AutoBroadcaster&f]: ' #Interval, in seconds interval: 60
This plugin uses Metrics
Metrics can be disabled to stop sending info out, go to /plugins/metrics/ and click config. Turn opt-out to true. Please only do this if you're uncomfortable about data tracking, it helps me see how many people use it, what server software they use, and how many servers use it! Metrics also assists in developing the plugin by telling me info like what java and cb you guys use.
Open sourced https://github.com/skipperguy12/AutoBroadcasterPlus
This plugin is open sourced, please provide credit to me for any code you use. Support Me!
If you like my plugin and my work, you can donate. All donations are welcome, and will be used for developing purposes.
Whats the permission to /ab reload ???
Whats the permission to /ab reload ???
@sugar4sweet2014
Take a look in the config.yml file. Its in the plugins/AutoBroadcaster Folder you can change the messages in the messages.txt
@unknown1942
/n just tells the message to be on two separate lines, doing /r would try to tell the console to reply to the last message
It says CR after all my auto broadcasts... why?
@skipperguy12
Can you add compatibilitytytlilbility (I hate this word) with Papi? (PlacholderAPI)? Thank you!
I started to use the plugin but when i did my world eait didn't work
@scarabcoder
Thanks man. I might also try rewriting this whole thing in Kotlin for practice, and then just publish that. Either ways, I'm back and I'm going to try updating it as well. Make sure to tag me in your merge request! :)
I'm willing to update this with the source code, expect some merge requests soon. Also, thanks for putting this up on Github :)
Currently the plugin breaks worldguard. Anyway we could get an update?
http://pastebin.com/NbjrvTkK
How do you change the message/broadcast? Because all it's giving me is "/ab reload" and "/autobroadcaster reload" whenever I do /help autobroadcaster. And are we able to change the timing when it broadcast's a message too? Because 30 seconds (or more/less) seems a bit too close to when it first broadcasted a message.. Thanks!
How do i remove the "cr" at the end? I tried making it a \r instead of \n but all that did was make it turn into this
[Alert]
{Message}
Instead of
[Alert] {Message}
make this plugin for 1.7.2 it would be great :D
For Some reason I can't have more then a single Broadcast running at once, I have them on separate lines in the Config but still nothing, am I doing something wrong?
look good but can you add the in gamemversion of that cuz i have a host
I changed the delimeter:' \ n ' to delimeter:' \ r ' , so it works well. :)
@johnguitarist I'm having the exact same problem. I disabled the plugin, because of how annoying it is
Yeah it's a good plugin but I do find the "CR" at the end of each broadcast quite annoying :) good plugin anyhow.
Yeah That "CR" Symbol at the end of it is.. weird :/
Either Way i love it!
@LavaGaming
I get the same