Skip to content

Commit

Permalink
Welcome message improved
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertoRutigliano committed Jun 10, 2024
1 parent 07d762c commit f223310
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/java/lar/minecraft/hg/managers/PlayerManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void onPlayerJoin(PlayerJoinEvent event) {
// Set player gamemode, send welcome message and give instructions book
player.setGameMode(GameMode.ADVENTURE);
player.playSound(player, Sound.BLOCK_END_PORTAL_FRAME_FILL, 10.0f, 1.0f);
player.sendMessage(MessageUtils.getMessage(MessageKey.welcome_message));
player.sendMessage(MessageUtils.getMessage(MessageKey.welcome_message, player.getDisplayName()));
player.getInventory().addItem(ServerManager.getGameInstructionsBook());

// Check if the player is the winner of the last match or he is premium and create PlayerExtra to track it
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/messages.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Use this site to color code generator: https://minecraftitemids.com/color-codes#generator
welcome_message: "Choose a class and prepare to fight!"
welcome_message: "&7Welcome {0}. Choose a class and prepare to &cfight&7!"
current_phase: "&7Current phase is &6{0}"
class_selection_lobby: "Class selection is available only in lobby"
class_selected:
Expand All @@ -10,8 +10,8 @@ class_wrong: "&7There's no &6&m{0}&7 class"
class_premium: "&7You must have won last match or be &6premium &7to use this class!"
class_not_selected: "&7Class selection is only available before starting the game"
class_instructions: "&0/class &6{0}"
class_instructions_premium: "&c PREMIUM CLASS"
class_instructions_materials: "&7 -{1} x {0}"
class_instructions_premium: "&cPREMIUM CLASS"
class_instructions_materials: "&7 - {1} x {0}"
class_instructions_select: "Click to select class"
supply_drop_alert: "&fA &6supply drop chest &fwill be spawned in &6{0} &fseconds"
supply_drop: "&7Supply chest dropped at XYZ:&2&o {0} / {1} / {2}"
Expand Down

0 comments on commit f223310

Please sign in to comment.