From f8973dd11f81447f1025f53ca644d8d3baa318e9 Mon Sep 17 00:00:00 2001 From: Eva <66324759+saxnbt@users.noreply.github.com> Date: Tue, 22 Mar 2022 18:22:16 +0000 Subject: [PATCH] Add setCustomLoginMessage method --- .../me/StevenLawson/TotalFreedomMod/admin/Admin.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/StevenLawson/TotalFreedomMod/admin/Admin.java b/src/main/java/me/StevenLawson/TotalFreedomMod/admin/Admin.java index 8a656cc..fad3a4a 100644 --- a/src/main/java/me/StevenLawson/TotalFreedomMod/admin/Admin.java +++ b/src/main/java/me/StevenLawson/TotalFreedomMod/admin/Admin.java @@ -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 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;