Added emailverified to playerauth class

This commit is contained in:
Deichor 2024-12-10 02:53:03 +03:00
parent b630df850f
commit 80f0f31ca1

View File

@ -44,6 +44,7 @@ public class PlayerAuth {
private float yaw; private float yaw;
private float pitch; private float pitch;
private UUID uuid; private UUID uuid;
private boolean emailVerified;
/** /**
* Hidden constructor. * Hidden constructor.
@ -181,6 +182,14 @@ public class PlayerAuth {
this.uuid = uuid; this.uuid = uuid;
} }
public boolean isEmailVerified() {
return emailVerified;
}
public void setEmailVerified(boolean emailVerified) {
this.emailVerified = emailVerified;
}
@Override @Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
if (!(obj instanceof PlayerAuth)) { if (!(obj instanceof PlayerAuth)) {
@ -205,6 +214,7 @@ public class PlayerAuth {
+ " ! LastLogin : " + lastLogin + " ! LastLogin : " + lastLogin
+ " ! LastPosition : " + x + "," + y + "," + z + "," + world + " ! LastPosition : " + x + "," + y + "," + z + "," + world
+ " ! Email : " + email + " ! Email : " + email
+ " ! EmailVerified : " + emailVerified
+ " ! Password : {" + password.getHash() + ", " + password.getSalt() + "}" + " ! Password : {" + password.getHash() + ", " + password.getSalt() + "}"
+ " ! UUID : " + uuid; + " ! UUID : " + uuid;
} }
@ -224,7 +234,7 @@ public class PlayerAuth {
private Long lastLogin; private Long lastLogin;
private String registrationIp; private String registrationIp;
private Long registrationDate; private Long registrationDate;
private boolean emailVerified;
private double x; private double x;
private double y; private double y;
private double z; private double z;
@ -258,6 +268,7 @@ public class PlayerAuth {
auth.yaw = yaw; auth.yaw = yaw;
auth.pitch = pitch; auth.pitch = pitch;
auth.uuid = uuid; auth.uuid = uuid;
auth.emailVerified = emailVerified;
return auth; return auth;
} }
@ -355,6 +366,11 @@ public class PlayerAuth {
return this; return this;
} }
public Builder emailVerified(boolean emailVerified) {
this.emailVerified = emailVerified;
return this;
}
public Builder registrationIp(String ip) { public Builder registrationIp(String ip) {
this.registrationIp = ip; this.registrationIp = ip;
return this; return this;