implemented hideifspectator switch, fully functional

This commit is contained in:
Jurgen 2023-10-08 11:56:41 +02:00
parent 0d15ee5a46
commit bc0117ac5a
26 changed files with 64 additions and 3 deletions

View File

@ -80,6 +80,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

View File

@ -80,6 +80,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

View File

@ -80,6 +80,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

View File

@ -80,6 +80,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

View File

@ -80,6 +80,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

View File

@ -80,6 +80,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

View File

@ -80,6 +80,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

View File

@ -80,6 +80,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

View File

@ -80,6 +80,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

View File

@ -201,6 +201,13 @@ public class FabricPlayer extends FabricCommandSender implements DynmapPlayer {
}
return false;
}
@Override
public boolean isSpectator() {
if(player != null) {
return player.isSpectator();
}
return false;
}
@Override
public int getSortWeight() {

View File

@ -80,6 +80,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

View File

@ -80,6 +80,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

View File

@ -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());

View File

@ -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

View File

@ -80,6 +80,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

View File

@ -80,6 +80,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

View File

@ -80,6 +80,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

View File

@ -80,6 +80,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

View File

@ -80,6 +80,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

View File

@ -80,6 +80,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

View File

@ -80,6 +80,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

View File

@ -80,6 +80,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

View File

@ -1308,6 +1308,13 @@ public class DynmapPlugin
return false;
}
@Override
public boolean isSpectator() {
if(player != null) {
return player.isSpectator();
}
return false;
}
@Override
public int getSortWeight() {
Integer wt = sortWeights.get(getName());
if (wt != null)

View File

@ -80,6 +80,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

View File

@ -80,6 +80,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

View File

@ -80,6 +80,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