Set up a global LuckPerms Database for your servers

Explaination on how to link all your server's permissions into one LuckPerms database on Atomatrix Server Setups

Each Server Setup has it's own permissions set up with a local H2 database, but if you're setting up a network and want all the permissions linked to a global database, while keeping the rank permissions unique to each gamemode, you'll need to complete a few more steps, and that's explained here.

1. Export permissions to a file

Run the command /luckperms export <file> to export your permissions for that server.

2. Change storage method

Change storage method in the LuckPerms config by changing the storage-method key and adjusting the details for your database just below.

Set the name of your server in the config too by changing the server key (found near the top of the file). This is a backend name that'll be used by LuckPerms to identify your server. Then restart your server.

3. Import permissions

Once your server is restarted, re-import your permissions by running the command /luckperms import <file> . Then, before you do this for any other servers, proceed to the next step.

4. Bulk update server contexts

run the following command on your server to set any uncategorised server permissions to the server name you're using.

/lp bulkupdate groups update server <server-name> "server == global"  

Replace "<server-name>" with the name you set for the server earlier. For example, if I was uploading permissions for my Lifesteal server at this time, I'd run the command:

/lp bulkupdate groups update server lifesteal "server == global"  

Struggling to change storage types? See the official LuckPerms documentation here.

Last updated

Was this helpful?