Skip to content

MCSets/mcsets-luckperms-importer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

LuckPerms Group → Users Map

This folder contains a small script that reads one or more LuckPerms JSON exports and generates a new JSON file mapping group names to the users in those groups.

1) Get the LuckPerms JSON export

On your Minecraft server, run:

/lp export

LuckPerms will create a JSON export file.

2) Put the export(s) next to the script

  • Copy the exported .json file(s) into the same folder as group-map.js
  • Or keep them in any folder you want (the script can take a folder path)

3) Run the script

You need Node.js installed.

From this folder, run:

node group-map.js

Or specify a folder containing your export JSON file(s):

node group-map.js "C:\path\to\your\folder"

Output

The script writes:

  • group-users-map.json

Format:

{
  "groupname": ["User1", "User2"]
}

Changing which groups are included

The script can be configured to only include specific groups.

  • Open group-map.js
  • Edit ALLOWED_GROUPS to the group names you want (lowercase is recommended)

Example:

const ALLOWED_GROUPS = new Set(['champion', 'soldier', 'gladiator', 'echo', 'warlord', 'titan']);

About

Luckperms importer script

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors