diff --git a/src/main/java/me/lrxh/practice/match/Match.java b/src/main/java/me/lrxh/practice/match/Match.java index ab874fe..5c0e6c8 100644 --- a/src/main/java/me/lrxh/practice/match/Match.java +++ b/src/main/java/me/lrxh/practice/match/Match.java @@ -369,7 +369,8 @@ public void respawn(UUID playerUUID) { gamePlayer.setRespawned(true); sendDeathMessage(player, PlayerUtil.getLastAttacker(player), false); - player.playSound(player.getLocation(), Sound.NOTE_PLING, 1.0f, 1); + + player.playSound(player.getLocation(), Sound.NOTE_PLING, 1.0f, 1.0f); player.addPotionEffect( new PotionEffect(PotionEffectType.WEAKNESS, Integer.MAX_VALUE, 0)); @@ -519,6 +520,7 @@ public void onDeath(Player dead) { Bukkit.getScheduler().runTaskLater(Practice.getInstance(), firework::detonate, 5L); break; } + killer.playSound(killer.getLocation(), Sound.EXPLODE, 1.0f, 1.0f); } // Store snapshot of player inventory and stats diff --git a/src/main/java/me/lrxh/practice/profile/ProfileListener.java b/src/main/java/me/lrxh/practice/profile/ProfileListener.java index 6ca5e42..1c34fe7 100644 --- a/src/main/java/me/lrxh/practice/profile/ProfileListener.java +++ b/src/main/java/me/lrxh/practice/profile/ProfileListener.java @@ -192,6 +192,7 @@ public void onPlayerQuitEvent(PlayerQuitEvent event) { if (profile.getMatch() != null) { profile.getMatch().sendDeathMessage(event.getPlayer(), null, false); profile.getMatch().end(); + profile.setMatch(null); } if (profile.getState().equals(ProfileState.QUEUEING)) {