UEPlayerManager

@Since(version = "2.2")
interface UEPlayerManager

This interface represents UnderscoreEnchants' player manager.

At no point should you implement this interface, as it is implemented by UnderscoreEnchants.

Functions

Link copied to clipboard
@Since(version = "2.2")
abstract fun getLocale(uuid: UUID): UELocale?

Returns the locale of a player identified by their uuid.

Link copied to clipboard
@Since(version = "2.2")
abstract fun isDisabled(uuid: UUID, key: NamespacedKey): Boolean

Checks if a player, identified by their uuid, has an enchantment (key) disabled. Please note that only UnderscoreEnchants' enchantments can be disabled. Vanilla enchantments cannot be disabled.

Link copied to clipboard
@Since(version = "2.2")
abstract fun setLocale(uuid: UUID, localeIdentifier: String, silent: Boolean)

Sets the locale, detected by a localeIdentifier of a player identified by their uuid. If silent is true, does not notify the player of the change.

Link copied to clipboard
@Since(version = "2.2")
abstract fun toggle(uuid: UUID, key: NamespacedKey, silent: Boolean): Boolean

Toggles an enchantment (key) for a player, identified by their uuid. If silent is true, does not notify the player of the change. Please note that only UnderscoreEnchants' enchantments can be disabled. Vanilla enchantments cannot be disabled.