Skip to content

Integrations

David Rodriguez edited this page Feb 14, 2023 · 3 revisions

PlaceholderAPI

playersettings_<setting>_name

Gets the display name of a setting

playersettings_<setting>_name_plain

Gets the plain name of a setting

playersettings_in_allowed_world

Gets whether the player that requested the placeholder is in a world where the plugin is enabled

playersettings_<setting>_toggle

Retrieves the toggle/opposite value of a setting requested by the player

playersettings_<setting>_toggle_formatted

Retrieves the alias for the toggle/opposite value of a setting requested by the player

playersettings_<setting>_value

Retrieves the value of a setting requested by the player

playersettings_<setting>_value_formatted

Retrieves the alias for the value of a setting requested by the player

ItemJoin

A commonly requested feature is to add an interactive item that can change a setting. Thanks to the ItemJoin plugin, you can now do that and much more!

items.yml

Here's a simple configuration of how to create an interactive item for the visibility setting

items:
  visibility:
    id: "ENDER_EYE"
    slot: 8
    name: '<delay:2>&6&lVisibility &7- &f%playersettings_visibility-setting_value_formatted%'
    lore:
    - '<delay:2>'
    - '&6Right click &7to toggle &f%playersettings_visibility-setting_toggle_formatted%'
    commands-sequence: SEQUENTIAL
    interact-right:
    - 'settings set visibility-setting %playersettings_visibility-setting_toggle%'
    itemflags: inventory-modify, death-drops, self-drops, animate, cancel-events
    triggers: dynamic, join, respawn, world-change
    enabled-worlds: world

If you need more help configuring your item, please refer to the ItemJoin wiki

Clone this wiki locally