
AstralSync | MySQL and Redis 1.5
Sync placeholders between servers
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 and optionally LuckPerms)
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.
# The database won't work if the `default` value is used.
#
# ===========================================
server_name: default
# The time in ticks that 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: 5
# The data processed by the plugin.
# How to -> identifier: placeholder (or any text if you want to)
data:
players_placeholders:
displayname: '%player_displayname%'
name: '%player_name%'
exp: '%player_exp%'
custom-name: '%player_custom_name%'
server_placeholders:
tps: '%server_tps%'
ram-max: '%server_ram_max%'
uptime: '%server_uptime%'
ram-used: '%server_ram_used%'
# Settings for the database.
storage:
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'
# You have to use MiniMessage!
# Documentation can be found here:
# https://docs.advntr.dev/minimessage/format
message:
header: <color:#ff00bb><b>AstralSync</b></color><dark_gray> » </dark_gray>
no_permission: <header><color:#ff2f00>You don't have permission!</color>
plugin_reloaded: <header><color:#00ff00>Plugin reloaded!</color>
unknown_command: <header><color:#ff2f00>Unknown command!</color>
new_version_available: '<header><color:#00ff00>New version available found: <newer_version></color>'
Commands and permissions:
Only one command! /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)