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);
admin.setActive(false);
if (plugin.pl.getPlayer(player).inAdminChat())
{
plugin.pl.getPlayer(player).setAdminChat(false);
}
plugin.al.save(admin);
plugin.al.updateTables();
if (player != null)
@ -343,4 +349,4 @@ public class Command_saconfig extends FreedomCommand
return Collections.emptyList();
}
}
}