Skip to content

CraftRegions Manual

Josh Johnson edited this page Apr 20, 2020 · 1 revision

Permissions

The following permissions are recognized by CraftRegions

  • craftregions.accessall: ignores accessible

Interfacing with CraftRegions

Data types:

  • int - parsed as an int using Integer.parseInt()
  • bool - "true", "yes", "allow", "false, "no", "deny"
  • str - it's a string
  • list - string list. Split on colons?
  • null - "", "null" or "none"

To force a datatype, prefix your property with it, and a colon. Ex: /crprop set region enterMessage str: ... will blank the property for the region to an empty string and override overlapping properties

Properties

Core

The following CraftRegions properties are enforced by the core plugin:

Meta properties

  • inheritance: string
  • priority: int

Player Listeners

  • pvp: boolean
  • canDamagePlayers: boolean
  • canBeDamagedByPlayers: boolean
  • canDamageMobs: boolean
  • canBeDamagedByMobs: boolean
  • accessible: boolean
  • inaccessibleAction: one of: "burn"
  • enterMessage: string
  • gameMode: string (converted to enum org.bukkit.GameMode)
  • canExit: boolean
  • exitMessage: string
  • construct: boolean
  • lockedAction: one of: "allow", "lock", "spawn", "warp"
  • onTopIsLocked: boolean
  • canEnderPearlTo: boolean
  • canEnderPearlFrom: boolean
  • allowPortalTeleport: boolean
  • canBeDamaged: boolean
  • canBeDamagedByExplosions: boolean (EntityDamage)
  • canBeDamagedByExplosives: boolean (EntityDamageByEntity)
  • canBeDamagedByFalling: boolean
  • canBeDamagedByFire: boolean
  • canSleep: boolean
  • allowFireSpread: boolean
  • allowLavaFire: boolean
  • allowLightningFire: boolean
  • canIgnite: boolean
  • canDestroyVehicles: boolean
  • canInteract: boolean
  • canOpenChests: boolean
  • canDye: boolean
  • canUseRedstone: boolean
  • canOpenDoors: boolean
  • canPlaceVehicles: boolean
  • noHunger: boolean
  • canDropItems: boolean
  • canPickUpItems: boolean
  • canCraft: boolean

Region Listeners

  • allowExternalPistons
  • allowTreeGrow
  • allowFireballDestruction
  • allowExplosiveDestruction (instanceof Explosive or default)
  • allowMobExplosionDestruction (instanceof LivingEntity)
  • allowSpawnEggs
  • allowMobSpawning
  • allowNaturalSpawning
  • allowGolemSpawning
  • allowPluginSpawning
  • allowSpawners
  • allowEndermanBlockChange
  • allowWitherBlockDelete
  • allowFallingBlockDrop
  • allowWaterFlow
  • allowLavaFlow
  • allowFireSpread
  • allowPlantSpread

Non-Core

The following CraftRegions properties are enforced by other plugins:

BungeePortals

  • portalServer: string
  • portalRespawnLoc: string (format: world:x,y,z,yaw,pitch) (pitch and yaw are optional)

CommandPortals

  • portalCommand: string ({NAME} is replaced with the player name)
  • portalCommandAsOp: boolean
  • buttonCommand: string ({NAME} is replaced with the player name)
  • buttonCommandAsOp: boolean

Notes

The following are likely broken somehow

  • allowNaturalSpawning (chunkgen is deprecated, new mob spawn reasons)
  • allowItemPickup (event is deprecated and replaced)
  • allowFlow (using LEGACY stationary liquids)
  • allowChunkUnload (event is un-cancellable)