Updated locale references in BentoBoxVersionCommand

This commit is contained in:
Florian CUNY 2018-08-11 16:05:02 +02:00
parent 406441fc1e
commit 8895cbf1a8

View File

@ -28,12 +28,12 @@ public class BentoBoxVersionCommand extends CompositeCommand {
@Override
public boolean execute(User user, String label, List<String> args) {
user.sendMessage("commands.bentobox.info.loaded-game-worlds");
getIWM().getOverWorldNames().forEach(n -> user.sendMessage("commands.bentobox.info.game-worlds", TextVariables.NAME, n));
user.sendMessage("commands.bentobox.info.loaded-addons");
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");
getPlugin().getAddonsManager()
.getAddons()
.forEach(a -> user.sendMessage("commands.bentobox.info.addon-syntax", TextVariables.NAME, a.getDescription().getName(),
.forEach(a -> user.sendMessage("commands.bentobox.version.addon-syntax", TextVariables.NAME, a.getDescription().getName(),
TextVariables.VERSION, a.getDescription().getVersion()));
return true;