Skip to content

Placeholders

AlonsoAliaga edited this page Aug 30, 2023 · 5 revisions

Placeholders

Available placeholders for PlaceholdersAPI.

%alonsojoin_developer%

  • Returns plugin developer.
    Example: AlonsoAliaga

%alonsojoin_version%

  • Returns plugin version.
    Example: 0.1-BETA

%alonsojoin_format_identifier%

  • Returns format identifier for the player based on permissions.
    Example: owner or none (if none is selected)
    ⚠️ Warning: This shouldn't be used to display it for players. Only developers.

%alonsojoin_restoreall_PLACEHOLDER WITHOUT PERCENTAGE%

  • Returns the original string before colors were parsed. HEX colors are included.
    This was added to allow you to fix hex messages/placeholders from different plugins.
    Example: %alonsojoin_restoreall_vault_prefix% returns §x§a§b§c§d§e§f§lModerator then it will convert it to &#abcdef&lModerator
    ⚠️ This is extremely useful if a placeholder you have make weird things with colors.

%alonsojoin_legacyrestoreall_PLACEHOLDER WITHOUT PERCENTAGE% (🔰 Added in 0.2-BETA)

  • Returns the original string before colors were parsed (Weird legacy format). HEX colors are included.
    This was added to allow you to fix hex messages/placeholders from different plugins.
    Example: %alonsojoin_legacyrestoreall_vault_prefix% returns &x&a&b&c&d&e&fModerator then it will convert it to &#abcdefModerator
    ⚠️ This is extremely useful if a placeholder you have make weird things with colors.

%alonsojoin_restorehex_PLACEHOLDER WITHOUT PERCENTAGE%

  • Returns the original string before hex colors were parsed. Other formatting not included.
    This was added to allow you to fix hex messages/placeholders from different plugins.
    Example: %alonsojoin_restorehex_vault_prefix% returns §x§a§b§c§d§e§f§lModerator then it will convert it to &#abcdef§lModerator
    ⚠️ This is extremely useful if a placeholder you have make weird things with colors.

%alonsojoin_legacyrestorehex_PLACEHOLDER WITHOUT PERCENTAGE% (🔰 Added in 0.2-BETA)

  • Returns the original string before hex were parsed (Weird legacy format). Other formatting not included.
    This was added to allow you to fix hex messages/placeholders from different plugins.
    Example: %alonsojoin_legacyrestorehex_vault_prefix% returns &x&a&b&c&d&e&fModerator then it will convert it to &#abcdefModerator
    ⚠️ This is extremely useful if a placeholder you have make weird things with colors.

%alonsojoin_addampersandhex_PLACEHOLDER WITHOUT PERCENTAGE% (🔰 Added in 0.2-BETA)

  • Fixes placeholders that return hex colors in #rrggbb format.
    Example: %alonsojoin_addampersandhex_vault_prefix% returns #abcdefModerator then it will convert it to &#abcdefModerator
    ⚠️ This is extremely useful if a placeholder you have make weird things with colors.

%alonsojoin_removeampersandhex_PLACEHOLDER WITHOUT PERCENTAGE% (🔰 Added in 0.2-BETA)

  • Modifies placeholders output that return hex colors in &#rrggbb format if you need it.
    Example: %alonsojoin_removeampersandhex_vault_prefix% returns &#abcdefModerator then it will convert it to #abcdefModerator
    ⚠️ This is extremely useful if a placeholder you have make weird things with colors.