HomeJavaModsLive Whitelist
Live Whitelist
ModsJava

Live Whitelist

by cyber98 · on Modrinth

A mod that allows you to connect your server to an api or discord bot to allow or disallow connections based on uuid

⬇ Download on Modrinth

A mod by cyber.98

This very simple mod allows you to connect to an api running somewhere on the internet (or on your machine) to validate or invalidate minecraft UUIDS. This was originally intended to be used with a discord bot running an api, but is completely valid outside of that use case. If you'd like to use the discord bot to make sure specific people have a role before joining, please skip to that section.

Configuration settings

The mod has two configuration settings:

api:[a url by default]
message:[a string by default]

Setting up an API

API setup is super simple. It should meet the following guidelines:

URLS:
[base url defined in config]/[minecraft uuid sent from the server] // make sure you have something to parse the url bar, as the server sends get requests, not post requests.

Responses:

{
  "verified":boolean
}

It's that easy (at least for this version)

Discord bot setup

This mod comes feature complete with a discord bot! Follow these steps to allow users to authenticate using the discord bot instead of having to make your own api!

Prerequisites

Usage:

/link uuid:[uuid] -> will link your discord account to your mojang account. if you don't know your uuid, try joining the server first, the server will tell it to you (assumming the api is running already). /unlink -> pretty self-explanatory, will remove your entry from the database, allowing you to relink it /ping -> gets the status of the api and some response times

setup guide

Head to The github page for the bot and download the source code as a zip. extract it, and open the root folder and run

npm install

and wait a few moments for it to get the required packages. afterwards, create a config.json file with the following information (fill in the fields)

{
    "token":"discord bot token",
    "botname":"a name you wanna see in the terminal for the bot",
    "author":"your name",
    "clientId":"the bots client id",
    "adminids":["your user id"],
    "authorid":"your user id",
    "roleID":"the id of the role you want to look for"
}

your discord bot will need: Guild install only. Public bot off (unless you are not discord server admin) Server members intent. These permissions: Replace this with a descriptionScopes: application.commands, bot || Permissions: Use slash commands

Add in your token, and you're ready to hit the ground running! To run the script, open the folder and run

npm start
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more