unnecessary

This commit is contained in:
speed 2020-12-24 20:07:09 -05:00
parent 585fdb7992
commit 210b0f8b43
4 changed files with 9 additions and 10 deletions

View File

@ -138,7 +138,7 @@ public class ChatManager extends FreedomService
// Send to discord
if (!ConfigEntry.ADMIN_ONLY_MODE.getBoolean() && !Bukkit.hasWhitelist() && !plugin.pl.getPlayer(player).isMuted() && !plugin.tfg.inGuildChat(player))
{
plugin.dc.messageChatChannel(plugin.dc.deformat(player.getName()) + " \u00BB " + ChatColor.stripColor(message));
plugin.dc.messageChatChannel(player.getName() + " \u00BB " + ChatColor.stripColor(message));
}
}

View File

@ -23,7 +23,7 @@ public class Command_consolesay extends FreedomCommand
String message = StringUtils.join(args, " ");
FUtil.bcastMsg(String.format("§7[CONSOLE] §c%s §8\u00BB §f%s", sender.getName(), StringUtils.join(args, " ")));
plugin.dc.messageChatChannel("[CONSOLE] " + plugin.dc.deformat(sender.getName()) + " \u00BB " + ChatColor.stripColor(message));
plugin.dc.messageChatChannel("[CONSOLE] " + sender.getName() + " \u00BB " + ChatColor.stripColor(message));
return true;
}
}
}

View File

@ -41,8 +41,7 @@ public class Command_say extends FreedomCommand
}
FUtil.bcastMsg(String.format("[Server:%s] %s", sender.getName(), message), ChatColor.LIGHT_PURPLE);
plugin.dc.messageChatChannel(String.format("[Server:%s] \u00BB %s", plugin.dc.deformat(sender.getName()), message));
plugin.dc.messageChatChannel(String.format("[Server:%s] \u00BB %s", sender.getName(), message));
return true;
}
}
}

View File

@ -290,7 +290,7 @@ public class Discord extends FreedomService
if (event.getDeathMessage() != null)
{
messageChatChannel("**" + deformat(event.getDeathMessage()) + "**");
messageChatChannel("**" + event.getDeathMessage() + "**");
}
}
@ -305,7 +305,7 @@ public class Discord extends FreedomService
{
if (!plugin.al.isVanished(event.getPlayer().getName()))
{
messageChatChannel("**" + deformat(event.getPlayer().getName()) + " joined the server" + "**");
messageChatChannel("**" + event.getPlayer().getName() + " joined the server" + "**");
}
}
@ -314,7 +314,7 @@ public class Discord extends FreedomService
{
if (!plugin.al.isVanished(event.getPlayer().getName()))
{
messageChatChannel("**" + deformat(event.getPlayer().getName()) + " left the server" + "**");
messageChatChannel("**" + event.getPlayer().getName() + " left the server" + "**");
}
}
@ -511,4 +511,4 @@ public class Discord extends FreedomService
}
return false;
}
}
}