Note: the original plugin and almost all of the work done on it is by croemmich. He doesn't have the time to work it any more, so he's allowed me to maintain it.
ServerEvents prints customizable messages to chat, Twitter, a database, or to a file. See the configuration file below for a better idea of what the plugin does.

If you appreciate this plugin, you are welcome to
.
Installation
- Download mysql-connector-java-bin.jar and twitter4j-core.jar and place them in the root server directory.
- Download ServerEvents.jar and place it in the plugin directory.
- Start the Minecraft server to generate the configuration file.
- To enable output to Twitter, run the command /serverevents register (requires permission serverevents.register) and follow the directions it gives. It can be run from server console or in-game. Alternately, if for whatever reason you don't want to use the command, you can use the old method of running "java -jar ServerEvents.jar" from the command line.
- Edit server_events.xml to your liking.
- Restart the server, or use the command /serverevents reload (requires permission serverevents.reload) to make the plugin re-load any changes you've made to server_events.xml.
Developer API
ServerEvents now has a developer API that allows developers to add, remove, and trigger messages. Currently there is not built in support for custom message types, however you can implement that on your own.
Implementation
Add ServerEvents.jar to your build path. In Eclipse -> Add External Jar
Place the following in your plugin's onEnable().
Plugin serverevents = this.getServer().getPluginManager().getPlugin("ServerEvents"); if (serverevents != null) { if (!serverevents.isEnabled()) { getServer().getPluginManager().enablePlugin(serverevents); } } else { log.info("ServerEvents plugin not installed. Disabling plugin."); this.getServer().getPluginManager().disablePlugin(this); }
Then simply make API calls anywhere in your code.
/* Add/Remove Messages */ ServerEvents.addMessage(Messages.Type.RANDOM, "Hello World!"); ServerEvents.removeMessage(Messages.Type.RANDOM, "Hello World!"); /* Add a message with parameters */ HashMap<String, String> params = new HashMap<String, String>(); params.put("cmd", "/i 1 64"); params.put("full", "true"); ServerEvents.addMessage(Messages.Type.COMMAND, "%n used the command: %cmd", params); /* Display a message right now. */ ServerEvents.displayMessage("Hello World!");
Source - https://github.com/Brettflan/ServerEvents
For old discussion of this mod, you can head over to the main Bukkit forum:
http://forums.bukkit.org/threads/1796/
Thanks to mrgreaper for the idea and messages!
Facts
- Date created
- Sep 02, 2011
- Category
- Last update
- Jun 15, 2013
- Development stage
- Release
- Language
- enUS
- License
- BSD License
- Curse link
- ServerEvents
- Downloads
- 10,790
- Recent files
- Reply
- #63
whbski2 Jun 15, 2013 at 05:20 UTC - 0 likes@Brettflan: Go
Thx much.
- Reply
- #62
Brettflan Jun 15, 2013 at 01:34 UTC - 0 likesVersion 1.5.4 is now uploaded to fix Twitter integration. Note that it will also provide a download link for an updated twitter4j lib which you will also need.
It will be downloadable as soon as the BukkitDev team have time to review and approve the file.
EDIT:
@Chadwiko: Go
Somebody else (or it might have been you) was asking about IRC integration earlier. I don't have the time or desire to look into it, but the source for this plugin is available on GitHub. Another dev is welcome to implement it and submit it as a pull request.
- Reply
- #61
Chadwiko Jun 12, 2013 at 04:54 UTC - 0 likesConfirm Twitter no longer working for us as well.
Also, we'd really really like it if the Server Events player-death messages were picked up by our IRC bot, but we don't know how to make this so.
Brettflan, your assistance with that would be very very appreciated. :)
- Reply
- #60
whbski2 Jun 12, 2013 at 03:56 UTC - 0 likes@Brettflan: Go
Hi, my apologies, yes i was ott in my last comment. I have been looking around and ... http://twitter4j.org/en/versions.html - they have an api 1.1v compatible version but says projects need rebuilt to be migrated to twitter4j 3.0.x. - which is beyond my capabilities I'm afraid. I'm still learning with Eclipse software.
- Reply
- #59
Brettflan Jun 12, 2013 at 03:45 UTC - 0 likes@whbski2: Go
Awfully accusatory there, but thanks for the useful heads up. I'm the sole maintainer of the plugin but not the original author, and the Twitter functionality is something I only check on based on problem reports or simple requests. Thus I have never even looked at Twitter's dev info newsfeed, and you're the first to bring this API change up.
I'll see about updating it this weekend when I'm back home. I'm out of town and on my tablet so I can't update it now.
- Reply
- #58
whbski2 Jun 12, 2013 at 02:03 UTC - 0 likesHi so not too happy about this whoevers fault it is for not keeping up with twitter dev, I've been using this plugin for months, been great. Apart from the fact the twitter api v1 was retired today and so the plugin won't tweet any longer. The worst part of this is - Twitter have been planning this and doing tests and NOT hiding the fact for the last 6 months, they have been warning everyone to update their stuff in time for June 11th 2013. SO why has this plugin and/or twitter4j not been prepared for use with twitter api v1.1... https://dev.twitter.com/blog/api-v1-is-retired
- Reply
- #57
Brettflan Jun 10, 2013 at 03:18 UTC - 0 likes@therage500: Go
Post the errors with full stack traces.
- Reply
- #56
therage500 Jun 09, 2013 at 23:19 UTC - 0 likesHmm I can't seem to get this to work at all, lots of errors? Can someone help thank you. ( Using bukkit mc version 1.5.2 )
- Reply
- #55
Brettflan Jun 07, 2013 at 06:21 UTC - 0 likes@Chadwiko: Go
As per the name, the random messages are randomized. You have to have enabled="true" for that section to be enabled at all; if it isn't enabled you won't see any of the messages under it.
The only way for it to not really be random would be to have only a single message listed in there.
- Reply
- #54
Chadwiko Jun 06, 2013 at 22:47 UTC - 0 likesThanks for the update BrettFlan! Works a treat.
Weird bug i've been having, even before the update;
My 'messages to be displayed randomly' aren't working.
Here's the setup;
<!
Messages to be displayed randomly. Default delay is 30 minutes (30min*60sec*1000mili)> <random enabled="false" file="false" chat="true" twitter="false" database="true" delay="700000">So basically I want the messages that i've configured after this to display semi-regularly in the server. It's just stuff like "thanks for playing, check the website" and "if you like the server, tell your friends". etc.
I didn't want it to cycle randomly through them. Rather I was hoping they'd go through sequentially then loop.
Not the case?