FrogAnnounce
FrogAnnounce
An auto-messaging/auto-announcement/announcer/thing system for your minecraft server.
Bukkit version doesn't matter for this plugin. Please don't ask me to update it for that reason.
Description
Okay, so here's my first plugin which I've actually released that isn't amazingly small-scale. It's a fairly simple plugin which relays messages, at the rate in minutes, set in the configuration. It allows for colours, multi-line messages, message cycling, and message shuffling. I made this because I've seen a few plugins like this, but they're either out-of-date and don't work, or they just don't work, period. From thereabouts comes this plugin, FrogAnnounce. I know the name is lame; I'm not creative with names, sorry.FrogAnnounce 2.0.1: Review By: UltiByte
Download
StableVersion: 2.5.0
Build date: 28 May 2014
BukkitDev Download: Latest Build
Not-Always-So-Stable Source
GitHub: TheLunarFrog's SourceFeatures
- Announcements relayed to the entire server at the specified rate
- Random or sequenced (configurable)
- Ability to store as many announcements as you want
- Force an announcement to run immediately, without interrupting the normal announcement cycle or schedule
- Opt out and ignore announcements, or opt-in again and be unignored to see them again, controllable with permission nodes
- Ability to announce everything to only certain groups (improved in 2.3.0).
- Ability to send specific messages to certain groups, i.e. announcement 1 to group administrators, announcement 2 to moderators and donators (improved in 2.3.0)
- In 2.3.0: Ability to announce everything to only certain worlds
- In 2.3.0: Ability to announce only certain announcements to certain worlds
- In 2.3.0: Ability to combine any of the preceding 4 conditions (global groups, announcement-specific groups, global worlds, and announcement-specific worlds)
Planned Features
- Any suggestions are welcome.
Current build still works perfectly with 1.3.1-R2.0.
@TheLunarFrog
mkay. sure.
In between houses at the moment. Will keep up with any further RBs, but will not be developing any new features for a while.
I'm updating it now. Edit: Actually, it works perfectly with 1.3.1 already.
Does this work with 1.3.1?
Releasing 2.0 within the next couple hours. Just needs some testing. Edit: Dat approval time.
@ThisUsernameIsMine
Interesting. I'll take a look into this.
@TheLunarFrog
Thank you for responding and sorry for my late reply and for posting a long error-output in your comments.
There's no added space after the announcer prefix or announcement:
Tag: '&f;Mededeling:'
- "&b;Gratis (remaining text left out)
As you can see, everything starts with a color-code.
@JadoJodo
Something broken? I'm currently in the process of rewriting the entire plugin, but I'm pretty busy alongside doing so.
Any plans for an update on this? Love it.
It would be nice if fa reload worked in the console as well as in the game. If you type fa reload into the console you get [WARNING] Unexpected exception while parsing console command
@ThisUsernameIsMine
I'm aware of the first issue and I'm already working to fix it - thanks for reporting it though!
As for the extra space, just don't put a space after [FrogAnnounce] as it adds a space on its own. If you're still having issues, do you have spaces in your strings before any text (like - " Moo" instead of - "Moo")
The tag should be something like: Tag: "&AQUA;[FrogAnnounce]", not Tag: "&AQUA;[FrogAnnounce] " (I use this as example because it's the default).
When changing the interval in-game (i did /fa interval 1), i get a NPE in console:
[SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'fa' in plugin FrogAnnounce v1.1 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:473) at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:821) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:781) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764) at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:103) at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34) at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113) at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:169) at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.NullPointerException at me.thelunarfrog.FrogAnnounce.FrogAnnounce.setInterval(FrogAnnounce.java:131) at me.thelunarfrog.FrogAnnounce.FrogAnnounce.onCommand(FrogAnnounce.java:187) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) ... 14 more
Also, it seems like FrogAnnounce adds an additional space between '&AQUA;[FrogAnnounce]' and the text after the first rotation/cycle :S
expected output: http://oi44.tinypic.com/33vi4b6.jpg
resulting output: http://oi44.tinypic.com/2d1ssup.jpg
(this was tested with FrogAnnounce 1.1 under the latest CraftBukkit dev-build and Java 6)
- ThisUsernameIsMine
@JadoJodo
Do you have Vault? If so, do you have Permission: true in your config? If these are both "yes," then does it give any error message? Also, what Permissions plugin are you using?
It would appear having the 'frogannounce.admin' has no affect if the user is no OP. Is there any way to change this?
Nvm, i updated to the dev build and now its fine. Thanks :)
2012-04-10 06:04:20 [SEVERE] at ru.tehkode.permissions.bukkit.superperms.PermissiblePEX.hasPermission(PermissiblePEX.java:102) 2012-04-10 06:04:20 [SEVERE] at org.bukkit.craftbukkit.entity.CraftHumanEntity.hasPermission(CraftHumanEntity.java:102) 2012-04-10 06:04:20 [SEVERE] at org.bukkit.craftbukkit.CraftServer.broadcast(CraftServer.java:962) 2012-04-10 06:04:20 [SEVERE] at org.bukkit.craftbukkit.CraftServer.broadcastMessage(CraftServer.java:322) 2012-04-10 06:04:20 [SEVERE] at me.thelunarfrog.FrogAnnounce.FrogAnnounce$printAnnounce.run(FrogAnnounce.java:313) 2012-04-10 06:04:20 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34) 2012-04-10 06:04:20 [SEVERE] at java.lang.Thread.run(Thread.java:722) 2012-04-10 06:04:20 [SEVERE] java.lang.RuntimeException: Permissions manager is not accessable. Is the PermissionsEx plugin enabled? 2012-04-10 06:04:20 [SEVERE] at ru.tehkode.permissions.bukkit.PermissionsEx.getPermissionManager(PermissionsEx.java:148) 2012-04-10 06:04:20 [SEVERE] at ru.tehkode.permissions.bukkit.PermissionsEx.getUser(PermissionsEx.java:155) 2012-04-10 06:04:20 [SEVERE] at ru.tehkode.permissions.bukkit.superperms.PermissiblePEX.isPermissionSet(PermissiblePEX.java:202) 2012-04-10 06:04:20 [SEVERE] at org.bukkit.permissions.PermissibleBase.hasPermission(PermissibleBase.java:71) 2012-04-10 06:04:20 [SEVERE] at ru.tehkode.permissions.bukkit.superperms.PermissiblePEX.checkPermission(PermissiblePEX.java:113) 2012-04-10 06:04:20 [SEVERE] at ru.tehkode.permissions.bukkit.superperms.PermissiblePEX.hasPermission(PermissiblePEX.java:102) 2012-04-10 06:04:20 [SEVERE] at org.bukkit.craftbukkit.entity.CraftHumanEntity.hasPermission(CraftHumanEntity.java:102) 2012-04-10 06:04:20 [SEVERE] at org.bukkit.craftbukkit.CraftServer.broadcast(CraftServer.java:962) 2012-04-10 06:04:20 [SEVERE] at org.bukkit.craftbukkit.CraftServer.broadcastMessage(CraftServer.java:322) 2012-04-10 06:04:20 [SEVERE] at me.thelunarfrog.FrogAnnounce.FrogAnnounce$printAnnounce.run(FrogAnnounce.java:313) 2012-04-10 06:04:20 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34) 2012-04-10 06:04:20 [SEVERE] at java.lang.Thread.run(Thread.java:722)
Not Broadcasting any messages
@paulj1x
I had to remove it because it had a bug in it that I had overlooked. It's now fixed, and I'm re-uploading it.
Where is the link to get 1.10?
Ok, here's what I'm doing of late:
I'm re-coding FrogAnnounce from ground up. It currently just doesn't please me, and not to mention, the code is irrevocably messy, to an extent where if I try to clean it up, I'll just mess something up and I can't work with it.
I've added a feature to FrogAnnounce that will broadcast a message on-demand (/fa bc <announcement number> or /fa broadcast <announcement number>) that will be in the new version as well as the current one, which I will upload after I've finished testing (that'll be in about 5 minutes.)