blob: cc36c272d95ceaa46befb8f4bda0dfb2d3beccda (
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
|
package net.ess3.bukkit.events;
import net.ess3.api.server.Plugin;
import net.ess3.api.server.events.EventFactory;
import net.ess3.api.server.events.EventListener;
import net.ess3.api.server.events.EventPriority;
import net.ess3.api.server.events.EventType;
public class BukkitEventFactory implements EventFactory
{
private Plugin plugin;
public BukkitEventFactory(Plugin plugin)
{
this.plugin = plugin;
}
@Override
public void register(EventListener listener, EventType type, EventPriority priority, boolean ignoreCancelled)
{
BukkitListener bukkitListener = new BukkitListener(plugin);
bukkitListener.register(listener, type, priority, ignoreCancelled);
}
}
|