Merge pull request #262 from speedxx/development

fix adminchat bug
This commit is contained in:
Telesphoreo 2020-08-08 22:35:45 -05:00 committed by GitHub
commit 328225fe6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)