Shows plugin version in version command.

https://github.com/BentoBoxWorld/bentobox/issues/285
This commit is contained in:
tastybento 2018-10-05 17:57:11 -07:00
parent b83e5d4a56
commit 7515b39583
2 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,7 @@ public class BentoBoxVersionCommand extends CompositeCommand {
@Override
public boolean execute(User user, String label, List<String> args) {
user.sendMessage("commands.bentobox.version.plugin-version", TextVariables.NAME, getPlugin().getDescription().getVersion());
user.sendMessage("commands.bentobox.version.loaded-game-worlds");
getIWM().getOverWorldNames().forEach(n -> user.sendMessage("commands.bentobox.version.game-worlds", TextVariables.NAME, n));
user.sendMessage("commands.bentobox.version.loaded-addons");

View File

@ -179,6 +179,7 @@ commands:
description: "reloads all locale files"
locales-reloaded: "&2Languages reloaded"
version:
plugin-version: "&2Bentobox version: &3[name]"
description: "display info"
loaded-addons: "Loaded Add-Ons"
loaded-game-worlds: "Loaded Game Worlds"