ServerEvents

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.

http://img205.imageshack.us/img205/7703/servereventstwitter.png



If you appreciate this plugin, you are welcome to https://www.paypal.com/en_US/i/btn/btn_donate_SM.gif.



Installation

  1. Download mysql-connector-java-bin.jar and twitter4j-core.jar and place them in the root server directory.
  2. Download ServerEvents.jar and place it in the plugin directory.
  3. Start the Minecraft server to generate the configuration file.
  4. 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.
  5. Edit server_events.xml to your liking.
  6. 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!");



View Changelog



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!

Download

File Name Status Version Downloads Date
ServerEvents 1.20.2 Updating 1.20.2 Updating Updating
ServerEvents 1.20.1 Updating 1.20.1 Updating Updating
ServerEvents 1.20 Updating 1.20 Updating Updating
ServerEvents 1.19.2 Updating 1.19.2 Updating Updating
ServerEvents 1.19.1 Updating 1.19.1 Updating Updating
ServerEvents 1.19 Updating 1.19 Updating Updating
ServerEvents 1.18 Updating 1.18 Updating Updating
ServerEvents 1.17.1 Updating 1.17.1 Updating Updating
ServerEvents Forge Updating Forge Updating Updating
ServerEvents Fabric Updating Fabric Updating Updating
ServerEvents
ServerEvents

Dear youtuber!
Have you a channel youtube and want to bring your Video to quality visitors?
Do you want your video to appear on our website?
Do you want to become partner with us?
Just 3 steps to become our partner:
Step 1: Make video review for mods, addons, plugins, ... which you like
Step 2: Upload this video to youtube and our link to your video description
Step 3: Send the youtube video link via message to http://fb.com/9lifehack or leave a comment in the post. We will add your video in the our post, it will help you have more view.
JOIN to get more youtube view with us!!!!

Related Posts

Smarty Productivity Happiness

9LifeHack.com - make things smart