placeholders

Complete guide to using VaultPack placeholders with PlaceholderAPI.

Requirements

1

Install PlaceholderAPI

  • PlaceholderAPI plugin installed

2

Install VaultPack

  • VaultPack plugin installed

3

Ensure both plugins load

  • Both plugins loaded successfully

Verify installation with:

/papi info vaultpack

Global Placeholders

These placeholders return general information about a player's backpack system.

Total Slots

%vaultpack_total_slots%

Returns the number of backpack slots the player has unlocked.

Example Output: 5


Active Backpack Count

%vaultpack_active_count%

Returns the number of backpack slots that currently have a backpack stored.

Example Output: 3


Total Storage Capacity

Returns the total number of inventory slots available across all active backpacks.

Example Output: 72 (e.g., 2 medium backpacks = 36 slots)


Slot-Specific Placeholders

These placeholders provide information about a specific backpack slot. Replace X with the slot number (1-18).

Slot Item Material

Returns the material name representing the slot's status. Useful for GUI building.

Possible Returns:

  • gray_dye - Slot is locked

  • lime_dye - Slot is unlocked but empty

  • chest - Slot has a backpack

Example:


Slot Display Name

Returns a formatted display name for the slot.

Possible Returns:

  • Backpack Slot #X [LOCKED] (gray) - Slot is locked

  • Backpack Slot #X [EMPTY] (green) - Slot is empty

  • Backpack #X (gold) - Slot has a backpack

Example:


Slot Unlocked Status

Returns whether the slot is unlocked.

Returns: true or false

Example:


Slot Has Backpack

Returns whether the slot currently contains a backpack.

Returns: true or false

Example:


Backpack Tier Name

Returns the tier/type of the backpack in the slot.

Returns: Tier display name or None

Example:


Backpack Size

Returns the total number of slots in the backpack.

Returns: Number of slots (0 if empty)

Example:


Backpack Used Slots

Returns the number of slots currently occupied in the backpack.

Returns: Number of used slots (0 if empty)

Example:


Backpack Fullness Percentage

Returns the percentage of the backpack that is full.

Returns: Percentage with one decimal place (e.g., 66.7%)

Example:


Backpack Fullness Bar

Returns a visual progress bar showing backpack fullness.

Returns: Colored progress bar

Example:


Usage Examples

In Chat Messages

Display player stats:

Show backpack info:


In Scoreboards

Using FeatherBoard:


In Custom GUIs

Using DeluxeMenus:


In Hologram Plugins

Using DecentHolograms:


In Tab List

Using TAB plugin:


Conditional Formatting

Use placeholders with conditional plugins to create dynamic displays.

With PlaceholderAPI's Conditional Placeholder

Check if slot is unlocked:

Check if slot has backpack:


With DeluxeMenus Conditionals


Complete Backpack Selector Example

Create a custom backpack selector GUI using placeholders:


Placeholder Testing

Test in Chat

Use PlaceholderAPI's parse command:

Test All Slot Placeholders

Debug Mode

Enable debug in PlaceholderAPI config to see placeholder resolution:


Common Issues

chevron-rightPlaceholders Show as %placeholder%hashtag

Causes:

  • PlaceholderAPI is not installed

  • VaultPack's PlaceholderAPI hook is disabled

  • PlaceholderAPI hasn't loaded VaultPack's expansion

Solutions:

  1. Install PlaceholderAPI

  2. Enable in config.yml:

  3. Restart the server

  4. Verify with /papi info vaultpack

chevron-rightPlaceholders Return Emptyhashtag

Causes:

  • Player has never joined the server

  • Player data hasn't loaded yet

Solutions:

  • Ensure the player has joined at least once

  • Use placeholders only for online/valid players

chevron-rightSlot Placeholders Always Return 0hashtag

Causes:

  • Slot number is invalid (must be 1-18)

  • Player doesn't have that slot unlocked

  • No backpack is stored in that slot

Solutions:

  • Verify slot number is correct

  • Check if slot is unlocked with %vaultpack_slot_X_unlocked%

  • Check if backpack exists with %vaultpack_slot_X_has_backpack%


Placeholder Performance

VaultPack placeholders are optimized for performance:

  • Data is cached in memory

  • No database queries per placeholder

  • Minimal CPU overhead

Best Practices:

  • Use placeholders freely in GUIs and scoreboards

  • Avoid excessive placeholder updates (>20/second per player)

  • Consider using static displays where possible