Applied plugin updater changes
This commit is contained in:
parent
c534a45b73
commit
e356a401e2
1 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue