8 Placeholders
NotMyFault edited this page 2021-04-27 17:49:16 +02:00

Overview

Placeholders allow you to display data from PlotSquared in other plugins. For example with FeatherBoard you can create a scoreboard (sideboard) with the info about the plot you're standing on.

Furthermore, PlotSquared support placeholders from other plugins too.

How to use placeholders

PlotSquared has explicit and official support for PlaceholderAPI and MVdWPlaceholderAPI.

Warn: For the PlotSquared placeholders you don't need to download an PAPI expansion. As opposed to some other plugins, PlotSquared handles everything internally.

Tips for using placeholders in other plugins

Chat-System

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.

PlotSquared placeholders

Tip: If you think a placeholder for PlotSquared should be added, then please check then please raise an an issue here.

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_world_name% Get the name of the world
%plotsquared_has_plot% Displays true or false whether the player has plot
%plotsquared_has_plot_(world)% 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_(World)% 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
%plotsquared_currentplot_localflag_<flag>% Display the value of the flag set on current plot
%plotsquared_currentplot_flag_<flag>% Display the value of the flag set on current plot or if it's not set: display the inherited flag value (worlds.yml)

Use PlaceholderAPI placeholders in PlotSquared

PlotSquared messages and flags support PlaceholderAPI placeholders. The only requirement is that PlaceholderAPI is installed on the server.

As an example, using /plot flag set greeting Welcome %player_name% will send the message "Welcome Steve" when the player Steve enters a plot.

A list of available placeholders can be found here.

Tip: This feature can be completely disabled in settings.yml.