Config

data class Config(var VILLAGER_BLACKLIST: <Error class: unknown class><String> = ArrayList(), var UNINSTALL_MODE: Boolean = false, var CHECK_UPDATE: Boolean = true, var ALLOW_METRICS: Boolean = true) : FileBind

Represents the settings for the plugin.

Constructors

Link copied to clipboard
constructor(VILLAGER_BLACKLIST: <Error class: unknown class><String> = ArrayList(), UNINSTALL_MODE: Boolean = false, CHECK_UPDATE: Boolean = true, ALLOW_METRICS: Boolean = true)

Properties

Link copied to clipboard
@ConfigField(name = "Allow Metrics", description = "Allows the plugin to send metrics data", defaultValue = "true")
@SerializedName(value = "allowMetrics")
var ALLOW_METRICS: Boolean

Indicates if metrics are allowed.

Link copied to clipboard
@ConfigField(name = "Check for Updates", description = "Allows the plugin to check for updates", defaultValue = "true")
@SerializedName(value = "updateCheck")
var CHECK_UPDATE: Boolean

Indicates if checking for updates is enabled.

Link copied to clipboard
@ConfigField(name = "Uninstall Mode", description = "If enabled, the plugin will revert all it's changes", defaultValue = "false")
@SerializedName(value = "uninstallMode")
var UNINSTALL_MODE: Boolean

Indicates if the uninstall mode is enabled.

Link copied to clipboard
@ConfigField(name = "Villager Blacklist", description = "The list of blacklisted villagers", defaultValue = "[]")
@SerializedName(value = "villagerBlacklist")
var VILLAGER_BLACKLIST: <Error class: unknown class><String>

The list of blacklisted villagers.

Functions

Link copied to clipboard
Link copied to clipboard
fun read()
Link copied to clipboard
fun save()