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.
@XMidnightSunX
I get this at times too. I usually get it for task 17, but just now I got it for tast 18.
I get this error periodically, I have a feeling it's about versions of Bukkit- you should update.
org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) 21.05 21:03:46 [Server] INFO at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftTask.run(CraftTask.java:53) 21.05 21:03:46 [Server] INFO at me.skipperguy12.AutoBroadcasterPlus.AutoBroadcasterPlus$1.run(AutoBroadcasterPlus.java:75) 21.05 21:03:46 [Server] INFO at me.skipperguy12.AutoBroadcasterPlus.AutoBroadcasterPlus.broadcastMessages(AutoBroadcasterPlus.java:114) 21.05 21:03:46 [Server] INFO java.lang.NullPointerException 21.05 21:03:46 [Server] WARNING Task #30 for AutoBroadcaster v0.4 generated an exception 21.05 21:03:46 [Server] INFO Faction Mobs data saved via AutoSave
@AStrongerFellow
Also, a cool thing you could do with your messages is have it link them directly to their profile like so: Welcome to _! You should really check out your profile at notarealsitelol.com/%player%
@AStrongerFellow
Show me your messages.txt
The code is open source, if you look at it, what it does is literally go line by line, not checking if it's empty.
When I have a space between messages in the messages.txt I get something like this...
And taking out the space just makes it stop working completely.
@xDIGIT84
/ab - reloads configuration settings
@r34e621fan
@Squawkers13
I believe this issue is caused by only having 1 message. I'm not sure why, if anyone wants to try and double check my code, feel free to look at my github!
@CoderTristan12
Works in newest version!
@skipperguy12
Link please? Edit: Found on curse site http://www.curse.com/server-mods/minecraft/abp
I have attempted to fix all problems caused by my plugins for you guys! I rewrote the entire plugin, please try it out and report bugs to me!
@r34e621fan
I get that for task 6.
every once in a while when the plugin sends a message, I get this in console: http://pastebin.com/ZARmazD5 Here is the list of my plugins: MultiWorld, RankList, WorldEdit, AutoBroadcaster, CoreProtect, VEnchant, DeepVanish, EverCoreUtils, iDisguise, EverlastingWeather, Lockette, Vault, ClearLag, SimpleIRC, ProtocolLib, LoginSecurity, GriefPrevention, MobArena, DispenserRefill, WorldGuard, TreeAssist, BiomeEdit, Essentials, EssentialsSpawn, and EssentialsChat.
I've had the issue when I set the interval at 120 seconds, or more, it doesn't broadcast at all.
Hi before the update AutoBroadcaster When it was done with all the message it restarted at 1 but with the update it wont start back at 1 Please fix this glitch Thx
@maxxxwell
If you want to, you can make the prefix nothing, and then just add the [Prefix] IN front of every message
I have something to say: Can you make it so each msg has a timer and a prefix because I want something like NOTICE ..... and Tip ... but all I can do is name it somethin like Msg:... Msg... please do something like this or Ill keep usin auto msg
May you guys add an in-game reload command so I don't have to stop and restart the server every time I change the message.txt file. Would be great and thanks for reading my comment.
Plus Don't say to do /reload in-game cause that usually crashes my McMyAdmin so I have restart it manually.
does what it says nice plugin!
Think you could add the ability for each line in messages.txt to have its own timing for broadcast ?
Say you wanted line 1 to broadcast every 3 minutes. Line 2 might broadcast every 10 minutes etc.
@residencesucksgg
Are there players on the server? It only sends the message if there is at least 1 player on.