Added important parenthesis

This commit is contained in:
Norbi Peti 2017-07-13 12:56:43 +02:00
parent 65527c8c19
commit 11ecabe325

View file

@ -255,8 +255,8 @@ public class DiscordPlugin extends JavaPlugin implements IListener<ReadyEvent> {
try {
if (channel == chatchannel)
MCChatListener.resetLastMessage(); // If this is a chat message, it'll be set again
final String content = TBMCCoreAPI.IsTestServer() && channel != chatchannel || channel == botroomchannel // Both are the same for testing
|| channel.isPrivate() //
final String content = TBMCCoreAPI.IsTestServer() && (channel != chatchannel || channel == botroomchannel // Both are the same for testing
|| channel.isPrivate()) //
? "*The following message is from a test server*\n" + message : message;
return perform(
() -> embed == null ? channel.sendMessage(content) : channel.sendMessage(content, embed, false));