Skip to content

Commit 7515b39

Browse files
committed
Shows plugin version in version command.
#285
1 parent b83e5d4 commit 7515b39

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/main/java/world/bentobox/bentobox/commands/BentoBoxVersionCommand.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public void setup() {
2828

2929
@Override
3030
public boolean execute(User user, String label, List<String> args) {
31+
user.sendMessage("commands.bentobox.version.plugin-version", TextVariables.NAME, getPlugin().getDescription().getVersion());
3132
user.sendMessage("commands.bentobox.version.loaded-game-worlds");
3233
getIWM().getOverWorldNames().forEach(n -> user.sendMessage("commands.bentobox.version.game-worlds", TextVariables.NAME, n));
3334
user.sendMessage("commands.bentobox.version.loaded-addons");

src/main/resources/locales/en-US.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ commands:
179179
description: "reloads all locale files"
180180
locales-reloaded: "&2Languages reloaded"
181181
version:
182+
plugin-version: "&2Bentobox version: &3[name]"
182183
description: "display info"
183184
loaded-addons: "Loaded Add-Ons"
184185
loaded-game-worlds: "Loaded Game Worlds"

0 commit comments

Comments
 (0)