diff --git a/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java b/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java index 63a2dc1..9a16c83 100644 --- a/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java +++ b/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java @@ -351,8 +351,8 @@ public final class RedisBungee extends Plugin { getProxy().getPluginManager().registerCommand(this, new RedisBungeeCommands.SendToAll(this)); getProxy().getPluginManager().registerCommand(this, new RedisBungeeCommands.ServerId(this)); getProxy().getPluginManager().registerCommand(this, new RedisBungeeCommands.ServerIds()); - getProxy().getPluginManager().registerListener(this, new RedisBungeeListener(this)); api = new RedisBungeeAPI(this); + getProxy().getPluginManager().registerListener(this, new RedisBungeeListener(this)); psl = new PubSubListener(); getProxy().getScheduler().runAsync(this, psl); getProxy().getScheduler().schedule(this, new Runnable() {