Search in sources :

Example 1 with MassiveCoreMConf

use of com.massivecraft.massivecore.MassiveCoreMConf in project MassiveCore by MassiveCraft.

the class NmsChat method sendChatPlain.

public void sendChatPlain(Object sendeeObject, String plain) {
    CommandSender sendee = IdUtil.getSender(sendeeObject);
    if (sendee == null)
        return;
    MassiveCoreMConf mconf = MassiveCoreMConf.get();
    if (mconf != null && !mconf.consoleColorsEnabled && sendee instanceof ConsoleCommandSender) {
        plain = ChatColor.stripColor(plain);
    }
    sendee.sendMessage(plain);
}
Also used : MassiveCoreMConf(com.massivecraft.massivecore.MassiveCoreMConf) CommandSender(org.bukkit.command.CommandSender) ConsoleCommandSender(org.bukkit.command.ConsoleCommandSender) ConsoleCommandSender(org.bukkit.command.ConsoleCommandSender)

Aggregations

MassiveCoreMConf (com.massivecraft.massivecore.MassiveCoreMConf)1 CommandSender (org.bukkit.command.CommandSender)1 ConsoleCommandSender (org.bukkit.command.ConsoleCommandSender)1