From dccdbaeb733151d3db8b56c0ebfe91310094de04 Mon Sep 17 00:00:00 2001 From: s809 <43530948+s809@users.noreply.github.com> Date: Thu, 2 Jan 2025 19:43:01 +0500 Subject: [PATCH] Rename serversideShortName to chatCommandName --- .../distanthorizons/common/commands/ConfigCommand.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/src/main/java/com/seibel/distanthorizons/common/commands/ConfigCommand.java b/common/src/main/java/com/seibel/distanthorizons/common/commands/ConfigCommand.java index 115c28b32..39815693d 100644 --- a/common/src/main/java/com/seibel/distanthorizons/common/commands/ConfigCommand.java +++ b/common/src/main/java/com/seibel/distanthorizons/common/commands/ConfigCommand.java @@ -51,24 +51,24 @@ public class ConfigCommand extends AbstractCommand //noinspection PatternVariableCanBeUsed ConfigEntry configEntry = (ConfigEntry) type; - if (configEntry.getServersideShortName() == null) + if (configEntry.getChatCommandName() == null) { continue; } - LiteralArgumentBuilder subcommand = literal(configEntry.getServersideShortName()) + LiteralArgumentBuilder subcommand = literal(configEntry.getChatCommandName()) .executes(commandContext -> this.sendSuccessResponse(commandContext, "\n" + - "Description of §l" + configEntry.getServersideShortName() + "§r:\n" + + "Description of §l" + configEntry.getChatCommandName() + "§r:\n" + "§o" + configEntry.getComment().trim() + "§r\n" + "§7Config file name: §f" + configEntry.name + "§7, category: §f" + configEntry.category + "\n" + "\n" + - "Current value of " + configEntry.getServersideShortName() + " is §n" + configEntry.get() + "§r" + "Current value of " + configEntry.getChatCommandName() + " is §n" + configEntry.get() + "§r" )); ToIntBiFunction, Object> updateConfigValue = (commandContext, value) -> { configEntry.set(value); - return this.sendSuccessResponse(commandContext, "Changed the value of ["+configEntry.getServersideShortName()+"] to ["+value+"]"); + return this.sendSuccessResponse(commandContext, "Changed the value of ["+configEntry.getChatCommandName()+"] to ["+value+"]"); }; // Enum type needs a special case since enums aren't represented by existing argument type