Skip to content
This repository has been archived by the owner on Oct 18, 2021. It is now read-only.

Placeholders

NotMyFault edited this page Feb 16, 2020 · 7 revisions

Placeholders allow you to display data from PlotSquared in other plugins using FeatherBoard or PlaceholderAPI.

How to use placeholders?

Download the placeholder API you need.

As of 5.0, PlotSquared natively supports PlaceholderAPI and 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: PlotSquared handles everything internally!

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 DeluxeChat.
To display them via PlaceholderAPI use the following format: %plotsquared_<placeholder>%
To display them via FeatherBoard use the following format: {placeholderapi_plotsquared_<placeholder>}

How to suggest a new placeholder?

If you think a placeholder for PlotSquared should be added, then please submit us a placeholder request.

Available placeholders in 5.0

Placeholder Description
%plotsquared_currentplot_alias% Alias of the plot
%plotsquared_currentplot_owner% Owner of the plot
%plotsquared_currentplot_members% Amount of players added and trusted to the plot
%plotsquared_currentplot_members_added% Amount of players added to the plot
%plotsquared_currentplot_members_trusted% Amount of players trusted to the plot
%plotsquared_currentplot_members_denied% Amount of members denied from the plot
%plotsquared_currentplot_world% Get the name of the plotworld
%plotsquared_has_plot% Displays true or false whether the player has plot
%plotsquared_has_plot_% Displays true or false whether the player has plot in a specific world
%plotsquared_has_build_rights% Displays true or false whether the player has build rights on the plot
%plotsquared_plot_count% Amount of global plots of a player
%plotsquared_plot_count_% Amount of plots for a player in a specific world
%plotsquared_allowed_plot_count% Amount of maximum plots a player can have
%plotsquared_currentplot_xy% Displays the X and Y ID of a plot
%plotsquared_currentplot_x% Displays the X ID of a plot
%plotsquared_currentplot_y% Displays the Y ID of a plot
%plotsquared_currentplot_rating% Displays the average rating of a plot
%plotsquared_currentplot_biome% Displays the biome of a plot
Clone this wiki locally