Placeholders allow you to display data from any BentoBox's addons or gamemodes in other plugins. And the opposite is true as well!
How to use placeholders?
Download the placeholder API you need.
As of 1.5.0, BentoBox supports both PlaceholderAPI and MVdWPlaceholderAPI.
We highly recommend that you use PlaceholderAPI. In fact, MVdWPlaceholderAPI provides us with way less flexibility with our placeholders than PlaceholderAPI does. As such, we may provide limited support for issues related to MVdWPlaceholderAPI.
Launch the server and you're ready to go!
Regardless of the placeholder API you're using, just start the server. There are no expansions to download: BentoBox handles everything!
How to display a placeholder in the chat?
If you're using EssentialsChat and PlaceholderAPI, you must install ChatInjector in order for the placeholders to show up in the chat. However, please note it has been reported that ChatInjector might cause issues.
We recommend you to use an alternative chat plugin which supports PlaceholderAPI, such as ChatControl.
How to suggest a new placeholder?
If you think a placeholder for BentoBox or another default placeholder for gamemodes should be added, then please submit us a placeholder request.
Default placeholders for gamemode addons
As of BentoBox 1.4.0, all gamemode addons get some default placeholders automatically registered to them.
As of 1.5.0, changes were made (and some placeholders added) to ensure a more fluent and convenient usage of these placeholders.
Available default placeholders in 1.12.0.
Placeholder | Description | Version |
---|---|---|
%[gamemode]_world_friendly_name% | Name of the gamemode's world | 1.4.0 |
%[gamemode]_world_islands% | Number of islands in this gamemode's world | 1.5.0 |
%[gamemode]_island_distance% | Half the distance between islands' centers of the gamemode's world | 1.4.0 |
%[gamemode]_island_distance_diameter% | Distance between islands of the gamemode's world | 1.5.0 |
%[gamemode]_island_protection_range% | Radius of the island's protection range | 1.4.0 |
%[gamemode]_island_protection_range_diameter% | Diameter of the island's protection range | 1.5.0 |
%[gamemode]_island_owner% | Name of the island's owner | 1.4.0 |
%[gamemode]_island_creation_date% | Creation date of the island | 1.4.0 |
%[gamemode]_island_name% | Name of the island | 1.4.0 |
%[gamemode]_island_center% | Coordinates of the island's center | 1.5.0 |
%[gamemode]_island_center_x% | X coordinate of the island's center | 1.5.0 |
%[gamemode]_island_center_y% | Y coordinate of the island's center | 1.5.0 |
%[gamemode]_island_center_z% | Z coordinate of the island's center | 1.5.0 |
%[gamemode]_island_members_max% | Maximum number of members there can be on the island | 1.5.0 |
%[gamemode]_island_members_count% | Number of members, subowners and owner there are on the island | 1.5.0 |
%[gamemode]_island_trustees_count% | Number of players trusted to the island | 1.5.0 |
%[gamemode]_island_coops_count% | Number of players cooped to the island | 1.5.0 |
%[gamemode]_island_visitors_count% | Number of players currently visiting the island | 1.5.0 |
%[gamemode]_island_bans_count% | Number of players banned from the island | 1.5.0 |
%[gamemode]_visited_island_protection_range% | Radius of the protection range of the island the player is standing on | 1.5.2 |
%[gamemode]_visited_island_protection_range_diameter% | Diameter of the protection range of the island the player is standing on | 1.5.2 |
%[gamemode]_visited_island_owner% | Name of the owner of the island the player is standing on | 1.5.2 |
%[gamemode]_visited_island_creation_date% | Creation date of the island the player is standing on | 1.5.2 |
%[gamemode]_visited_island_name% | Name of the island the player is standing on | 1.5.2 |
%[gamemode]_visited_island_center% | Coordinates of the center of the island the player is standing on | 1.5.2 |
%[gamemode]_visited_island_center_x% | X coordinate of the center of the island the player is standing on | 1.5.2 |
%[gamemode]_visited_island_center_y% | Y coordinate of the center of the island the player is standing on | 1.5.2 |
%[gamemode]_visited_island_center_z% | Z coordinate of the center of the island the player is standing on | 1.5.2 |
%[gamemode]_visited_island_members_max% | Maximum number of members there can be on the island the player is standing on | 1.5.2 |
%[gamemode]_visited_island_members_count% | Number of members, subowners and owner there are on the island | 1.5.2 |
%[gamemode]_visited_island_trustees_count% | Number of players trusted on the island the player is standing on | 1.5.2 |
%[gamemode]_visited_island_coops_count% | Number of players cooped to the island the player is standing on | 1.5.2 |
%[gamemode]_visited_island_visitors_count% | Number of players currently visiting the island the player is standing on | 1.5.2 |
%[gamemode]_visited_island_bans_count% | Number of players banned from the island the player is standing on | 1.5.2 |
%[gamemode]_has_island% | Whether the player has an island or not | 1.5.0 |
%[gamemode]_rank% | Rank the player has on his island | 1.5.0 |
%[gamemode]_resets% | Number of times the player has reset his island | 1.5.0 |
%[gamemode]_resets_left% | Number of times the player can reset his island | 1.5.0 |
%[gamemode]_deaths% | Number of times the player died | 1.12.0 |
See also
Gamemodes and Addons can also bring their own placeholders. We highly recommend that you look up the following pages, which are likely more adapted to your needs.
Getting started
- Install BentoBox
- Migration from ASkyBlock or other plugins
- Set a BentoBox world as the server default world
- Database transition