implemented hideifspectator switch, still need to test fabric/forge
This commit is contained in:
parent
c093a95bc0
commit
030a0e1d24
23 changed files with 178 additions and 74 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue