Update to latest netty, fix event bus bug, comment and rework PacketDecoder to new netty for better performance

This commit is contained in:
md_5
2013-05-14 18:32:17 +10:00
parent 21a354fa75
commit b25c81daf3
5 changed files with 42 additions and 13 deletions

View File

@@ -37,11 +37,17 @@ public class PluginManager
private final ProxyServer proxy;
/*========================================================================*/
private final Yaml yaml = new Yaml();
@SuppressWarnings("unchecked")
private final EventBus eventBus = new EventBus( ProxyServer.getInstance().getLogger(), Subscribe.class, EventHandler.class );
private final EventBus eventBus;
private final Map<String, Plugin> plugins = new HashMap<>();
private final Map<String, Command> commandMap = new HashMap<>();
@SuppressWarnings("unchecked")
public PluginManager(ProxyServer proxy)
{
this.proxy = proxy;
eventBus = new EventBus( proxy.getLogger(), Subscribe.class, EventHandler.class );
}
/**
* Register a command so that it may be executed.
*