Toggle Player Setting Button
A button which toggles a boolean setting for a player.
key The namespaced key for this setting. Used for translation keys and persistent data.
isEnabled Gets the current setting value for a player.
toggle Toggles the current setting value for a player.
decorator Determines what the base ItemStack of the button looks like for a player their current setting value.
This is useful for adding visual indicators of the current setting value, such as changing the material or custom model data.
The name and lore of the button will be applied on top of this ItemStack.
By default the button is lime concrete when enabled and red concrete when disabled with custom model data of "{key}_enabled" and "{key}_disabled" respectively.
placeholderProvider Provides additional placeholders for the translation. (See TranslatableComponent.arguments and PylonArgument)