mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-28 05:35:44 +01:00
Shows plugin version in version command.
https://github.com/BentoBoxWorld/bentobox/issues/285
This commit is contained in:
parent
b83e5d4a56
commit
7515b39583
@ -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");
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user