Added extra parenthesis
This commit is contained in:
parent
bf33c55205
commit
9269e0fb19
1 changed files with 7 additions and 2 deletions
|
@ -21,8 +21,13 @@ public class AutoUpdaterListener implements IListener<MessageReceivedEvent> {
|
|||
return;
|
||||
String branch = title.substring(title.indexOf(':') + 1, title.indexOf(']'));
|
||||
String project = title.substring(title.indexOf('[') + 1, title.indexOf(':'));
|
||||
if (branch.equals("master") || (TBMCCoreAPI.IsTestServer() && branch.equals("dev"))
|
||||
&& TBMCCoreAPI.UpdatePlugin(project, new DiscordSender(null, TBMCCoreAPI.IsTestServer()?DiscordPlugin.chatchannel:DiscordPlugin.coffeechannel), branch)
|
||||
if ((branch.equals("master") || (TBMCCoreAPI.IsTestServer() && branch.equals("dev")))
|
||||
&& TBMCCoreAPI.UpdatePlugin(project,
|
||||
new DiscordSender(null,
|
||||
TBMCCoreAPI.IsTestServer() //
|
||||
? DiscordPlugin.chatchannel //
|
||||
: DiscordPlugin.coffeechannel),
|
||||
branch)
|
||||
&& (!TBMCCoreAPI.IsTestServer() || !branch.equals("master")))
|
||||
try {
|
||||
event.getMessage().addReaction(DiscordPlugin.DELIVERED_REACTION);
|
||||
|
|
Loading…
Reference in a new issue