mirror of
https://github.com/GeyserMC/MCProtocolLib.git
synced 2024-11-14 19:34:58 -05:00
Make verify users flag optional
This commit is contained in:
parent
0f11929962
commit
5ff93b6826
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ public class ServerListener extends SessionAdapter {
|
|||
if(protocol.getMode() == ProtocolMode.LOGIN) {
|
||||
if(event.getPacket() instanceof LoginStartPacket) {
|
||||
this.username = event.<LoginStartPacket>getPacket().getUsername();
|
||||
boolean verify = event.getSession().getFlag(ProtocolConstants.VERIFY_USERS_KEY);
|
||||
boolean verify = event.getSession().hasFlag(ProtocolConstants.VERIFY_USERS_KEY) ? event.getSession().<Boolean>getFlag(ProtocolConstants.VERIFY_USERS_KEY) : true;
|
||||
if(verify) {
|
||||
event.getSession().send(new EncryptionRequestPacket(this.serverId, pair.getPublic(), this.verifyToken));
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue