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.
Very easy plugin but it stops when it broadcasted all messages in the messages.txt file. I tried to copy and paste the text much times and now it works perfectly :D (the messages.txt file is 591mb now)
Does it do per-world?
hey keep getting this error
<<code [00:12:34 WARN]: [AutoBroadcaster] Task #18 for AutoBroadcaster v0.4 generated an exception
java.lang.NullPointerException at me.skipperguy12.AutoBroadcasterPlus.AutoBroadcasterPlus.broadcastMessages(AutoBroadcasterPlus.java:114) [?:?] at me.skipperguy12.AutoBroadcasterPlus.AutoBroadcasterPlus$1.run(AutoBroadcasterPlus.java:75) [?:?] at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftTask.run(CraftTask.java:53) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-14-g15b04d8-b2991jnks] at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-14-g15b04d8-b2991jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:587) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-14-g15b04d8-b2991jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:250) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-14-g15b04d8-b2991jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-14-g15b04d8-b2991jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-14-g15b04d8-b2991jnks] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-14-g15b04d8-b2991jnks]>>
<</code>>
Why does it randomly stop broadcasting, I've had the plugin a couple of times and every time it does the same thing. Thanks
25.12 07:53:00 [Server] INFO at me.skipperguy12.AutoBroadcasterPlus.AutoBroadcasterPlus$1.run(AutoBroadcasterPlus.java:75) [?:?] 25.12 07:53:00 [Server] INFO at me.skipperguy12.AutoBroadcasterPlus.AutoBroadcasterPlus.broadcastMessages(AutoBroadcasterPlus.java:114) [?:?] 25.12 07:53:00 [Server] INFO java.lang.NullPointerException 25.12 07:53:00 [Server] WARN Task #12045 for AutoBroadcaster v0.4 generated an exception
I keep getting that in console
How do I make it so that I can have multiple broadcast messages that broadcast at different times. Example: I want Broadcast1 to broadcast every 60 seconds | and I want Broadcast2 to broadcast every 1000 seconds. Do I just make another line that says 'interval:' and will that automatically be linked to the second line in the messages.txt?
@OverPanda
Same mine does this :/ Its sooo anoying
Love the plugin, but for some reason once it goes through all the announcements it stops and doesn't begin again from the top. Any reason why? It's pretty annoying...
Nvm forgot to to shit thanks for this awesome plugin!
i did everything and made messages in the messages file and took interval to 300 but no messages yet? please help ! i tryed to restart but still not working! :O
@the3rdnumber_
Nope.
Really no perms?
It has Stop Working after the first time so I have combined another plugin with it seeing if It would work it is but not as good as the plugin should be working.
works for 1.6.1?
message stops working after the first time it is displayed
I've been getting very busy lately, sorry! If anyone is interested in updating this while I'm busy, please fork this repo and send in a pull request, I check for these almost every day! https://github.com/skipperguy12/AutoBroadcasterPlus
There seems to be a bug/glitch that causes the plugin to stop working properly after all of the messages of been displayed.
Autobroadcaster has stopped broadcasting. Whenever it's supposed to broadcast a message an error pops up.
Here is the link to the error: http://pastebin.com/6r8HJ1mP
Our server has used this plugin before, not sure if it is the same plugin but we used it not too long ago and this was the only working plugin. we got a new server and the plugin doesn't have a config file.
Any way to make it toggleable to single players?
I want to let VIP players on my server have the option to disable them.
EDIT: Meanwhile, huge console error is popping up from time to time:
07:19:25 [WARNING] [AutoBroadcaster] Task #20 for AutoBroadcaster v0.4 generated an exception java.lang.NullPointerException at me.skipperguy12.AutoBroadcasterPlus.AutoBroadcasterPlus.broadcastMessages(AutoBroadcasterPlus.java:114) at me.skipperguy12.AutoBroadcasterPlus.AutoBroadcasterPlus$1.run(AutoBroadcasterPlus.java:75) at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftTask.run(CraftTask.java:53) at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:513) at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:226) at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:477) at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:410) at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)