implemented hideifspectator switch, still need to test fabric/forge

This commit is contained in:
Jurgen 2023-09-27 22:22:00 +02:00
parent c093a95bc0
commit 030a0e1d24
23 changed files with 178 additions and 74 deletions

View file

@ -1328,12 +1328,16 @@ public class DynmapPlugin
@Override
public boolean isInvisible() {
if(player != null) {
if (player.isSpectator())
return true;
else return player.isInvisible();
return player.isInvisible()
}
return false;
}
public boolean isSpectator() {
if(player != null) {return player.isSpectator()}
return false;
}
@Override
public int getSortWeight() {
Integer wt = sortWeights.get(getName());