Made "commands.bentobox.reload.addon" use [name] text variable

This commit is contained in:
Florian CUNY 2019-05-12 13:50:00 +02:00
parent 3172cd098a
commit fa49e8b3b2
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ public class BentoBoxReloadCommand extends ConfirmableCommand {
}
this.askConfirmation(user, () -> {
user.sendMessage("commands.bentobox.reload.addon", TextVariables.DESCRIPTION, addon.get().getDescription().getName());
user.sendMessage("commands.bentobox.reload.addon", TextVariables.NAME, addon.get().getDescription().getName());
addon.ifPresent(getPlugin().getAddonsManager()::reloadAddon);
user.sendMessage("commands.bentobox.reload.addon-reloaded", TextVariables.NAME, addon.get().getDescription().getName());
});

View File

@ -258,7 +258,7 @@ commands:
locales-reloaded: "&2Languages reloaded."
addons-reloaded: "&2Addons reloaded."
settings-reloaded: "&2Settings reloaded."
addon: "&6Reloading [description]"
addon: "&6Reloading &b[name]&2."
addon-reloaded: "&b[name] &2reloaded."
unknown-addon: "&2Unknown addon!"
version: