From e356a401e25cce9c6dd5b44e3479b169489f2051 Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Sat, 12 Nov 2016 21:05:08 +0100 Subject: [PATCH] Applied plugin updater changes --- .../chat/commands/ucmds/admin/UpdatePlugin.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 7380820..055fbae 100644 --- a/src/main/java/buttondevteam/chat/commands/ucmds/admin/UpdatePlugin.java +++ b/src/main/java/buttondevteam/chat/commands/ucmds/admin/UpdatePlugin.java @@ -31,11 +31,7 @@ public class UpdatePlugin extends AdminCommandBase { } else { sender.sendMessage("Updating plugin..."); Bukkit.getScheduler().runTaskAsynchronously(PluginMain.Instance, () -> { - String ret = ""; - if ((ret = TBMCCoreAPI.UpdatePlugin(args[0])).length() > 0) - sender.sendMessage(ret); - else - sender.sendMessage("Updating done!"); + TBMCCoreAPI.UpdatePlugin(args[0], sender); }); return true; }