Added automatic plugin updater and a few smaller changes #21

Merged
NorbiPeti merged 11 commits from dev into master 2016-12-22 22:37:25 +00:00
Showing only changes of commit 6151fa0de9 - Show all commits

View file

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