From 7061027fc041278a83673be60bf79856be6e9493 Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Wed, 8 Oct 2014 09:56:23 +0200 Subject: [PATCH] Hide SeeChunk effect for dead players. --- .../com/massivecraft/factions/engine/EngineSeeChunk.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/massivecraft/factions/engine/EngineSeeChunk.java b/src/main/java/com/massivecraft/factions/engine/EngineSeeChunk.java index 59b8e8bd..a8bca6f8 100644 --- a/src/main/java/com/massivecraft/factions/engine/EngineSeeChunk.java +++ b/src/main/java/com/massivecraft/factions/engine/EngineSeeChunk.java @@ -101,9 +101,14 @@ public class EngineSeeChunk extends EngineAbstract // For each player for (Player player : Bukkit.getOnlinePlayers()) { + // Hide for dead players since the death screen looks better without. + if (player.isDead()) continue; + + // The player must obviously have the feature activated. MPlayer mplayer = MPlayer.get(player); if ( ! mplayer.isSeeingChunk()) continue; + // Calculate locations and play the effect there. List locations = getLocations(player, steps, step); for (Location location : locations) {