diff --git a/RedisBungee-API/src/main/java/com/imaginarycode/minecraft/redisbungee/internal/AbstractRedisBungeeListener.java b/RedisBungee-API/src/main/java/com/imaginarycode/minecraft/redisbungee/internal/AbstractRedisBungeeListener.java index c6a736d..d755aa4 100644 --- a/RedisBungee-API/src/main/java/com/imaginarycode/minecraft/redisbungee/internal/AbstractRedisBungeeListener.java +++ b/RedisBungee-API/src/main/java/com/imaginarycode/minecraft/redisbungee/internal/AbstractRedisBungeeListener.java @@ -11,7 +11,7 @@ import java.util.Collection; import java.util.List; import java.util.Map; -public abstract class AbstractRedisBungeeListener { +public abstract class AbstractRedisBungeeListener { protected static final String ALREADY_LOGGED_IN = "§cYou are already logged on to this server. \n\nIt may help to try logging in again in a few minutes.\nIf this does not resolve your issue, please contact staff."; @@ -26,7 +26,10 @@ public abstract class AbstractRedisBungeeListener { this.exemptAddresses = exemptAddresses; } - public abstract void onLogin(LE event); + public void onLogin(LE event) {} + + + public void onLogin(LE event, CN continuation) {} public abstract void onPostLogin(PLE event); diff --git a/RedisBungee-Bungee/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungeeListener.java b/RedisBungee-Bungee/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungeeListener.java index 797ba98..c82279e 100644 --- a/RedisBungee-Bungee/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungeeListener.java +++ b/RedisBungee-Bungee/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungeeListener.java @@ -27,7 +27,7 @@ import redis.clients.jedis.Pipeline; import java.net.InetAddress; import java.util.*; -public class RedisBungeeListener extends AbstractRedisBungeeListener implements Listener { +public class RedisBungeeListener extends AbstractRedisBungeeListener implements Listener { public RedisBungeeListener(RedisBungeePlugin plugin, List exemptAddresses) {