This commit is contained in:
Super_
2020-01-03 21:42:23 -05:00
parent 52269c2122
commit 3ea73f78e9
3 changed files with 19 additions and 0 deletions

View File

@ -69,6 +69,12 @@ public class ChatManager extends FreedomService
// Check for adminchat
final FPlayer fPlayer = plugin.pl.getPlayerSync(player);
if (fPlayer.isLockedUp())
{
FSync.playerMsg(player, "You're locked up and cannot talk.");
event.setCancelled(true);
return;
}
if (fPlayer.inAdminChat())
{
FSync.adminChatMessage(player, message);