toggle

@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.

Return

true if the enchantment is now disabled, false otherwise