mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2025-02-18 20:46:58 -05:00
Changed kick message when no valid account is selected
This commit is contained in:
parent
9748b586f5
commit
58f05b820b
2 changed files with 6 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -109,7 +109,7 @@ public class ExternalInterface {
|
|||
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 class ExternalInterface {
|
|||
});
|
||||
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.");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue