implemented hideifspectator switch, fully functional
This commit is contained in:
parent
0d15ee5a46
commit
bc0117ac5a
26 changed files with 64 additions and 3 deletions
|
|
@ -1332,12 +1332,13 @@ public class DynmapPlugin
|
|||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@override
|
||||
public boolean isSpectator() {
|
||||
if(player != null) {return player.isSpectator()}
|
||||
if(player != null) {
|
||||
return player.isSpectator()
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getSortWeight() {
|
||||
Integer wt = sortWeights.get(getName());
|
||||
|
|
|
|||
|
|
@ -68,6 +68,8 @@ components:
|
|||
# hideifundercover: 14
|
||||
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
||||
hideifsneaking: false
|
||||
# optional, if true, players that are in spectator mode will be hidden
|
||||
hideifspectator: false
|
||||
# If true, player positions/status is protected (login with ID with dynmap.playermarkers.seeall permission required for info other than self)
|
||||
protected-player-info: false
|
||||
# If true, hide players with invisibility potion effects active
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue