cn.nukkit.event.plugin.PluginEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of powernukkit Show documentation
Show all versions of powernukkit Show documentation
A Minecraft Bedrock Edition server software implementation made in Java from scratch which supports all new features.
package cn.nukkit.event.plugin;
import cn.nukkit.event.Event;
import cn.nukkit.event.HandlerList;
import cn.nukkit.plugin.Plugin;
/**
* @author MagicDroidX (Nukkit Project)
*/
public class PluginEvent extends Event {
private static final HandlerList handlers = new HandlerList();
private final Plugin plugin;
public PluginEvent(Plugin plugin) {
this.plugin = plugin;
}
public static HandlerList getHandlers() {
return handlers;
}
public Plugin getPlugin() {
return plugin;
}
}