From 64529eef732775a1251a3314dd9dcc1f7f6cdf60 Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Sun, 11 Dec 2016 00:02:51 +0100 Subject: [PATCH] Added support for branches in UpdatePlugin https://github.com/TBMCPlugins/ButtonCore/issues/23 lmao --- .../buttondevteam/chat/commands/ucmds/admin/UpdatePlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/buttondevteam/chat/commands/ucmds/admin/UpdatePlugin.java b/src/main/java/buttondevteam/chat/commands/ucmds/admin/UpdatePlugin.java index 057af1a..e90f40b 100644 --- a/src/main/java/buttondevteam/chat/commands/ucmds/admin/UpdatePlugin.java +++ b/src/main/java/buttondevteam/chat/commands/ucmds/admin/UpdatePlugin.java @@ -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; }