fix adminchat bug

This commit is contained in:
speedxx 2020-08-08 23:20:06 -04:00
parent 2ecde80b5f
commit 087e4a0d9c

View File

@ -284,6 +284,12 @@ public class Command_saconfig extends FreedomCommand
FUtil.adminAction(sender.getName(), "Removing " + admin.getName() + " from the admin list", true); FUtil.adminAction(sender.getName(), "Removing " + admin.getName() + " from the admin list", true);
admin.setActive(false); admin.setActive(false);
if (plugin.pl.getPlayer(player).inAdminChat())
{
plugin.pl.getPlayer(player).setAdminChat(false);
}
plugin.al.save(admin); plugin.al.save(admin);
plugin.al.updateTables(); plugin.al.updateTables();
if (player != null) if (player != null)