Added support for branches in UpdatePlugin
https://github.com/TBMCPlugins/ButtonCore/issues/23 lmao
This commit is contained in:
parent
9c06e22ca7
commit
64529eef73
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ public class UpdatePlugin extends AdminCommandBase {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
Bukkit.getScheduler().runTaskAsynchronously(PluginMain.Instance, () -> {
|
Bukkit.getScheduler().runTaskAsynchronously(PluginMain.Instance, () -> {
|
||||||
TBMCCoreAPI.UpdatePlugin(args[0], sender);
|
TBMCCoreAPI.UpdatePlugin(args[0], sender, args.length == 1 ? "master" : args[1]);
|
||||||
});
|
});
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue