Complete guide to using VaultPack placeholders with PlaceholderAPI.
Install PlaceholderAPI
PlaceholderAPI plugin installed
Install VaultPack
VaultPack plugin installed
Ensure both plugins load
Both plugins loaded successfully
Verify installation with:
Global Placeholders
These placeholders return general information about a player's backpack system.
Copy %vaultpack_total_slots% Returns the number of backpack slots the player has unlocked.
Example Output: 5
Active Backpack Count
Copy %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:
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:
In Chat Messages
Display player stats:
Show backpack info:
Using FeatherBoard:
Using DeluxeMenus:
In Hologram Plugins
Using DecentHolograms:
Using TAB plugin:
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
Use PlaceholderAPI's parse command:
Test All Slot Placeholders
Enable debug in PlaceholderAPI config to see placeholder resolution:
chevron-right Placeholders Show as %placeholder%hashtag Causes:
PlaceholderAPI is not installed
VaultPack's PlaceholderAPI hook is disabled
PlaceholderAPI hasn't loaded VaultPack's expansion
Solutions:
Verify with /papi info vaultpack
chevron-right Placeholders 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-right Slot 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%
VaultPack placeholders are optimized for performance:
No database queries per placeholder
Best Practices:
Use placeholders freely in GUIs and scoreboards
Avoid excessive placeholder updates (>20/second per player)
Consider using static displays where possible