Probably fixed a Discord chat issue

DiscordPlugin#61
This commit is contained in:
Norbi Peti 2018-10-24 00:08:03 +02:00
parent 775789a451
commit e6ada0b2d0
No known key found for this signature in database
GPG key ID: DBA4C4549A927E56

View file

@ -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;
}
}