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