VoidSettings

class VoidSettings(c: FileConfiguration, logger: Logger? = null)

The void: section — a configurable chance that an item is voided rather than relocated, an admin-extensible banned-material list, and one or more catch-all destinations that receive banned and voided items instead of destroying them.

Inert by default: chance: 0.0, no extra banned materials, catch-all disabled.

Constructors

Link copied to clipboard
constructor(c: FileConfiguration, logger: Logger? = null)

Properties

Link copied to clipboard
val bannedMaterials: Set<Material>

Extra material names treated as contraband, on top of the built-in list in io.fairyfox.papermc.despawneditems.despawn.into.DespawnIntoVoid. Unknown names are warned about and skipped rather than failing the load.

Link copied to clipboard

When true, banned/voided items are delivered to catchAllTargets instead of destroyed.

Link copied to clipboard

first (fill in order) or random (spread the load).

Link copied to clipboard

Parsed catch-all destinations; malformed entries are warned about and skipped.

Link copied to clipboard

True when a catch-all is both switched on and actually has somewhere to put things.

Link copied to clipboard

Probability in 0.0..1.0 that any given despawning item is voided outright.

Link copied to clipboard

When every catch-all is full: true = destroy the item, false = let it fall through to normal relocation.