mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-03 15:08:18 +01:00
Fix invalid mail key (#4218)
This commit is contained in:
parent
bd9540cea3
commit
38dcdff659
@ -312,16 +312,16 @@ public abstract class UserData extends PlayerExtension implements IConf {
|
||||
}
|
||||
|
||||
public List<String> getMails() {
|
||||
return holder.mails();
|
||||
return holder.mail();
|
||||
}
|
||||
|
||||
public void setMails(List<String> mails) {
|
||||
holder.mails(mails);
|
||||
holder.mail(mails);
|
||||
config.save();
|
||||
}
|
||||
|
||||
public void addMail(final String mail) {
|
||||
holder.mails().add(mail);
|
||||
holder.mail().add(mail);
|
||||
config.save();
|
||||
}
|
||||
|
||||
|
@ -113,17 +113,17 @@ public class UserConfigHolder {
|
||||
}
|
||||
|
||||
@DeleteOnEmpty
|
||||
private @MonotonicNonNull List<String> mails;
|
||||
private @MonotonicNonNull List<String> mail;
|
||||
|
||||
public List<String> mails() {
|
||||
if (this.mails == null) {
|
||||
this.mails = new ArrayList<>();
|
||||
public List<String> mail() {
|
||||
if (this.mail == null) {
|
||||
this.mail = new ArrayList<>();
|
||||
}
|
||||
return this.mails;
|
||||
return this.mail;
|
||||
}
|
||||
|
||||
public void mails(final List<String> value) {
|
||||
this.mails = value;
|
||||
public void mail(final List<String> value) {
|
||||
this.mail = value;
|
||||
}
|
||||
|
||||
private boolean teleportenabled = true;
|
||||
|
Loading…
Reference in New Issue
Block a user