Skip to content

Commit

Permalink
Simple bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Devlrxxh committed Apr 4, 2024
1 parent 7182ab8 commit c28e932
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/me/lrxh/practice/match/Match.java
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit c28e932

Please sign in to comment.