mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-23 11:06:14 +01:00
Remove dead players from scoreboards.
This commit is contained in:
parent
aa77255b18
commit
bd1e1b879e
@ -461,6 +461,7 @@ public class ArenaListener
|
||||
Messenger.announce(arena, event.getDeathMessage());
|
||||
}
|
||||
event.setDeathMessage(null);
|
||||
arena.getScoreboard().death(player);
|
||||
arena.playerDeath(player);
|
||||
} else if (arena.inSpec(player)) {
|
||||
event.getDrops().clear();
|
||||
|
@ -56,6 +56,14 @@ public class ScoreboardManager {
|
||||
Score score = kills.getScore(player);
|
||||
score.setScore(score.getScore() + 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Signal a player death.
|
||||
* @param player a player
|
||||
*/
|
||||
void death(Player player) {
|
||||
scoreboard.resetScores(player);
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the scoreboard to display the given wave number.
|
||||
|
Loading…
Reference in New Issue
Block a user