Class PlayerConfigOptions

java.lang.Object
xaero.pac.common.server.player.config.api.PlayerConfigOptions

public class PlayerConfigOptions extends Object
An access point for all static player config option specifications/representations.

Use the client/server sided player config manager API to access the dynamic options generated based on the server config values.

  • Field Details

    • OPTIONS

      public static final Map<String,IPlayerConfigOptionSpecAPI<?>> OPTIONS
      An ID->specification map of all static player config options.
    • USED_SUBCLAIM

      public static final IPlayerConfigOptionSpecAPI<String> USED_SUBCLAIM
      The current sub-config ID that the player uses for their own new claims.
    • USED_SERVER_SUBCLAIM

      public static final IPlayerConfigOptionSpecAPI<String> USED_SERVER_SUBCLAIM
      The current sub-config ID that the player uses for new server claims.
    • PARTY_NAME

      public static final IPlayerConfigOptionSpecAPI<String> PARTY_NAME
      The name of the player's party if they own one.
    • BONUS_CHUNK_CLAIMS

      public static final IPlayerConfigOptionSpecAPI<Integer> BONUS_CHUNK_CLAIMS
      The bonus chunk claims on top of the normal limit.
    • BONUS_CHUNK_FORCELOADS

      public static final IPlayerConfigOptionSpecAPI<Integer> BONUS_CHUNK_FORCELOADS
      The bonus chunk forceloads on top of the normal limit.
    • CLAIMS_NAME

      public static final IPlayerConfigOptionSpecAPI<String> CLAIMS_NAME
      The display name of the player's claimed chunks.
    • CLAIMS_COLOR

      public static final IPlayerConfigOptionSpecAPI<Integer> CLAIMS_COLOR
      The display color of the player's claimed chunks.
    • PROTECT_CLAIMED_CHUNKS

      public static final IPlayerConfigOptionSpecAPI<Boolean> PROTECT_CLAIMED_CHUNKS
      Whether the player's claimed chunks are protected at all.
    • PROTECT_CLAIMED_CHUNKS_FROM_PARTY

      public static final IPlayerConfigOptionSpecAPI<Boolean> PROTECT_CLAIMED_CHUNKS_FROM_PARTY
      Whether the claimed chunk protection includes protection against the party that the player is in.
    • PROTECT_CLAIMED_CHUNKS_FROM_ALLY_PARTIES

      public static final IPlayerConfigOptionSpecAPI<Boolean> PROTECT_CLAIMED_CHUNKS_FROM_ALLY_PARTIES
      Whether the claimed chunk protection includes protection against allies of the party that the player is in.
    • PROTECT_CLAIMED_CHUNKS_BLOCKS_FROM_PLAYERS

      public static final IPlayerConfigOptionSpecAPI<Integer> PROTECT_CLAIMED_CHUNKS_BLOCKS_FROM_PLAYERS
      Whether the claimed chunk protection includes protection against players breaking and interacting with blocks.
    • PROTECT_CLAIMED_CHUNKS_BLOCKS_FROM_MOBS

      public static final IPlayerConfigOptionSpecAPI<Integer> PROTECT_CLAIMED_CHUNKS_BLOCKS_FROM_MOBS
      Whether the claimed chunk protection includes protection against mobs breaking/placing blocks.
    • PROTECT_CLAIMED_CHUNKS_BLOCKS_FROM_OTHER

      public static final IPlayerConfigOptionSpecAPI<Integer> PROTECT_CLAIMED_CHUNKS_BLOCKS_FROM_OTHER
      Whether the claimed chunk protection includes protection against non-living entities breaking/placing blocks.
    • PROTECT_CLAIMED_CHUNKS_BLOCKS_REDIRECT

      public static final IPlayerConfigOptionSpecAPI<Boolean> PROTECT_CLAIMED_CHUNKS_BLOCKS_REDIRECT
      Whether the claimed chunk block protection redirects the used config option to the owner of the entity.
    • PROTECT_CLAIMED_CHUNKS_FROM_FIRE_SPREAD

      public static final IPlayerConfigOptionSpecAPI<Boolean> PROTECT_CLAIMED_CHUNKS_FROM_FIRE_SPREAD
      Whether the claimed chunk protection includes protection against fire spread.
    • PROTECT_CLAIMED_CHUNKS_FROM_FROST_WALKING

      public static final IPlayerConfigOptionSpecAPI<Integer> PROTECT_CLAIMED_CHUNKS_FROM_FROST_WALKING
      Whether the claimed chunk protection includes protection from frost walking.
    • PROTECT_CLAIMED_CHUNKS_BLOCKS_FROM_EXPLOSIONS

      public static final IPlayerConfigOptionSpecAPI<Boolean> PROTECT_CLAIMED_CHUNKS_BLOCKS_FROM_EXPLOSIONS
      Whether the claimed chunk protection includes protection against explosions.
    • PROTECT_CLAIMED_CHUNKS_BUTTONS_FROM_PROJECTILES

      public static final IPlayerConfigOptionSpecAPI<Integer> PROTECT_CLAIMED_CHUNKS_BUTTONS_FROM_PROJECTILES
      Whether the claimed chunk protection includes protection of buttons being pressed by projectiles.
    • PROTECT_CLAIMED_CHUNKS_TARGETS_FROM_PROJECTILES

      public static final IPlayerConfigOptionSpecAPI<Integer> PROTECT_CLAIMED_CHUNKS_TARGETS_FROM_PROJECTILES
      Whether the claimed chunk protection includes protection of target blocks being pressed by projectiles.
    • PROTECT_CLAIMED_CHUNKS_PLATES_FROM_PLAYERS

      public static final IPlayerConfigOptionSpecAPI<Integer> PROTECT_CLAIMED_CHUNKS_PLATES_FROM_PLAYERS
      Whether the claimed chunk protection includes protection of pressure plates being pressed by players.
    • PROTECT_CLAIMED_CHUNKS_PLATES_FROM_MOBS

      public static final IPlayerConfigOptionSpecAPI<Integer> PROTECT_CLAIMED_CHUNKS_PLATES_FROM_MOBS
      Whether the claimed chunk protection includes protection of pressure plates being pressed by mobs.
    • PROTECT_CLAIMED_CHUNKS_PLATES_FROM_OTHER

      public static final IPlayerConfigOptionSpecAPI<Integer> PROTECT_CLAIMED_CHUNKS_PLATES_FROM_OTHER
      Whether the claimed chunk protection includes protection of pressure plates being pressed by non-living entities.
    • PROTECT_CLAIMED_CHUNKS_TRIPWIRE_FROM_PLAYERS

      public static final IPlayerConfigOptionSpecAPI<Integer> PROTECT_CLAIMED_CHUNKS_TRIPWIRE_FROM_PLAYERS
      Whether the claimed chunk protection includes protection of tripwires being pressed by players.
    • PROTECT_CLAIMED_CHUNKS_TRIPWIRE_FROM_MOBS

      public static final IPlayerConfigOptionSpecAPI<Integer> PROTECT_CLAIMED_CHUNKS_TRIPWIRE_FROM_MOBS
      Whether the claimed chunk protection includes protection of tripwires being pressed by mobs.
    • PROTECT_CLAIMED_CHUNKS_TRIPWIRE_FROM_OTHER

      public static final IPlayerConfigOptionSpecAPI<Integer> PROTECT_CLAIMED_CHUNKS_TRIPWIRE_FROM_OTHER
      Whether the claimed chunk protection includes protection of tripwires being pressed by non-living entities.
    • PROTECT_CLAIMED_CHUNKS_ENTITIES_FROM_PLAYERS

      public static final IPlayerConfigOptionSpecAPI<Integer> PROTECT_CLAIMED_CHUNKS_ENTITIES_FROM_PLAYERS
      Whether the claimed chunk protection includes entity protection against players.
    • PROTECT_CLAIMED_CHUNKS_ENTITIES_FROM_MOBS

      public static final IPlayerConfigOptionSpecAPI<Integer> PROTECT_CLAIMED_CHUNKS_ENTITIES_FROM_MOBS
      Whether the claimed chunk protection includes entity protection against mobs.
    • PROTECT_CLAIMED_CHUNKS_ENTITIES_FROM_OTHER

      public static final IPlayerConfigOptionSpecAPI<Integer> PROTECT_CLAIMED_CHUNKS_ENTITIES_FROM_OTHER
      Whether the claimed chunk protection includes entity protection against non-living entities.
    • PROTECT_CLAIMED_CHUNKS_ENTITIES_REDIRECT

      public static final IPlayerConfigOptionSpecAPI<Boolean> PROTECT_CLAIMED_CHUNKS_ENTITIES_REDIRECT
      Whether the claimed chunk entity protection redirects the used config option to the owner of the attacking entity.
    • PROTECT_CLAIMED_CHUNKS_ENTITIES_FROM_EXPLOSIONS

      public static final IPlayerConfigOptionSpecAPI<Boolean> PROTECT_CLAIMED_CHUNKS_ENTITIES_FROM_EXPLOSIONS
      Whether the claimed chunk protection includes entity protection against explosions.
    • PROTECT_CLAIMED_CHUNKS_ENTITIES_FROM_FIRE

      public static final IPlayerConfigOptionSpecAPI<Boolean> PROTECT_CLAIMED_CHUNKS_ENTITIES_FROM_FIRE
      Whether the claimed chunk protection includes entity protection against fire damage.
    • PROTECT_CLAIMED_CHUNKS_PLAYERS_FROM_PLAYERS

      public static final IPlayerConfigOptionSpecAPI<Boolean> PROTECT_CLAIMED_CHUNKS_PLAYERS_FROM_PLAYERS
      Whether the claimed chunk protection includes player protection against players.
    • PROTECT_CLAIMED_CHUNKS_PLAYERS_FROM_MOBS

      public static final IPlayerConfigOptionSpecAPI<Boolean> PROTECT_CLAIMED_CHUNKS_PLAYERS_FROM_MOBS
      Whether the claimed chunk protection includes player protection against mobs.
    • PROTECT_CLAIMED_CHUNKS_PLAYERS_FROM_OTHER

      public static final IPlayerConfigOptionSpecAPI<Boolean> PROTECT_CLAIMED_CHUNKS_PLAYERS_FROM_OTHER
      Whether the claimed chunk protection includes player protection against non-living entities.
    • PROTECT_CLAIMED_CHUNKS_PLAYERS_REDIRECT

      public static final IPlayerConfigOptionSpecAPI<Boolean> PROTECT_CLAIMED_CHUNKS_PLAYERS_REDIRECT
      Whether the claimed chunk player protection redirects the used config option to the owner of the attacking entity.
    • PROTECT_CLAIMED_CHUNKS_CHORUS_FRUIT

      public static final IPlayerConfigOptionSpecAPI<Integer> PROTECT_CLAIMED_CHUNKS_CHORUS_FRUIT
      Whether the claimed chunk protection includes protection against chorus fruit teleportation into the claim.
    • PROTECT_CLAIMED_CHUNKS_NETHER_PORTALS_PLAYERS

      public static final IPlayerConfigOptionSpecAPI<Integer> PROTECT_CLAIMED_CHUNKS_NETHER_PORTALS_PLAYERS
      Whether the claimed chunk protection includes protection against players using nether portals.
    • PROTECT_CLAIMED_CHUNKS_NETHER_PORTALS_MOBS

      public static final IPlayerConfigOptionSpecAPI<Integer> PROTECT_CLAIMED_CHUNKS_NETHER_PORTALS_MOBS
      Whether the claimed chunk protection includes protection against mobs using nether portals.
    • PROTECT_CLAIMED_CHUNKS_NETHER_PORTALS_OTHER

      public static final IPlayerConfigOptionSpecAPI<Integer> PROTECT_CLAIMED_CHUNKS_NETHER_PORTALS_OTHER
      Whether the claimed chunk protection includes protection against non-living entities using nether portals.
    • PROTECT_CLAIMED_CHUNKS_PLAYER_LIGHTNING

      public static final IPlayerConfigOptionSpecAPI<Integer> PROTECT_CLAIMED_CHUNKS_PLAYER_LIGHTNING
      Whether the claimed chunk protection includes protection against player-caused lightnings.
    • PROTECT_CLAIMED_CHUNKS_CROP_TRAMPLE

      public static final IPlayerConfigOptionSpecAPI<Boolean> PROTECT_CLAIMED_CHUNKS_CROP_TRAMPLE
      Whether the claimed chunk protection includes protection against crop trample.
    • PROTECT_CLAIMED_CHUNKS_FLUID_BARRIER

      public static final IPlayerConfigOptionSpecAPI<Boolean> PROTECT_CLAIMED_CHUNKS_FLUID_BARRIER
      Whether the claimed chunk protection includes protection against fluids flowing into the claim.
    • PROTECT_CLAIMED_CHUNKS_DISPENSER_BARRIER

      public static final IPlayerConfigOptionSpecAPI<Boolean> PROTECT_CLAIMED_CHUNKS_DISPENSER_BARRIER
      Whether the claimed chunk protection includes protection against directly dispensing into the claim.
    • PROTECT_CLAIMED_CHUNKS_PISTON_BARRIER

      public static final IPlayerConfigOptionSpecAPI<Boolean> PROTECT_CLAIMED_CHUNKS_PISTON_BARRIER
      Whether the claimed chunk protection includes protection against pistons pushing into the claim.
    • PROTECT_CLAIMED_CHUNKS_ITEM_TOSS_PLAYERS

      public static final IPlayerConfigOptionSpecAPI<Integer> PROTECT_CLAIMED_CHUNKS_ITEM_TOSS_PLAYERS
      Whether the claimed chunk protection includes protection against items being dropped by players.
    • PROTECT_CLAIMED_CHUNKS_ITEM_TOSS_MOBS

      public static final IPlayerConfigOptionSpecAPI<Integer> PROTECT_CLAIMED_CHUNKS_ITEM_TOSS_MOBS
      Whether the claimed chunk protection includes protection against items being dropped by mobs.
    • PROTECT_CLAIMED_CHUNKS_ITEM_TOSS_OTHER

      public static final IPlayerConfigOptionSpecAPI<Integer> PROTECT_CLAIMED_CHUNKS_ITEM_TOSS_OTHER
      Whether the claimed chunk protection includes protection against items being dropped by non-living entities.
    • PROTECT_CLAIMED_CHUNKS_ITEM_TOSS_REDIRECT

      public static final IPlayerConfigOptionSpecAPI<Boolean> PROTECT_CLAIMED_CHUNKS_ITEM_TOSS_REDIRECT
      Whether the claimed chunk item drop protection redirects the used config option to the owner of the dropping entity.
    • PROTECT_CLAIMED_CHUNKS_MOB_LOOT

      public static final IPlayerConfigOptionSpecAPI<Integer> PROTECT_CLAIMED_CHUNKS_MOB_LOOT
      Whether the claimed chunk protection includes protection from mob loot being dropped unless killed by players with access.
    • PROTECT_CLAIMED_CHUNKS_PLAYER_DEATH_LOOT

      public static final IPlayerConfigOptionSpecAPI<Integer> PROTECT_CLAIMED_CHUNKS_PLAYER_DEATH_LOOT
      Whether the claimed chunk protection includes protection for items dropped on player death.
    • PROTECT_CLAIMED_CHUNKS_ITEM_PICKUP_PLAYERS

      public static final IPlayerConfigOptionSpecAPI<Integer> PROTECT_CLAIMED_CHUNKS_ITEM_PICKUP_PLAYERS
      Whether the claimed chunk protection includes protection against items being picked up by players.
    • PROTECT_CLAIMED_CHUNKS_ITEM_PICKUP_MOBS

      public static final IPlayerConfigOptionSpecAPI<Integer> PROTECT_CLAIMED_CHUNKS_ITEM_PICKUP_MOBS
      Whether the claimed chunk protection includes protection against items being picked up by mobs.
    • PROTECT_CLAIMED_CHUNKS_ITEM_PICKUP_REDIRECT

      public static final IPlayerConfigOptionSpecAPI<Boolean> PROTECT_CLAIMED_CHUNKS_ITEM_PICKUP_REDIRECT
      Whether the claimed chunk item pickup protection redirects the used config option to the owner of the entity picking up the item.
    • PROTECT_CLAIMED_CHUNKS_XP_PICKUP

      public static final IPlayerConfigOptionSpecAPI<Integer> PROTECT_CLAIMED_CHUNKS_XP_PICKUP
      Whether the claimed chunk protection includes protection against experience orbs being picked up by players.
    • PROTECT_CLAIMED_CHUNKS_ITEM_USE

      public static final IPlayerConfigOptionSpecAPI<Integer> PROTECT_CLAIMED_CHUNKS_ITEM_USE
      Whether the claimed chunk protection includes protection against item use.
    • PROTECT_CLAIMED_CHUNKS_NEIGHBOR_CHUNKS_ITEM_USE

      public static final IPlayerConfigOptionSpecAPI<Boolean> PROTECT_CLAIMED_CHUNKS_NEIGHBOR_CHUNKS_ITEM_USE
      Whether the claimed chunk protection includes protection against at-air (or sometimes other) item use in neighbor chunks of the claim.
    • PROTECT_CLAIMED_CHUNKS_MOB_GRIEFING_OVERRIDE

      public static final IPlayerConfigOptionSpecAPI<Boolean> PROTECT_CLAIMED_CHUNKS_MOB_GRIEFING_OVERRIDE
      Whether the claimed chunk protection options for block/entity/items override the value of the vanilla "mob griefing" game rule.
    • PROTECT_CLAIMED_CHUNKS_RAIDS

      public static final IPlayerConfigOptionSpecAPI<Boolean> PROTECT_CLAIMED_CHUNKS_RAIDS
      Whether the claimed chunk protection includes protection against village raids.
    • PROTECT_CLAIMED_CHUNKS_HOSTILE_NATURAL_SPAWN

      public static final IPlayerConfigOptionSpecAPI<Boolean> PROTECT_CLAIMED_CHUNKS_HOSTILE_NATURAL_SPAWN
      Whether the claimed chunk protection includes natural spawn prevention for hostile mobs.
    • PROTECT_CLAIMED_CHUNKS_FRIENDLY_NATURAL_SPAWN

      public static final IPlayerConfigOptionSpecAPI<Boolean> PROTECT_CLAIMED_CHUNKS_FRIENDLY_NATURAL_SPAWN
      Whether the claimed chunk protection includes natural spawn prevention for friendly mobs.
    • PROTECT_CLAIMED_CHUNKS_HOSTILE_SPAWNERS

      public static final IPlayerConfigOptionSpecAPI<Boolean> PROTECT_CLAIMED_CHUNKS_HOSTILE_SPAWNERS
      Whether the claimed chunk protection disables spawners for hostile mobs.
    • PROTECT_CLAIMED_CHUNKS_FRIENDLY_SPAWNERS

      public static final IPlayerConfigOptionSpecAPI<Boolean> PROTECT_CLAIMED_CHUNKS_FRIENDLY_SPAWNERS
      Whether the claimed chunk protection disables spawners for friendly mobs.
    • PROTECT_CLAIMED_CHUNKS_PROJECTILE_HIT_HOSTILE_SPAWN

      public static final IPlayerConfigOptionSpecAPI<Integer> PROTECT_CLAIMED_CHUNKS_PROJECTILE_HIT_HOSTILE_SPAWN
      Whether the claimed chunk protection includes prevention of hostile mobs being spawned by landing projectiles (e.g. endermites).
    • PROTECT_CLAIMED_CHUNKS_PROJECTILE_HIT_FRIENDLY_SPAWN

      public static final IPlayerConfigOptionSpecAPI<Integer> PROTECT_CLAIMED_CHUNKS_PROJECTILE_HIT_FRIENDLY_SPAWN
      Whether the claimed chunk protection includes prevention of non-hostile mobs being spawned by landing projectiles (e.g. chicken).
    • FORCELOAD

      public static final IPlayerConfigOptionSpecAPI<Boolean> FORCELOAD
      Whether the player's forceloadable claims are forceloaded, at least while the player is online.
    • OFFLINE_FORCELOAD

      public static final IPlayerConfigOptionSpecAPI<Boolean> OFFLINE_FORCELOAD
      Whether the player's forceloaded claims stay forceloaded when they go offline.
    • SHARE_LOCATION_WITH_PARTY

      public static final IPlayerConfigOptionSpecAPI<Boolean> SHARE_LOCATION_WITH_PARTY
      Whether the player shares their in-game location with their party.
    • SHARE_LOCATION_WITH_PARTY_MUTUAL_ALLIES

      public static final IPlayerConfigOptionSpecAPI<Boolean> SHARE_LOCATION_WITH_PARTY_MUTUAL_ALLIES
      Whether the player shares their in-game location with their party's mutual allies.
    • RECEIVE_LOCATIONS_FROM_PARTY

      public static final IPlayerConfigOptionSpecAPI<Boolean> RECEIVE_LOCATIONS_FROM_PARTY
      Whether the player receives the in-game locations shared by their fellow party members.
    • RECEIVE_LOCATIONS_FROM_PARTY_MUTUAL_ALLIES

      public static final IPlayerConfigOptionSpecAPI<Boolean> RECEIVE_LOCATIONS_FROM_PARTY_MUTUAL_ALLIES
      Whether the player receives the in-game locations shared by their party's mutual allies.
  • Constructor Details

    • PlayerConfigOptions

      public PlayerConfigOptions()