implemented hide if spectator

This commit is contained in:
Jurgen 2023-09-03 12:37:58 +02:00
parent 7ed6728e34
commit c093a95bc0
21 changed files with 104 additions and 69 deletions

View file

@ -1293,10 +1293,12 @@ public class DynmapPlugin
}
@Override
public boolean isInvisible() {
if(player != null) {
return player.isInvisible();
}
return false;
if(player != null) {
if (player.isSpectator())
return true;
else return player.isInvisible();
}
return false;
}
@Override
public int getSortWeight() {