make it not kill other clients' chat commands
This commit is contained in:
parent
98c4bf2a97
commit
6f1368f6fc
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ public class EventHandler {
|
||||||
profilerChat.next("idle");
|
profilerChat.next("idle");
|
||||||
}
|
}
|
||||||
// Don't add chatcolor to commands!
|
// Don't add chatcolor to commands!
|
||||||
else if (!event.getOriginalMessage().startsWith("/") && !event.getOriginalMessage().startsWith(".") && !event.getOriginalMessage().startsWith("#")) {
|
else if ((ChatColor.getInstance().enabled || ChatSuffix.getInstance().enabled) && !event.getOriginalMessage().startsWith("/") && !event.getOriginalMessage().startsWith(".") && !event.getOriginalMessage().startsWith("#") && !event.getOriginalMessage().startsWith("&")) {
|
||||||
profilerChat.next("command");
|
profilerChat.next("command");
|
||||||
event.setCanceled(true);
|
event.setCanceled(true);
|
||||||
TTCp.player.sendChatMessage(ChatColor.getInstance().get() + event.getMessage() + ChatSuffix.getInstance().get(ChatSuffix.getInstance().chance));
|
TTCp.player.sendChatMessage(ChatColor.getInstance().get() + event.getMessage() + ChatSuffix.getInstance().get(ChatSuffix.getInstance().chance));
|
||||||
|
|
Loading…
Add table
Reference in a new issue