Made the updater use the chat channel
And fixed branch...
This commit is contained in:
parent
ab90f935fa
commit
6151fa0de9
1 changed files with 1 additions and 1 deletions
|
@ -21,6 +21,6 @@ public class AutoUpdaterListener implements IListener<MessageReceivedEvent> {
|
|||
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, DiscordPlugin.officechannel));
|
||||
TBMCCoreAPI.UpdatePlugin(project, new DiscordSender(null, DiscordPlugin.chatchannel), branch);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue