2026-05-23 21:06:30 +00:00
package com.alttd.hunger_games.config ;
2026-05-23 22:13:25 +00:00
import org.jetbrains.annotations.NotNull ;
2026-05-23 21:06:30 +00:00
import java.io.File ;
public class Messages extends AbstractConfig {
static Messages config ;
Messages ( ) {
super (
new File ( File . separator
+ " mnt " + File . separator
+ " configs " + File . separator
+ " HungerGames " ) ,
" messages.yml " ) ;
}
public static void reload ( ) {
config = new Messages ( ) ;
config . readConfig ( Messages . class , null ) ;
}
public static class HELP {
private static final String prefix = " help. " ;
public static String HELP_MESSAGE_WRAPPER = " <gold>HungerGames help: \ n<commands></gold> " ;
public static String HELP_MESSAGE = " <green>Show this menu: <gold>/hg help</gold></green> " ;
2026-05-23 22:13:25 +00:00
public static String ROUND_STATE = " <green>Show the current round state: <gold>/hg roundstate</gold></green> " ;
public static String REGISTER = " <green>Register a player for the game: <gold>/hg register <player></gold></green> " ;
2026-05-23 23:30:11 +00:00
public static String START_ROUND = " <green>Start the game: <gold>/hg start</gold></green> " ;
2026-06-22 00:22:02 +00:00
public static String NEXT_PHASE = " <green>Skip to the next phase/stage: <gold>/hg nextphase</gold></green> " ;
2026-05-30 17:57:02 +00:00
public static String RELOAD = " <green>Reload config and messages: <gold>/hg reload</gold></green> " ;
2026-06-15 20:37:16 +00:00
public static String STUCK = " <green>Teleport to safety if stuck: <gold>/hg stuck</gold></green> " ;
2026-06-15 20:56:27 +00:00
public static String STATS = " <green>Show player stats: <gold>/hg stats [player]</gold></green> " ;
2026-06-22 00:22:02 +00:00
public static String END_ROUND = " <green>End the game: <gold>/hg end</gold></green> " ;
2026-05-23 21:06:30 +00:00
@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 ) ;
2026-05-23 22:13:25 +00:00
ROUND_STATE = config . getString ( prefix , " round-state " , ROUND_STATE ) ;
REGISTER = config . getString ( prefix , " register " , REGISTER ) ;
2026-05-23 23:30:11 +00:00
START_ROUND = config . getString ( prefix , " start " , START_ROUND ) ;
2026-06-22 00:22:02 +00:00
NEXT_PHASE = config . getString ( prefix , " next-phase " , NEXT_PHASE ) ;
2026-05-30 17:57:02 +00:00
RELOAD = config . getString ( prefix , " reload " , RELOAD ) ;
2026-06-15 20:37:16 +00:00
STUCK = config . getString ( prefix , " stuck " , STUCK ) ;
2026-06-15 20:56:27 +00:00
STATS = config . getString ( prefix , " stats " , STATS ) ;
2026-06-22 00:22:02 +00:00
END_ROUND = config . getString ( prefix , " end-round " , END_ROUND ) ;
2026-05-23 21:06:30 +00:00
}
}
public static class GENERIC {
private static final String prefix = " generic. " ;
public static String NO_PERMISSION = " <red><hover:show_text:'<red><permission></red>'>You don't have permission for this command</hover></red> " ;
public static String PLAYER_ONLY = " <red>This command can only be executed as a player</red> " ;
public static String PLAYER_NOT_FOUND = " <red>Unable to find online player <player></red> " ;
2026-05-30 17:57:02 +00:00
public static String RELOAD_SUCCESS = " <green>Config and messages have been reloaded.</green> " ;
2026-07-05 21:19:49 +00:00
public static String COMMAND_BLOCKED = " <red>You cannot use that command here!</red> " ;
2026-05-23 21:06:30 +00:00
@SuppressWarnings ( " unused " )
private static void load ( ) {
NO_PERMISSION = config . getString ( prefix , " no-permission " , NO_PERMISSION ) ;
PLAYER_ONLY = config . getString ( prefix , " player-only " , PLAYER_ONLY ) ;
PLAYER_NOT_FOUND = config . getString ( prefix , " player-only " , PLAYER_NOT_FOUND ) ;
2026-05-30 17:57:02 +00:00
RELOAD_SUCCESS = config . getString ( prefix , " reload-success " , RELOAD_SUCCESS ) ;
2026-07-05 21:19:49 +00:00
COMMAND_BLOCKED = config . getString ( prefix , " command-blocked " , COMMAND_BLOCKED ) ;
2026-05-23 21:06:30 +00:00
}
}
2026-05-23 22:13:25 +00:00
public static class ROUND_STATE {
private static final String prefix = " round-state. " ;
2026-05-30 18:02:59 +00:00
public static String ROUND_STATE = " <green>Current round state is: <gold><round_state></gold></green> " ;
2026-05-23 22:13:25 +00:00
@SuppressWarnings ( " unused " )
private static void load ( ) {
ROUND_STATE = config . getString ( prefix , " round-state " , ROUND_STATE ) ;
}
}
2026-05-31 14:40:16 +00:00
public static class GAME {
private static final String prefix = " game. " ;
2026-05-31 15:59:27 +00:00
public static String WARMUP = " <gold>The Hunger Games are starting soon! Get ready!</gold> " ;
public static String STARTED = " <green><bold>The Hunger Games has begun! Good luck!</bold></green> " ;
2026-05-31 14:40:16 +00:00
public static String BORDER_SHRINK = " <red>The border is shrinking to <size> blocks!</red> " ;
2026-06-15 20:13:51 +00:00
public static String CHEST_EMPTY = " <red>This chest is empty!</red> " ;
2026-06-15 21:17:47 +00:00
public static String WINNER = " <gold><player> has won the Hunger Games!</gold> " ;
2026-06-15 21:26:04 +00:00
public static String PLAYER_DEATH = " <red><player> has died! <gold><remaining></gold> players remaining.</red> " ;
2026-05-31 14:40:16 +00:00
2026-06-22 00:02:42 +00:00
public static String BOSSBAR_COUNTDOWN = " <gold>Loot phase in <time></gold> " ;
2026-07-05 21:42:20 +00:00
public static String BOSSBAR_PVP_COUNTDOWN = " <green>PVP starts in <time></green> " ;
2026-06-27 22:32:32 +00:00
public static String BOSSBAR_SAFE_PHASE = " <green>Border shrinking in <time></green> " ;
public static String BOSSBAR_KILL_PHASE = " <red>Border shrinking... <time></red> " ;
2026-06-22 00:02:42 +00:00
public static String BOSSBAR_FINALE = " <gold>Remaining Players: <remaining></gold> " ;
2026-06-22 00:22:02 +00:00
public static String NEXT_STATE = " <gold>Starting <round>!</gold> " ;
2026-05-31 14:40:16 +00:00
@SuppressWarnings ( " unused " )
private static void load ( ) {
WARMUP = config . getString ( prefix , " warmup " , WARMUP ) ;
STARTED = config . getString ( prefix , " started " , STARTED ) ;
BORDER_SHRINK = config . getString ( prefix , " border-shrink " , BORDER_SHRINK ) ;
2026-06-15 20:13:51 +00:00
CHEST_EMPTY = config . getString ( prefix , " chest-empty " , CHEST_EMPTY ) ;
2026-06-15 21:17:47 +00:00
WINNER = config . getString ( prefix , " winner " , WINNER ) ;
2026-06-15 21:26:04 +00:00
PLAYER_DEATH = config . getString ( prefix , " player-death " , PLAYER_DEATH ) ;
2026-06-22 00:02:42 +00:00
BOSSBAR_COUNTDOWN = config . getString ( prefix , " bossbar-countdown " , BOSSBAR_COUNTDOWN ) ;
2026-07-05 21:42:20 +00:00
BOSSBAR_PVP_COUNTDOWN = config . getString ( prefix , " bossbar-pvp-countdown " , BOSSBAR_PVP_COUNTDOWN ) ;
2026-06-27 22:32:32 +00:00
BOSSBAR_SAFE_PHASE = config . getString ( prefix , " bossbar-border-shrinking-in " , BOSSBAR_SAFE_PHASE ) ;
BOSSBAR_KILL_PHASE = config . getString ( prefix , " bossbar-border-shrinking " , BOSSBAR_KILL_PHASE ) ;
2026-06-22 00:02:42 +00:00
BOSSBAR_FINALE = config . getString ( prefix , " bossbar-finale " , BOSSBAR_FINALE ) ;
2026-06-22 00:22:02 +00:00
NEXT_STATE = config . getString ( prefix , " next-state " , NEXT_STATE ) ;
2026-06-15 21:26:04 +00:00
}
}
public static class START_ROUND {
private static final String prefix = " start-round. " ;
public static String CAN_NOT_START_ROUND = " <red>Unable to start the round, current state is <round_state></red> " ;
@SuppressWarnings ( " unused " )
private static void load ( ) {
CAN_NOT_START_ROUND = config . getString ( prefix , " can-not-start " , CAN_NOT_START_ROUND ) ;
2026-05-31 14:40:16 +00:00
}
}
2026-05-24 15:04:50 +00:00
public static class RECONNECT {
private static final String prefix = " reconnect. " ;
public static String FORFEITED = " <red>You disconnected during the round and have forfeited the game. You are now spectating.</red> " ;
@SuppressWarnings ( " unused " )
private static void load ( ) {
FORFEITED = config . getString ( prefix , " forfeited " , FORFEITED ) ;
}
}
2026-05-23 22:13:25 +00:00
public static class REGISTER {
private static final String prefix = " register. " ;
public static String FAILED_TO_REGISTER_YOU = " <red>You were unable to join HungerGames because no HungerGames round was found</red> " ;
public static String FAILED_TO_REGISTER_PLAYER = " <red>Unable to register player <player></red> " ;
2026-05-23 22:58:27 +00:00
public static String PLAYER_REGISTERED = " <green>Registered <player> for the game</green> " ;
public static String PLAYER_SPECTATING = " <yellow><player> is now spectating the game</yellow> " ;
public static String SUCCESSFUL_REGISTER = " <green>Successfully registered you for the upcoming Hunger Games round</green> " ;
public static String GAME_RUNNING = " <yellow>The game is currently running, you will need to spectate the current round</yellow> " ;
2026-05-23 22:13:25 +00:00
@SuppressWarnings ( " unused " )
private static void load ( ) {
FAILED_TO_REGISTER_YOU = config . getString ( prefix , " failed " , FAILED_TO_REGISTER_YOU ) ;
FAILED_TO_REGISTER_PLAYER = config . getString ( prefix , " failed-player " , FAILED_TO_REGISTER_PLAYER ) ;
2026-05-23 22:58:27 +00:00
PLAYER_REGISTERED = config . getString ( prefix , " player-registered " , PLAYER_REGISTERED ) ;
PLAYER_SPECTATING = config . getString ( prefix , " player-spectating " , PLAYER_SPECTATING ) ;
SUCCESSFUL_REGISTER = config . getString ( prefix , " successful " , SUCCESSFUL_REGISTER ) ;
GAME_RUNNING = config . getString ( prefix , " game-running " , GAME_RUNNING ) ;
2026-05-23 22:13:25 +00:00
}
}
2026-05-31 14:40:16 +00:00
2026-06-15 20:37:16 +00:00
public static class STUCK {
private static final String prefix = " stuck. " ;
public static String TELEPORTED = " <green>You have been teleported to safety!</green> " ;
public static String TOO_LOW = " <red>You are too low to use this command (minimum height: <height>). If you are truly stuck here dm a staff member for help</red> " ;
public static String NO_SAFE_LOCATION = " <red>Unable to find a safe grass block nearby</red> " ;
public static String ON_COOLDOWN = " <red>You must wait <time> before using this command again</red> " ;
2026-06-15 20:45:06 +00:00
public static String WARMUP_STARTED = " <green>Teleporting in <time>. Do not move or take damage!</green> " ;
public static String WARMUP_CANCELLED_MOVEMENT = " <red>Teleportation cancelled due to movement.</red> " ;
public static String WARMUP_CANCELLED_DAMAGE = " <red>Teleportation cancelled due to taking damage.</red> " ;
public static String ALREADY_WARMING_UP = " <red>You are already warming up!</red> " ;
2026-05-31 14:40:16 +00:00
@SuppressWarnings ( " unused " )
private static void load ( ) {
2026-06-15 20:37:16 +00:00
TELEPORTED = config . getString ( prefix , " teleported " , TELEPORTED ) ;
TOO_LOW = config . getString ( prefix , " too-low " , TOO_LOW ) ;
NO_SAFE_LOCATION = config . getString ( prefix , " no-safe-location " , NO_SAFE_LOCATION ) ;
ON_COOLDOWN = config . getString ( prefix , " on-cooldown " , ON_COOLDOWN ) ;
2026-06-15 20:45:06 +00:00
WARMUP_STARTED = config . getString ( prefix , " warmup-started " , WARMUP_STARTED ) ;
WARMUP_CANCELLED_MOVEMENT = config . getString ( prefix , " warmup-cancelled-movement " , WARMUP_CANCELLED_MOVEMENT ) ;
WARMUP_CANCELLED_DAMAGE = config . getString ( prefix , " warmup-cancelled-damage " , WARMUP_CANCELLED_DAMAGE ) ;
ALREADY_WARMING_UP = config . getString ( prefix , " already-warming-up " , ALREADY_WARMING_UP ) ;
2026-05-31 14:40:16 +00:00
}
}
2026-06-15 20:56:27 +00:00
public static class STATS {
private static final String prefix = " stats. " ;
2026-06-15 21:29:28 +00:00
public static String STATS_FORMAT = """
< gold > Stats for < player > : < / gold >
< green > Kills : < gold > < kills > < / gold > < / green >
< green > Deaths : < gold > < deaths > < / gold > < / green >
< green > Damage Dealt : < gold > < damage_dealt > < / gold > < / green >
< green > Damage Taken : < gold > < damage_taken > < / gold > < / green >
< green > Wins : < gold > < wins > < / gold > < / green >
< green > Rounds Played : < gold > < rounds_played > < / gold > < / green >
< green > K / D Ratio : < gold > < kd_ratio > < / gold > < / green > " " " ;
2026-06-15 20:56:27 +00:00
@SuppressWarnings ( " unused " )
private static void load ( ) {
STATS_FORMAT = config . getString ( prefix , " format " , STATS_FORMAT ) ;
}
}
2026-07-05 21:42:20 +00:00
public static class COMMANDS {
private static final String prefix = " commands. " ;
public static String NEXT_PHASE_SUCCESS = " <green>Skipping to the next phase/stage.</green> " ;
@SuppressWarnings ( " unused " )
private static void load ( ) {
NEXT_PHASE_SUCCESS = config . getString ( prefix + " next-phase " , " success " , NEXT_PHASE_SUCCESS ) ;
}
}
2026-05-23 21:06:30 +00:00
}