mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-28 05:35:44 +01:00
Report addon version in admin version command.
https://github.com/BentoBoxWorld/bentobox/issues/374
This commit is contained in:
parent
d266deb790
commit
7a888fce95
@ -3,6 +3,7 @@ package world.bentobox.bentobox.api.commands.admin;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import world.bentobox.bentobox.api.commands.CompositeCommand;
|
import world.bentobox.bentobox.api.commands.CompositeCommand;
|
||||||
|
import world.bentobox.bentobox.api.localization.TextVariables;
|
||||||
import world.bentobox.bentobox.api.user.User;
|
import world.bentobox.bentobox.api.user.User;
|
||||||
|
|
||||||
public class AdminVersionCommand extends CompositeCommand {
|
public class AdminVersionCommand extends CompositeCommand {
|
||||||
@ -20,7 +21,9 @@ public class AdminVersionCommand extends CompositeCommand {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean execute(User user, String label, List<String> args) {
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user