Add setCustomLoginMessage method

This commit is contained in:
Eva 2022-03-22 18:22:16 +00:00 committed by GitHub
parent 13154f7ac9
commit f8973dd11f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,7 @@ public class Admin
{
private final UUID uuid;
private String lastLoginName;
private final String loginMessage;
private String loginMessage;
private final boolean isSeniorAdmin;
private final boolean isTelnetAdmin;
private final List<String> consoleAliases;
@ -115,6 +115,11 @@ public class Admin
ips.clear();
}
public void setCustomLoginMessage(String newLoginMessage)
{
this.loginMessage = newLoginMessage;
}
public Date getLastLogin()
{
return lastLogin;
@ -124,7 +129,7 @@ public class Admin
{
return loginMessage;
}
public boolean isSeniorAdmin()
{
return isSeniorAdmin;