From e6ada0b2d05371ee6528e5d509a3bbc87d1b65ad Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Wed, 24 Oct 2018 00:08:03 +0200 Subject: [PATCH] Probably fixed a Discord chat issue DiscordPlugin#61 --- .../chat/commands/appendtext/AppendTextCommandBase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/buttondevteam/chat/commands/appendtext/AppendTextCommandBase.java b/src/main/java/buttondevteam/chat/commands/appendtext/AppendTextCommandBase.java index 01255df..129adef 100644 --- a/src/main/java/buttondevteam/chat/commands/appendtext/AppendTextCommandBase.java +++ b/src/main/java/buttondevteam/chat/commands/appendtext/AppendTextCommandBase.java @@ -28,10 +28,10 @@ public abstract class AppendTextCommandBase extends TBMCCommandBase { cp, msg).fromCommand(true).build()); else if (sender.isOp()) TBMCChatAPI.SendChatMessage(ChatMessage.builder(PlayerListener.ConsoleChannel, sender, - (cp = TBMCPlayer.getPlayer(new UUID(0, 0), ChatPlayer.class)), msg).build()); + (cp = TBMCPlayer.getPlayer(new UUID(0, 0), ChatPlayer.class)), msg).fromCommand(true).build()); else TBMCChatAPI.SendChatMessage(ChatMessage.builder(Channel.GlobalChat, sender, - (cp = TBMCPlayer.getPlayer(new UUID(0, 0), ChatPlayer.class)), msg).build()); //TODO + (cp = TBMCPlayer.getPlayer(new UUID(0, 0), ChatPlayer.class)), msg).fromCommand(true).build()); //TODO return true; } }