From 7a724c2f1385b14692b2842fde6ca8564374873f Mon Sep 17 00:00:00 2001 From: Video Date: Sun, 11 Sep 2022 12:12:36 -0600 Subject: [PATCH] Fixes bug that prevented /saconfig add from working properly This popped up during testing right before RC2 was intended to be cut. --- .../totalfreedommod/command/Command_saconfig.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_saconfig.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_saconfig.java index 6eb858ec..ee5c63b5 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_saconfig.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_saconfig.java @@ -176,11 +176,10 @@ public class Command_saconfig extends FreedomCommand } // Find the old admin entry - String name = player.getName(); Admin admin = null; for (Admin loopAdmin : plugin.al.getAllAdmins()) { - if (loopAdmin.getName().equalsIgnoreCase(name) || loopAdmin.getIps().contains(FUtil.getIp(player))) + if (loopAdmin.getUuid().equals(player.getUniqueId())) { admin = loopAdmin; break; @@ -189,7 +188,6 @@ public class Command_saconfig extends FreedomCommand if (admin == null) // New admin { - FUtil.adminAction(sender.getName(), "Adding " + player.getName() + " to the admin list", true); admin = new Admin(player);