Fix version command to show addon state.

This commit is contained in:
tastybento 2021-08-29 14:56:54 -07:00
parent 2607256c06
commit 44f06f2911

View File

@ -22,7 +22,7 @@ public class AdminVersionCommand extends CompositeCommand {
@Override
public boolean execute(User user, String label, List<String> args) {
user.sendMessage("commands.bentobox.version.addon-syntax", TextVariables.NAME, getAddon().getDescription().getName(),
TextVariables.VERSION, getAddon().getDescription().getVersion());
TextVariables.VERSION, getAddon().getDescription().getVersion(), "[state]", getAddon().getState().name());
return true;
}