With this plugins you can sync placeholders from PlaceholdersAPI between servers in a easy way.
The plugin works asynchronous, so there's no lag!
To install the plugin:
1. Download and place the plugin in /plugins/ folder. (Install PlaceholderAPI too and optionally Vault)
2. Start server to generate the config, then stop it.
3. Setup the plugin config
4. Start the server
5. Do this for all servers in the network where you want to use the plugin. (You can copy-paste the configs from one server to another but change the server-name variable accordingly!)
How to use the plugin:
After setting up the config, you can use the placeholders %astralsync_player_<server-name>_<placeholder-name>%
for your player placeholders and %astralsync_server_<server-name>_<placeholder-name>%
for your server placeholders.
For example, in the bellow config you can use %astralsync_player_survival_displayname% on any server configured with the same database to retrieve that data.
Different servers can have different values.
# Setup this! Placeholders will use this name.
server_name: survival
# The time in milliseconds the data is processed.
# Note that the placeholders will not update at this exact rate.
# Setting this higher or lower might impact server performance.
sync_time: 50
data:
players_placeholders:
displayname: '%player_displayname%'
name: '%vault_group% %player_name%'
exp: '%player_exp%'
custom-name: '%player_custom_name%'
any-text-you-want: 'Doesn't matter what text you put in, but placeholders with % will always be replaced if they exists in PAPI.'
server_placeholders:
tps: '%server_tps%'
ram-max: '%server_ram_max%'
uptime: '%server_uptime%'
ram-used: '%server_ram_used%'
storage:
# mysql or redis
type: mysql
# The amount of threads/connections to use for the database.
# Don't set lower than 1!
threads: 10
host: localhost
port: 3306
database: database
username: user
password: password
# The prefix for the table name
table_prefix: astralsync_
properties:
useUnicode: 'true'
characterEncoding: utf8
autoReconnect: 'true'
useSSL: 'false'
message:
header: '#ff00bb&lAstralSync &8» '
no_permission: '[header]#ff2f00You don''t have permission!'
plugin_reloaded: '[header]#90fc03Plugin reloaded!'
new_version_available: '[header]#00ff00New version available: &f%latest_version%'
Commands and permissions:
Only one! /astralsync reload
with the permission astralsync.command.reload
In the end, if you want support, you can contact me via email: [email protected] or via discord: nicuch (id: 255288301777321984)