Report addon version in admin version command.

https://github.com/BentoBoxWorld/bentobox/issues/374
This commit is contained in:
tastybento 2018-12-11 16:14:57 +09:00
parent d266deb790
commit 7a888fce95

View File

@ -3,6 +3,7 @@ package world.bentobox.bentobox.api.commands.admin;
import java.util.List;
import world.bentobox.bentobox.api.commands.CompositeCommand;
import world.bentobox.bentobox.api.localization.TextVariables;
import world.bentobox.bentobox.api.user.User;
public class AdminVersionCommand extends CompositeCommand {
@ -20,7 +21,9 @@ public class AdminVersionCommand extends CompositeCommand {
@Override
public boolean execute(User user, String label, List<String> args) {
return false;
user.sendMessage("commands.bentobox.version.addon-syntax", TextVariables.NAME, getAddon().getDescription().getName(),
TextVariables.VERSION, getAddon().getDescription().getVersion());
return true;
}
}