From 443cab6df5c8ab38b69024be9fe49719e96c885f Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 25 Mar 2020 14:27:48 +0100 Subject: [PATCH] Remove "normal" from usage of create command --- .../java/de/epiceric/shopchest/command/ShopTabCompleter.java | 3 +-- .../java/de/epiceric/shopchest/language/LanguageUtils.java | 2 +- src/main/resources/lang/de_DE-legacy.lang | 2 +- src/main/resources/lang/de_DE.lang | 2 +- src/main/resources/lang/en_US-legacy.lang | 2 +- src/main/resources/lang/en_US.lang | 2 +- 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/main/java/de/epiceric/shopchest/command/ShopTabCompleter.java b/src/main/java/de/epiceric/shopchest/command/ShopTabCompleter.java index 48f0f7f..ec438d1 100644 --- a/src/main/java/de/epiceric/shopchest/command/ShopTabCompleter.java +++ b/src/main/java/de/epiceric/shopchest/command/ShopTabCompleter.java @@ -16,7 +16,6 @@ import de.epiceric.shopchest.ShopChest; import de.epiceric.shopchest.config.Config; class ShopTabCompleter implements TabCompleter { - private ShopChest plugin; ShopTabCompleter(ShopChest plugin) { @@ -27,7 +26,7 @@ class ShopTabCompleter implements TabCompleter { public List onTabComplete(CommandSender sender, Command command, String label, String[] args) { if (command.getName().equalsIgnoreCase(Config.mainCommandName)) { - List createSubCommands = Arrays.asList("admin", "normal"); + List createSubCommands = Arrays.asList("admin"); List configSubCommands = Arrays.asList("add", "remove", "set"); List areaShopRemoveEvents = Arrays.asList("DELETE", "RESELL", "SELL", "UNRENT"); List townyShopPlots = Arrays.asList("ARENA", "COMMERCIAL", "EMBASSY", "FARM", "INN", "JAIL", "RESIDENTIAL", "SPLEEF", "WILDS"); diff --git a/src/main/java/de/epiceric/shopchest/language/LanguageUtils.java b/src/main/java/de/epiceric/shopchest/language/LanguageUtils.java index 3c0d683..70ee565 100644 --- a/src/main/java/de/epiceric/shopchest/language/LanguageUtils.java +++ b/src/main/java/de/epiceric/shopchest/language/LanguageUtils.java @@ -2265,7 +2265,7 @@ public class LanguageUtils { messages.add(new LocalizedMessage(Message.COMMAND_DESC_HEADER, langConfig.getString("message.commandDescription.header", "&6==== &c/%COMMAND% &6Help"))); messages.add(new LocalizedMessage(Message.COMMAND_DESC_FOOTER, langConfig.getString("message.commandDescription.footer", "&6==== End"))); messages.add(new LocalizedMessage(Message.COMMAND_DESC_CREATE, langConfig.getString("message.commandDescription.create", "&a/%COMMAND% create - Create a shop."))); - messages.add(new LocalizedMessage(Message.COMMAND_DESC_CREATE_ADMIN, langConfig.getString("message.commandDescription.create-admin", "&a/%COMMAND% create [normal|admin] - Create a shop."))); + messages.add(new LocalizedMessage(Message.COMMAND_DESC_CREATE_ADMIN, langConfig.getString("message.commandDescription.create-admin", "&a/%COMMAND% create [admin] - Create a shop."))); messages.add(new LocalizedMessage(Message.COMMAND_DESC_REMOVE, langConfig.getString("message.commandDescription.remove", "&a/%COMMAND% remove - Remove a shop."))); messages.add(new LocalizedMessage(Message.COMMAND_DESC_INFO, langConfig.getString("message.commandDescription.info", "&a/%COMMAND% info - Retrieve shop information."))); messages.add(new LocalizedMessage(Message.COMMAND_DESC_REMOVEALL, langConfig.getString("message.commandDescription.removeall", "&a/%COMMAND% removeall - Remove all shops of a player."))); diff --git a/src/main/resources/lang/de_DE-legacy.lang b/src/main/resources/lang/de_DE-legacy.lang index 34da71a..b739c4b 100644 --- a/src/main/resources/lang/de_DE-legacy.lang +++ b/src/main/resources/lang/de_DE-legacy.lang @@ -81,7 +81,7 @@ message.noPermission.extend-protected=&cDu hast keine Berechtigung diesen Shop n message.commandDescription.header=&6==== &c/%COMMAND% &6Hilfe message.commandDescription.footer=&6==== Ende message.commandDescription.create=&a/%COMMAND% create - Erstelle einen Shop. -message.commandDescription.create-admin=&a/%COMMAND% create [normal|admin] - Erstelle einen Shop. +message.commandDescription.create-admin=&a/%COMMAND% create [admin] - Erstelle einen Shop. message.commandDescription.remove=&a/%COMMAND% remove - Entferne einen Shop. message.commandDescription.info=&a/%COMMAND% info - Rufe Informationen über den Shop ab. message.commandDescription.removeall=&a/%COMMAND% removeall - Entferne alle Shops eines Spielers. diff --git a/src/main/resources/lang/de_DE.lang b/src/main/resources/lang/de_DE.lang index 88d2c1c..66c27a7 100644 --- a/src/main/resources/lang/de_DE.lang +++ b/src/main/resources/lang/de_DE.lang @@ -81,7 +81,7 @@ message.noPermission.extend-protected=&cDu hast keine Berechtigung diesen Shop n message.commandDescription.header=&6==== &c/%COMMAND% &6Hilfe message.commandDescription.footer=&6==== Ende message.commandDescription.create=&a/%COMMAND% create - Erstelle einen Shop. -message.commandDescription.create-admin=&a/%COMMAND% create [normal|admin] - Erstelle einen Shop. +message.commandDescription.create-admin=&a/%COMMAND% create [admin] - Erstelle einen Shop. message.commandDescription.remove=&a/%COMMAND% remove - Entferne einen Shop. message.commandDescription.info=&a/%COMMAND% info - Rufe Informationen über den Shop ab. message.commandDescription.removeall=&a/%COMMAND% removeall - Entferne alle Shops eines Spielers. diff --git a/src/main/resources/lang/en_US-legacy.lang b/src/main/resources/lang/en_US-legacy.lang index 00bd652..946cea0 100644 --- a/src/main/resources/lang/en_US-legacy.lang +++ b/src/main/resources/lang/en_US-legacy.lang @@ -292,7 +292,7 @@ message.commandDescription.create=&a/%COMMAND% create [normal|admin] - Create a shop. +message.commandDescription.create-admin=&a/%COMMAND% create [admin] - Create a shop. # Set the command description message for '/shop remove' when you type '/shop'. # Usable Placeholders: %COMMAND% diff --git a/src/main/resources/lang/en_US.lang b/src/main/resources/lang/en_US.lang index aa96fa3..22ed315 100644 --- a/src/main/resources/lang/en_US.lang +++ b/src/main/resources/lang/en_US.lang @@ -285,7 +285,7 @@ message.commandDescription.create=&a/%COMMAND% create [normal|admin] - Create a shop. +message.commandDescription.create-admin=&a/%COMMAND% create [admin] - Create a shop. # Set the command description message for '/shop remove' when you type '/shop'. # Usable Placeholders: %COMMAND%