StaticPlaceholders
1.8 -> 1.21
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
StaticPlaceholders is a very simple plugin that allows you to create your own placeholders very easily and quickly. You can also create your
own placeholders that work with the placeholders of other plugins!
This plugin is very good to keep your placeholders in order so that they are not scattered in different configuration files.
You can use StaticPlaceholders using:
%static_{YourStaticPlaceholderHere}%
An example of use that will make your life and work organization easier:
Would you like to create chest-items generator in your minigame? Would you like to make different types of chests in which the generated items are different from other chests? Instead of setting a specific name for each chest individually, set a StaticPlaceholders in it! Why? If your chest name should change, you won't have to change the name for each chest individually again - just go into the StaticPlaceholder config, change placeholders that you used for chests, and you got it! All chests names are changed!
You can also create more simple solutions like setting a link to your website in the placeholder and using StaticPlaceholder in other plugins. When your website link changes, you can change the link from a single file!
━━━━━━━━━━━━━━━━━━━━━
Requirements ━━━━━━━━━━━━━━━━━━━━━
To make this plugin work, you must install PlaceholderAPI to your server!
━━━━━━━━━━━━━━━━━━
Permissions and Commands ━━━━━━━━━━━━━━━━━━
/staticplaceholdersreload ( staticplaceholders.reload ) - Command that reloads configuration files
━━━━━━━━━━━━━━━━━━━━━━━
Config.yml ━━━━━━━━━━━━━━━━━━━━━━━
Code (YAML):
# Static placeholders. You can enter what placeholder you want on the left, and on the right the value it should convert to.
# You can also add other placeholders on the right side (where you convert to the new value) if 'parseNestedPlaceholders' is true.
staticPlaceholders:
website
: https://www.google.com
website_message
: '
%static_website% is nice website!'
# If 'true', other placeholders (if any set) will be applied to the list of static placeholders.
parseNestedPlaceholders
: true
# Message sent to player who does not have permission to reload staticplaceholders configs.
noPermissionMessage
: '&cYou don''t have permissions to do that!'
# Message sent to a player who has successfully reloaded staticplaceholders configs.
successfullyReloadedMessage
: '&aConfigs have been successfully reloaded!'