Implemented PluginEnabled and PluginDisabled

This commit is contained in:
Dinnerbone
2011-01-03 02:06:22 +00:00
parent 6d79881073
commit c52e7539f4
4 changed files with 109 additions and 31 deletions

View File

@@ -0,0 +1,26 @@
package org.bukkit.event.server;
import org.bukkit.plugin.Plugin;
/**
* Used for plugin loaded and unloaded events
*/
public class PluginEvent extends ServerEvent {
private final Plugin plugin;
public PluginEvent(final Type type, final Plugin plugin) {
super(type);
this.plugin = plugin;
}
/**
* Gets the plugin involved in this event
*
* @return Plugin for this event
*/
public Plugin getPlugin() {
return plugin;
}
}