diff --git a/src/main/java/me/lrxh/practice/match/Match.java b/src/main/java/me/lrxh/practice/match/Match.java index 1767878..051c8ba 100644 --- a/src/main/java/me/lrxh/practice/match/Match.java +++ b/src/main/java/me/lrxh/practice/match/Match.java @@ -418,9 +418,12 @@ public void respawn(UUID playerUUID) { public void run() { if (countdown > 0) { player.sendMessage(Locale.MATCH_RESPAWN_TIMER.format(player, countdown)); + player.playSound(player.getLocation(), Sound.NOTE_PLING, 10, 1); countdown--; } else { + showPlayer(playerUUID); player.sendMessage(Locale.MATCH_RESPAWNED.format(player)); + player.playSound(player.getLocation(), Sound.ORB_PICKUP, 10, 1); player.setAllowFlight(false); player.setFlying(false); boolean aTeam = getParticipantA().containsPlayer(player.getUniqueId()); @@ -429,7 +432,6 @@ public void run() { player.getInventory().setArmorContents(InventoryUtil.color(gamePlayer.getKitLoadout().getArmor(), aTeam ? Color.RED : Color.BLUE).toArray(new ItemStack[0])); player.getInventory().setContents(gamePlayer.getKitLoadout().getContents()); player.setGameMode(GameMode.SURVIVAL); - showPlayer(playerUUID); gamePlayer.setRespawned(false); this.cancel(); } diff --git a/src/main/java/me/lrxh/practice/match/MatchListener.java b/src/main/java/me/lrxh/practice/match/MatchListener.java index 4dec1cc..8d3270b 100644 --- a/src/main/java/me/lrxh/practice/match/MatchListener.java +++ b/src/main/java/me/lrxh/practice/match/MatchListener.java @@ -146,8 +146,8 @@ public void onBlockBreakEvent(BlockBreakEvent event) { return; } - match.broadcast(Locale.MATCH_BED_BROKEN.format(player, aTeam ? CC.translate("&cRed") : CC.translate("&9Blue"), - aTeam ? CC.translate("&c" + player.getName()) : CC.translate("&9" + player.getName()))); + match.broadcast(Locale.MATCH_BED_BROKEN.format(player, aTeam ? CC.translate("&9Blue") : CC.translate("&cRed"), + aTeam ? CC.translate("&9" + player.getName()) : CC.translate("&c" + player.getName()))); } if (match.getKit().getGameRules().isBuild() && match.getState() == MatchState.PLAYING_ROUND) {