Fixed reset mechanism
This commit is contained in:
parent
7af0f5c880
commit
550328863a
|
|
@ -83,11 +83,14 @@ public enum VelocityForgeBackendConnectionPhase implements BackendConnectionPhas
|
|||
if (clientPhase.getResetType() == VelocityForgeClientConnectionPhase.clientResetType.CRP ||
|
||||
clientPhase.getResetType() == VelocityForgeClientConnectionPhase.clientResetType.SR) {
|
||||
clientPhase.resetConnectionPhase(player);
|
||||
player.getConnection().write(message);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
//STILL WIP
|
||||
if (!Ambassador.getInstance().config.isDebugMode()) {
|
||||
server.disconnect();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -101,7 +101,12 @@ public enum VelocityForgeClientConnectionPhase implements ClientConnectionPhase
|
|||
return true;
|
||||
}
|
||||
|
||||
public void complete(ConnectedPlayer player, boolean resettable) { }
|
||||
@Override
|
||||
public void complete(ConnectedPlayer player, clientResetType resetType) {
|
||||
if (Ambassador.getInstance().config.isDebugMode()) {
|
||||
player.sendMessage(Component.text("Forge -> Vanilla - Not resetting"));
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user