From 4564ad04492b2df8dadb3b3055325a7a6cb68074 Mon Sep 17 00:00:00 2001 From: Video Date: Sun, 11 Sep 2022 11:34:16 -0600 Subject: [PATCH] Fix SAConfig NPE (originally by Allink) --- .../totalfreedom/totalfreedommod/command/Command_saconfig.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 78979d4e..6eb858ec 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_saconfig.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_saconfig.java @@ -242,7 +242,6 @@ public class Command_saconfig extends FreedomCommand Player player = getPlayer(args[1]); Admin admin = player != null ? plugin.al.getAdmin(player) : plugin.al.getEntryByName(args[1]); - String adminName = admin.getName(); if (admin == null) { @@ -250,6 +249,8 @@ public class Command_saconfig extends FreedomCommand return true; } + String adminName = admin.getName(); + FUtil.adminAction(sender.getName(), "Removing " + admin.getName() + " from the admin list", true); admin.setActive(false);