From fc7f0ecb3cfc2867ddfda9746e7e602c810e7a15 Mon Sep 17 00:00:00 2001 From: Teriuihi Date: Sat, 17 May 2025 20:22:59 +0200 Subject: [PATCH] Added missing reload command message to configuration The reload command message was added to the Messages. --- .../com/alttd/hunger_games/commands/subcommands/Reload.java | 1 + src/main/java/com/alttd/hunger_games/config/Messages.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/main/java/com/alttd/hunger_games/commands/subcommands/Reload.java b/src/main/java/com/alttd/hunger_games/commands/subcommands/Reload.java index 8ce5a42..6a61e65 100644 --- a/src/main/java/com/alttd/hunger_games/commands/subcommands/Reload.java +++ b/src/main/java/com/alttd/hunger_games/commands/subcommands/Reload.java @@ -2,6 +2,7 @@ package com.alttd.hunger_games.commands.subcommands; import com.alttd.hunger_games.Main; import com.alttd.hunger_games.commands.SubCommand; +import com.alttd.hunger_games.config.Messages; import lombok.AllArgsConstructor; import org.bukkit.command.CommandSender; diff --git a/src/main/java/com/alttd/hunger_games/config/Messages.java b/src/main/java/com/alttd/hunger_games/config/Messages.java index b9f3a63..cf44434 100644 --- a/src/main/java/com/alttd/hunger_games/config/Messages.java +++ b/src/main/java/com/alttd/hunger_games/config/Messages.java @@ -22,11 +22,13 @@ public class Messages extends AbstractConfig { public static String HELP_MESSAGE_WRAPPER = "Main help:\n"; public static String HELP_MESSAGE = "Show this menu: /hg help"; + public static String RELOAD = "Reload the config: /hg reload"; @SuppressWarnings("unused") private static void load() { HELP_MESSAGE_WRAPPER = config.getString(prefix, "help-wrapper", HELP_MESSAGE_WRAPPER); HELP_MESSAGE = config.getString(prefix, "help", HELP_MESSAGE); + RELOAD = config.getString(prefix, "reload", RELOAD); } }