summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit/event/server/PluginEvent.java
blob: 60c2c279cc971964a381d51ad4b175827aa9e303 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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;
    }
}