HouseSettingsImporter

Functions

Link copied to clipboard
open suspend override fun clearPlayerStates(): HouseSettings

Clears all player states.

Link copied to clipboard
open suspend override fun getDaylightCycle(): Boolean

Returns whether the daylight cycle is enabled for this house.

Link copied to clipboard
open suspend override fun getDefaultVariableDuration(): Duration

Returns the default variable duration used when no override exists.

Link copied to clipboard

Returns the map of global fishing-related settings and whether each is enabled.

Link copied to clipboard
open suspend override fun getHouseLanguages(): Set<HouseSettings.HouseLanguage>

Returns the set of specified languages for the house.

Link copied to clipboard
open suspend override fun getHouseName(): String

Returns the human-facing name of the house.

Link copied to clipboard
open suspend override fun getHouseTags(): Set<HouseSettings.HouseTag>

Returns the set of tags associated with the house.

Link copied to clipboard
open suspend override fun getMaxPlayers(): HouseSettings.MaxPlayers

Returns the configured maximum players setting for the house.

Link copied to clipboard

Returns the parkour announce behavior for the house.

Link copied to clipboard
open suspend override fun getPlayerStateDuration(): Duration

Returns the default storage duration for player states.

Link copied to clipboard

Returns a map of player state types to their enabled/disabled state.

Link copied to clipboard

Returns the map of global PvP-related settings and whether each is enabled.

Link copied to clipboard
open suspend override fun getVariableDurationOverride(variable: String): Duration?

Returns an override duration for a specific variable, if present.

Link copied to clipboard
open suspend override fun removeVariableDurationOverride(variable: String): HouseSettings

Removes a previously set variable duration override.

Link copied to clipboard
open suspend override fun setDaylightCycle(newDaylightCycle: Boolean): HouseSettings

Sets whether the daylight cycle should be enabled.

Link copied to clipboard
open suspend override fun setDefaultVariableDuration(newDuration: Duration): HouseSettings

Sets the default variable duration.

Link copied to clipboard
open suspend override fun setFishingSettings(newFishingSettings: MutableMap<HouseSettings.FishingSettings, Boolean>): HouseSettings

Replaces fishing-related settings with the provided map.

Link copied to clipboard
open suspend override fun setHouseLanguages(newLanguages: Set<HouseSettings.HouseLanguage>): HouseSettings

Sets the specified languages for the house.

Link copied to clipboard
open suspend override fun setHouseName(newName: String): HouseSettings

Sets the human-facing name of the house.

Link copied to clipboard
open suspend override fun setHouseTags(newTags: Set<HouseSettings.HouseTag>): HouseSettings

Replaces the house tags with the provided set.

Link copied to clipboard
open suspend override fun setMaxPlayers(newMaxPlayers: HouseSettings.MaxPlayers): HouseSettings

Sets the maximum players configuration for the house.

Link copied to clipboard
open suspend override fun setParkourAnnounce(newParkourAnnounce: HouseSettings.ParkourAnnounce): HouseSettings

Sets the parkour announce behavior.

Link copied to clipboard
open suspend override fun setPlayerStateDuration(newDuration: Duration): HouseSettings

Sets the default storage duration for player states.

Link copied to clipboard

Enables/disables the storage of specific player state types.

Link copied to clipboard
open suspend override fun setPvpSettings(newPvpSettings: MutableMap<HouseSettings.PvpSettings, Boolean>): HouseSettings

Replaces PvP-related settings with the provided map.

Link copied to clipboard
open suspend override fun setVariableDurationOverride(variable: String, newDuration: Duration): HouseSettings

Sets an override duration for a specific variable.