mirror of https://github.com/webbukkit/dynmap.git
implemented hideifspectator switch, fully functional
This commit is contained in:
parent
0d15ee5a46
commit
bc0117ac5a
|
@ -80,6 +80,8 @@ components:
|
||||||
# hideifundercover: 14
|
# hideifundercover: 14
|
||||||
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
||||||
hideifsneaking: false
|
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)
|
# 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
|
protected-player-info: false
|
||||||
# If true, hide players with invisibility potion effects active
|
# If true, hide players with invisibility potion effects active
|
||||||
|
|
|
@ -80,6 +80,8 @@ components:
|
||||||
# hideifundercover: 14
|
# hideifundercover: 14
|
||||||
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
||||||
hideifsneaking: false
|
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)
|
# 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
|
protected-player-info: false
|
||||||
# If true, hide players with invisibility potion effects active
|
# If true, hide players with invisibility potion effects active
|
||||||
|
|
|
@ -80,6 +80,8 @@ components:
|
||||||
# hideifundercover: 14
|
# hideifundercover: 14
|
||||||
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
||||||
hideifsneaking: false
|
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)
|
# 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
|
protected-player-info: false
|
||||||
# If true, hide players with invisibility potion effects active
|
# If true, hide players with invisibility potion effects active
|
||||||
|
|
|
@ -80,6 +80,8 @@ components:
|
||||||
# hideifundercover: 14
|
# hideifundercover: 14
|
||||||
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
||||||
hideifsneaking: false
|
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)
|
# 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
|
protected-player-info: false
|
||||||
# If true, hide players with invisibility potion effects active
|
# If true, hide players with invisibility potion effects active
|
||||||
|
|
|
@ -80,6 +80,8 @@ components:
|
||||||
# hideifundercover: 14
|
# hideifundercover: 14
|
||||||
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
||||||
hideifsneaking: false
|
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)
|
# 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
|
protected-player-info: false
|
||||||
# If true, hide players with invisibility potion effects active
|
# If true, hide players with invisibility potion effects active
|
||||||
|
|
|
@ -80,6 +80,8 @@ components:
|
||||||
# hideifundercover: 14
|
# hideifundercover: 14
|
||||||
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
||||||
hideifsneaking: false
|
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)
|
# 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
|
protected-player-info: false
|
||||||
# If true, hide players with invisibility potion effects active
|
# If true, hide players with invisibility potion effects active
|
||||||
|
|
|
@ -80,6 +80,8 @@ components:
|
||||||
# hideifundercover: 14
|
# hideifundercover: 14
|
||||||
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
||||||
hideifsneaking: false
|
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)
|
# 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
|
protected-player-info: false
|
||||||
# If true, hide players with invisibility potion effects active
|
# If true, hide players with invisibility potion effects active
|
||||||
|
|
|
@ -80,6 +80,8 @@ components:
|
||||||
# hideifundercover: 14
|
# hideifundercover: 14
|
||||||
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
||||||
hideifsneaking: false
|
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)
|
# 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
|
protected-player-info: false
|
||||||
# If true, hide players with invisibility potion effects active
|
# If true, hide players with invisibility potion effects active
|
||||||
|
|
|
@ -80,6 +80,8 @@ components:
|
||||||
# hideifundercover: 14
|
# hideifundercover: 14
|
||||||
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
||||||
hideifsneaking: false
|
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)
|
# 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
|
protected-player-info: false
|
||||||
# If true, hide players with invisibility potion effects active
|
# If true, hide players with invisibility potion effects active
|
||||||
|
|
|
@ -201,6 +201,13 @@ public class FabricPlayer extends FabricCommandSender implements DynmapPlayer {
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
|
public boolean isSpectator() {
|
||||||
|
if(player != null) {
|
||||||
|
return player.isSpectator();
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getSortWeight() {
|
public int getSortWeight() {
|
||||||
|
|
|
@ -80,6 +80,8 @@ components:
|
||||||
# hideifundercover: 14
|
# hideifundercover: 14
|
||||||
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
||||||
hideifsneaking: false
|
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)
|
# 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
|
protected-player-info: false
|
||||||
# If true, hide players with invisibility potion effects active
|
# If true, hide players with invisibility potion effects active
|
||||||
|
|
|
@ -80,6 +80,8 @@ components:
|
||||||
# hideifundercover: 14
|
# hideifundercover: 14
|
||||||
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
||||||
hideifsneaking: false
|
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)
|
# 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
|
protected-player-info: false
|
||||||
# If true, hide players with invisibility potion effects active
|
# If true, hide players with invisibility potion effects active
|
||||||
|
|
|
@ -1332,12 +1332,13 @@ public class DynmapPlugin
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@override
|
||||||
public boolean isSpectator() {
|
public boolean isSpectator() {
|
||||||
if(player != null) {return player.isSpectator()}
|
if(player != null) {
|
||||||
|
return player.isSpectator()
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getSortWeight() {
|
public int getSortWeight() {
|
||||||
Integer wt = sortWeights.get(getName());
|
Integer wt = sortWeights.get(getName());
|
||||||
|
|
|
@ -68,6 +68,8 @@ components:
|
||||||
# hideifundercover: 14
|
# hideifundercover: 14
|
||||||
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
||||||
hideifsneaking: false
|
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)
|
# 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
|
protected-player-info: false
|
||||||
# If true, hide players with invisibility potion effects active
|
# If true, hide players with invisibility potion effects active
|
||||||
|
|
|
@ -80,6 +80,8 @@ components:
|
||||||
# hideifundercover: 14
|
# hideifundercover: 14
|
||||||
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
||||||
hideifsneaking: false
|
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)
|
# 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
|
protected-player-info: false
|
||||||
# If true, hide players with invisibility potion effects active
|
# If true, hide players with invisibility potion effects active
|
||||||
|
|
|
@ -80,6 +80,8 @@ components:
|
||||||
# hideifundercover: 14
|
# hideifundercover: 14
|
||||||
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
||||||
hideifsneaking: false
|
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)
|
# 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
|
protected-player-info: false
|
||||||
# If true, hide players with invisibility potion effects active
|
# If true, hide players with invisibility potion effects active
|
||||||
|
|
|
@ -80,6 +80,8 @@ components:
|
||||||
# hideifundercover: 14
|
# hideifundercover: 14
|
||||||
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
||||||
hideifsneaking: false
|
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)
|
# 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
|
protected-player-info: false
|
||||||
# If true, hide players with invisibility potion effects active
|
# If true, hide players with invisibility potion effects active
|
||||||
|
|
|
@ -80,6 +80,8 @@ components:
|
||||||
# hideifundercover: 14
|
# hideifundercover: 14
|
||||||
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
||||||
hideifsneaking: false
|
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)
|
# 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
|
protected-player-info: false
|
||||||
# If true, hide players with invisibility potion effects active
|
# If true, hide players with invisibility potion effects active
|
||||||
|
|
|
@ -80,6 +80,8 @@ components:
|
||||||
# hideifundercover: 14
|
# hideifundercover: 14
|
||||||
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
||||||
hideifsneaking: false
|
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)
|
# 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
|
protected-player-info: false
|
||||||
# If true, hide players with invisibility potion effects active
|
# If true, hide players with invisibility potion effects active
|
||||||
|
|
|
@ -80,6 +80,8 @@ components:
|
||||||
# hideifundercover: 14
|
# hideifundercover: 14
|
||||||
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
||||||
hideifsneaking: false
|
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)
|
# 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
|
protected-player-info: false
|
||||||
# If true, hide players with invisibility potion effects active
|
# If true, hide players with invisibility potion effects active
|
||||||
|
|
|
@ -80,6 +80,8 @@ components:
|
||||||
# hideifundercover: 14
|
# hideifundercover: 14
|
||||||
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
||||||
hideifsneaking: false
|
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)
|
# 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
|
protected-player-info: false
|
||||||
# If true, hide players with invisibility potion effects active
|
# If true, hide players with invisibility potion effects active
|
||||||
|
|
|
@ -80,6 +80,8 @@ components:
|
||||||
# hideifundercover: 14
|
# hideifundercover: 14
|
||||||
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
||||||
hideifsneaking: false
|
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)
|
# 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
|
protected-player-info: false
|
||||||
# If true, hide players with invisibility potion effects active
|
# If true, hide players with invisibility potion effects active
|
||||||
|
|
|
@ -1308,6 +1308,13 @@ public class DynmapPlugin
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
public boolean isSpectator() {
|
||||||
|
if(player != null) {
|
||||||
|
return player.isSpectator();
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
public int getSortWeight() {
|
public int getSortWeight() {
|
||||||
Integer wt = sortWeights.get(getName());
|
Integer wt = sortWeights.get(getName());
|
||||||
if (wt != null)
|
if (wt != null)
|
||||||
|
|
|
@ -80,6 +80,8 @@ components:
|
||||||
# hideifundercover: 14
|
# hideifundercover: 14
|
||||||
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
||||||
hideifsneaking: false
|
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)
|
# 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
|
protected-player-info: false
|
||||||
# If true, hide players with invisibility potion effects active
|
# If true, hide players with invisibility potion effects active
|
||||||
|
|
|
@ -80,6 +80,8 @@ components:
|
||||||
# hideifundercover: 14
|
# hideifundercover: 14
|
||||||
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
||||||
hideifsneaking: false
|
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)
|
# 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
|
protected-player-info: false
|
||||||
# If true, hide players with invisibility potion effects active
|
# If true, hide players with invisibility potion effects active
|
||||||
|
|
|
@ -80,6 +80,8 @@ components:
|
||||||
# hideifundercover: 14
|
# hideifundercover: 14
|
||||||
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
# # (Optional) if true, players that are crouching/sneaking will be hidden
|
||||||
hideifsneaking: false
|
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)
|
# 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
|
protected-player-info: false
|
||||||
# If true, hide players with invisibility potion effects active
|
# If true, hide players with invisibility potion effects active
|
||||||
|
|
Loading…
Reference in New Issue