Added support for branches in UpdatePlugin

https://github.com/TBMCPlugins/ButtonCore/issues/23
lmao
This commit is contained in:
Norbi Peti 2016-12-11 00:02:51 +01:00
parent 9c06e22ca7
commit 64529eef73

View file

@ -33,7 +33,7 @@ public class UpdatePlugin extends AdminCommandBase {
return true;
} else {
Bukkit.getScheduler().runTaskAsynchronously(PluginMain.Instance, () -> {
TBMCCoreAPI.UpdatePlugin(args[0], sender);
TBMCCoreAPI.UpdatePlugin(args[0], sender, args.length == 1 ? "master" : args[1]);
});
return true;
}