mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-26 17:05:01 +00:00
Fix SAConfig NPE (originally by Allink)
This commit is contained in:
parent
1ddeb4b621
commit
4564ad0449
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user