diff --git a/src/main/java/net/raphimc/viaproxy/plugins/events/types/EventCancellable.java b/src/main/java/net/raphimc/viaproxy/plugins/events/types/EventCancellable.java index 359ff9e0..d1528e44 100644 --- a/src/main/java/net/raphimc/viaproxy/plugins/events/types/EventCancellable.java +++ b/src/main/java/net/raphimc/viaproxy/plugins/events/types/EventCancellable.java @@ -17,10 +17,13 @@ */ package net.raphimc.viaproxy.plugins.events.types; -public abstract class EventCancellable { +import net.lenni0451.lambdaevents.types.ICancellableEvent; + +public abstract class EventCancellable implements ICancellableEvent { private boolean cancelled = false; + @Override public boolean isCancelled() { return this.cancelled; } diff --git a/src/main/java/net/raphimc/viaproxy/proxy/external_interface/ExternalInterface.java b/src/main/java/net/raphimc/viaproxy/proxy/external_interface/ExternalInterface.java index 55c3bdcd..c8ffc14b 100644 --- a/src/main/java/net/raphimc/viaproxy/proxy/external_interface/ExternalInterface.java +++ b/src/main/java/net/raphimc/viaproxy/proxy/external_interface/ExternalInterface.java @@ -109,7 +109,7 @@ public static void joinServer(final String serverIdHash, final ProxyConnection p proxyConnection.kickClient("§cFailed to authenticate with Mojang servers! Please try again in a couple of seconds."); } } else if (!ViaProxy.EVENT_MANAGER.call(new JoinServerRequestEvent(proxyConnection, serverIdHash)).isCancelled()) { - proxyConnection.kickClient("§cThis server is in online mode and requires a valid authentication mode."); + proxyConnection.kickClient("§cThe configured target server is in online mode and requires a valid authentication mode."); } } catch (CloseAndReturn e) { throw e; @@ -131,7 +131,7 @@ public static void signNonce(final byte[] nonce, final C2SLoginKeyPacket packet, }); packet.salt = salt; } else { - proxyConnection.kickClient("§cThis server requires a signed nonce. Please enable chat signing in the config and select a valid authentication mode."); + proxyConnection.kickClient("§cThe configured target server requires a signed nonce. Please enable chat signing in the config and select a valid authentication mode."); } }