mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-11-05 01:59:46 +01:00
Hide SeeChunk effect for dead players.
This commit is contained in:
parent
8630ae8ed3
commit
7061027fc0
@ -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<Location> locations = getLocations(player, steps, step);
|
||||
for (Location location : locations)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user