Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
1package org.bukkit.event.server;
2
3import org.bukkit.plugin.Plugin;
4
5/**
6 * Used for plugin enable and disable events
7 */
8public class PluginEvent extends ServerEvent {
9 private final Plugin plugin;
10
11 public PluginEvent(final Type type, final Plugin plugin) {
12 super(type);
13
14 this.plugin = plugin;
15 }
16
17 /**
18 * Gets the plugin involved in this event
19 *
20 * @return Plugin for this event
21 */
22 public Plugin getPlugin() {
23 return plugin;
24 }
25}