mirror of
https://github.com/exituser/Brewery.git
synced 2026-09-17 07:49:03 +00:00
Change Command ConfigName -> ItemName
This commit is contained in:
@@ -1208,7 +1208,7 @@ public class ConfigUpdater {
|
||||
}
|
||||
}
|
||||
if (index != -1) {
|
||||
addLines(index + 1, "# With an item in your hand, use /brew configname to get its material for use in a recipe");
|
||||
addLines(index + 1, "# With an item in your hand, use /brew ItemName to get its material for use in a recipe");
|
||||
}
|
||||
if (P.use1_13) updateMaterialDescriptions(false);
|
||||
}
|
||||
|
||||
@@ -127,7 +127,7 @@ public class LanguageReader {
|
||||
defaults.put("Help_WakeupAdd", "&6/brew wakeup add &9Adds a wakeup point at your current position");
|
||||
defaults.put("Help_WakeupRemove", "&6/brew wakeup remove <id> &9Removes the wakeup point with <id>");
|
||||
defaults.put("Help_Reload", "&6/brew reload &9Reload config");
|
||||
defaults.put("Help_Configname", "&6/brew configname &9Display name of item in hand for the config");
|
||||
defaults.put("Help_Configname", "&6/brew ItemName &9Display name of item in hand for the config");
|
||||
defaults.put("Help_Persist", "&6/brew persist &9Make Brew persistent -> copyable by any plugin and technique");
|
||||
defaults.put("Help_Static", "&6/brew static &9Make Brew static -> No further ageing or distilling");
|
||||
defaults.put("Help_Create", "&6/brew create <Recipe> [Quality] [Player] &9Create a Brew with optional quality (1-10)");
|
||||
|
||||
@@ -43,10 +43,10 @@ public class CommandListener implements CommandExecutor {
|
||||
p.msg(sender, p.languageReader.get("Error_NoPermissions"));
|
||||
}
|
||||
|
||||
} else if (cmd.equalsIgnoreCase("configname")) {
|
||||
} else if (cmd.equalsIgnoreCase("configname") || cmd.equalsIgnoreCase("itemname")) {
|
||||
|
||||
if (sender.hasPermission("brewery.cmd.reload")) {
|
||||
cmdConfigName(sender);
|
||||
cmdItemName(sender);
|
||||
} else {
|
||||
p.msg(sender, p.languageReader.get("Error_NoPermissions"));
|
||||
}
|
||||
@@ -364,7 +364,7 @@ public class CommandListener implements CommandExecutor {
|
||||
|
||||
}
|
||||
|
||||
public void cmdConfigName(CommandSender sender) {
|
||||
public void cmdItemName(CommandSender sender) {
|
||||
if (sender instanceof Player) {
|
||||
|
||||
Player player = (Player) sender;
|
||||
|
||||
Reference in New Issue
Block a user