Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
PluginEvent.java
1 package org.bukkit.event.server;
2 
3 import org.bukkit.plugin.Plugin;
4 
5 /**
6  * Used for plugin enable and disable events
7  */
8 public abstract class PluginEvent extends ServerEvent {
9  private final Plugin plugin;
10 
11  public PluginEvent(final Plugin plugin) {
12  this.plugin = plugin;
13  }
14 
15  /**
16  * Gets the plugin involved in this event
17  *
18  * @return Plugin for this event
19  */
20  public Plugin getPlugin() {
21  return plugin;
22  }
23 }