Broadcast++
Broadcast++
A broadcast plugin that can do more than only broadcasting.
Features
- broadcast a message
- say something as god
- say something as herobrine
- say something as the server
- say hi to the server or a player on the server
- say bye to the server or a player on the server
- start auto broadcaster
- stop auto broadcaster
- restart auto broadcaster
- get information about the state of the auto broadcaster
- say something as the auto broadcaster
Configuration
How to set broadcast messages
Commands and Permissions
Command |
Function |
Permission |
/bc <message> | Broadcasts a message | broadcast.bc |
/hi <player> | Say hi to the server or a player on the server | broadcast.hi |
/herobrine <message> | Say something as herobrine | broadcast.say.herobrine |
/godsay <message> | Say something as god | broadcast.say.god |
/server <message> | Say something as the server | broadcast.say.server |
/bca help | Gives you all the help you need with the /bca commands | broadcast.bca.help |
/bca start [message file] | Starts the auto broadcaster | broadcast.bca.start |
/bca stop [message file] | Stops the auto broadcaster | broadcast.bca.stop |
/bca info [message file] | Gives you the state of the auto broadcaster(on or off) | broadcast.bca.info |
/bca restart [message file] | Restarts the auto broadcaster | broadcast.bca.restart |
/bca test [message file] | Tests the message file for errors | broadcast.bca.test |
/bca see [message file] [number] | Gives you the message on place <number> in the messages.txt file | broadcast.bca.see |
/bca next [message file] [number] | Broadcasts the next message, when a number is added, it will add <number> to the line number of the last message, and broadcast that message | broadcast.bca.next |
/bca previous [message file] [number] | Broadcasts the previous message, when a number is added, it will substract <number> from the line number of the last message, and broadcast that message | broadcast.bca.previous |
/bca say <message> | Broadcasts <message> which looks like it was broadcasted from the auto broadcaster | broadcast.bca.say |
/bca add [message file] <message> | Adds a message to the messages.txt | broadcast.bca.add |
/gmcheck <player> | Checks the gamemode from <player>, when you don't set <player> it will give your gamemode | broadcast.gmcheck |
/bcreload | Reloads the config.yml | broadcast.reload |
/bcinfo | Shows you some information about this plugin | broadcast.info |
/bchelp | Shows you the commands and description for this plugin | broadcast.help |
To-Do
Suggestions
do you have any suggestions to make this plugin better, or want something added to the plugin, please post a comment.- make messages editable ingame (suggestion by Mathboy19)
Problems
- when all messages are broadcasted, it doens't start from the beginning
- please make sure that the last line isn't empty, sometimes the last line will be empty and the broadcaster can't schedule a message
a github repository can be found here
@MysticCity
Can you create a ticket with this error, and your messages files?
I will help you there further.
I Need help: 2013-10-26 17:59:00 [WARNING] [Broadcast] Task #112 for broad-cast v1.3.4 generated an exception java.lang.NullPointerException at me.stephanvl.Broadcast.BcAutoBroadcast.setDefaults(BcAutoBroadcast.java:479) at me.stephanvl.Broadcast.BcAutoBroadcast.getBroadcastMessage(BcAutoBroadcast.java:306) at me.stephanvl.Broadcast.BcAutoBroadcast.access$200(BcAutoBroadcast.java:13) at me.stephanvl.Broadcast.BcAutoBroadcast$3.run(BcAutoBroadcast.java:710) at org.bukkit.craftbukkit.v1_6_R2.scheduler.CraftTask.run(CraftTask.java:53) at org.bukkit.craftbukkit.v1_6_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:522) at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226) at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
I am loving this plugin. Thank you for making it! :)
@Icefang23
sorry for this late of a response, but i was on vacation.
I have created a ticket from your comment, and I will try to help you there.
@stephanvl
I tried everything you suggested and I'm still getting the error on each reload. The bazar part is that this plugin works fine on my private server but my main website ssh server is where I'm having the issue.
This is what I have in the messages.txt folder
prefix="&b[info]" time="1" &2Like this server? diamond vote the server and Tenochtitlan project on http://www.planetminecraft.com/server/aztec-empire/ to show support ;)
prefix="&b[Info]" time="2" &5Need to know what to do? suggestions and various info is located in the spawn
prefix="&4[games]" time="3" &cIs the common ninja/parkour map too easy? play Fall_Of_Empire for the extreme challenge you've been waiting for!
prefix="&2[Tenochtitlan]" time="4" &1Need a break from fighting mobs? Visit the mob-free, 1:1 scale of the Aztec Capital, Tenochtitlan
prefix="&6[questions/comments]" time="5" &6have questions or suggestions for the server? post them on the server page at http://www.planetminecraft.com/server/aztec-empire/
prefix="&3[tips]" time="6" &4remember, if you die, you can use /back at any time to return to any location.
prefix="&3[tips]" time="7" &eneed a quick escape to your house? you can set your home by doing the command /sethome and use /home when ever you need to return to your house.
prefix="&9[Shops]" time="8" &5need supplies?, head to the Market in Talcopan, Shops are also available to rent at a price of 200atc a week!
@Woordvoerder
Glad you like it, if you find any bugs, or have a suggestion what to add, please fill in a ticket.
Just want to say thank you for this great plugin its very handy for the server :)
Keep up the good job :)
@Icefang23
Are you using the message file other (by default otherMessages.txt), or have you deleted that message file?
if you have deleted it, in the config.yml it's still referring to that message file, please look into your config.yml, and remove under Message files, "other: otherMessages.txt".
if this doesn't work, can you create a ticket, with your config.yml, and tell me what message files are in the messages folder.
I will add a check if the message file exists in the next version.
EDIT: I was able to reproduce this problem, but it only came when the plugin first started, does this come everytime you restart the server, or only the first time you started it, and created all the files?
if this come everytime, please try what i said above here, otherwise, I will add a fix for this in the next version.
@mrpixelcode
I cant either, I'm sure I'm using it correctly but i keep getting an error file and it then says i have no messages, I'm sure I'm using it correctly because it worked before, now it just won't. I keep getting this:
20:39:43 [WARNING] [Broadcast] An error occurred while getting total line number of message file other
20:39:43 [WARNING] [Broadcast] Task #114458 for broad-cast v1.3.3 generated an exception
java.lang.NullPointerException
at me.stephanvl.Broadcast.BcAutoBroadcast$3.run(BcAutoBroadcast.java:616)
at org.bukkit.craftbukkit.v1_6_R2.scheduler.CraftTask.run(CraftTask.java:53)
at org.bukkit.craftbukkit.v1_6_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345)
at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:522)
at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226)
at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486)
at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419)
at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
@mrpixelcode
in your plugins folder, go to the broad-cast folder, then the messages folder, and edit the messages.txt file, in the config.yml you can set the message files that are used.
you can add dynamic data, and cutomization per message in the message files, you can find herehow to do that
I can't get this to work here are the thing i dont understand
@maj_75
The othermessages.txt file is there to show that you can have multiple files broadcasting, in the config there is a option: Auto-Enabled message files: default, other. remove other from this list, so there is only default. if this option doesn't exist in your config you can type it in there yourself, or you can remove/rename the old config, and a new one will be made with the option available.
i got a file in the messages folder called "othermessages".txt and when i reload the server i get a list of how the othermessages.txt is empy or wrong configured, i dont want othermessages and i have checked the config to disable it but there was no option
@qwertyjl
what kind of commands were you thinking of?
maybe you can fill in a ticket of the type enhancement, and explain a bit more what kind of commands you were thinking of, and how you think it could be done in the broadcast.
I have a suggestion. You should make it so that it could run commands in a broadcast.
Just noticed that permission check can be bypassed with the bca commands when specifying a message file, I'm working on it right now and will upload a new fill as soon as possible
EDIT: v1.3.1_BETA is uploaded and waiting approval
Just wanted to give you an update on what I have been working on, what is working, and what still doesn't work.
I have made most of the code able to use different message files, and added a section in the config.yml to specify multiple message files.
for now, the default message file is the only file used, but this default message file can be changed, and it will still work.
I am now working on an option to start only the default message file on startup, or start them all. and then change most of the commands to be able to handle a extra argument, which will be the name of the, in the config specified, message file. this would be something like ./bca start default, to start the default messages file (which still is messages.txt).
Thats what I have done on the auto broadcaster.
I will probably release a beta build of this version when I have all the commands right.
EDIT: This version is probably not gonna have scoreboard integration, that will be for the next version
@stephanvl
Alright, thanks for keeping me updated. Just wanted to know. :)
@Yandols
I'm working on it, but I don't have a whole lot of time.
also, I will have to change almost everything that has to do with starting or stopping the auto broadcaster.
Just wondering if the updates are going to be soon or not. :P