mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-07-01 20:46:41 +00:00
why dont i ever commit
This commit is contained in:
@ -61,6 +61,13 @@ public class ChatManager extends FreedomService
|
||||
message = FUtil.colorize(message);
|
||||
message = message.replaceAll(ChatColor.MAGIC.toString(), "&k");
|
||||
|
||||
if (!ConfigEntry.TOGGLE_CHAT.getBoolean() && !plugin.al.isAdmin(player))
|
||||
{
|
||||
event.setCancelled(true);
|
||||
playerMsg(player, "Chat is currently disabled.", ChatColor.RED);
|
||||
return;
|
||||
}
|
||||
|
||||
if (message.equals("Connected using PickaxeChat for Android"))
|
||||
{
|
||||
event.setCancelled(true);
|
||||
|
Reference in New Issue
Block a user