Applied plugin updater changes

This commit is contained in:
Norbi Peti 2016-11-12 21:05:08 +01:00
parent c534a45b73
commit e356a401e2

View file

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