Skip to content

Commit 2519464

Browse files
committed
chore(message): improve message constant generation
1 parent a8b45f7 commit 2519464

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/net/theevilreaper/bounce/util/GameMessages.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ public class GameMessages extends Messages {
3030
private static final Component POINT_PART;
3131

3232
static {
33-
LEAVE_PART = withMini("<gray>left the game!");
34-
JOIN_PART = withMini("<gray>joined the game!");
33+
LEAVE_PART = withPrefix(Component.text("left the game!", NamedTextColor.GRAY));
34+
JOIN_PART = withPrefix(Component.text("joined the game!", NamedTextColor.GRAY));
3535

3636
NO_PROFILE = withPrefix(Component.text("You do not have a profile!", NamedTextColor.RED));
3737
INVALID_PLAYER_NAME = withPrefix(Component.text("Invalid player name!", NamedTextColor.RED));
3838
PLAYER_NOT_FOUND = withPrefix(Component.text("The provided player is not online!", NamedTextColor.RED));
3939
int forceStartTime = GameConfig.FORCE_START_TIME - 1;
40-
ALREADY_FORCE_STARTED = withMiniPrefix("<red>The game has already been force started!");
41-
PHASE_NOT_RUNNING = withMiniPrefix("<red>The lobby countdown is not running!");
40+
ALREADY_FORCE_STARTED = withPrefix(Component.text("Already have a profile!", NamedTextColor.RED));
41+
PHASE_NOT_RUNNING = withPrefix(Component.text("Phase not running!", NamedTextColor.RED));
4242
PHASE_FORCE_STARTED = withMiniPrefix("<gray>The timer has been set to <color:#09ff00><seconds></color> seconds!",
4343
TagResolver.builder().tag("seconds", (argumentQueue, context) -> Tag.preProcessParsed(String.valueOf(forceStartTime))).build());
4444

0 commit comments

Comments
 (0)