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 {
|
} else {
|
||||||
sender.sendMessage("Updating plugin...");
|
sender.sendMessage("Updating plugin...");
|
||||||
Bukkit.getScheduler().runTaskAsynchronously(PluginMain.Instance, () -> {
|
Bukkit.getScheduler().runTaskAsynchronously(PluginMain.Instance, () -> {
|
||||||
String ret = "";
|
TBMCCoreAPI.UpdatePlugin(args[0], sender);
|
||||||
if ((ret = TBMCCoreAPI.UpdatePlugin(args[0])).length() > 0)
|
|
||||||
sender.sendMessage(ret);
|
|
||||||
else
|
|
||||||
sender.sendMessage("Updating done!");
|
|
||||||
});
|
});
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue