HomeJavaModsDiscordAuth
DiscordAuth
ModsJava

DiscordAuth

by orewaee · on Modrinth

Which Minecraft do you have?

Every version of the game needs its own build. Pick yours, then download — the wrong build installs fine and then does nothing in the game. This mod is built for Velocity only.

⬇ Download for 1.21⬇ Download for 1.20.1–1.20.4⬇ Download for 1.20
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
DiscordAuth — screenshot 1DiscordAuth — screenshot 2DiscordAuth — screenshot 3DiscordAuth — screenshot 4

DiscordAuth

DiscordAuth

DiscordAuth is a plugin that allows you to quickly and easily set up Discord authorization for your Velocity proxy. At the moment the plugin is under development, so some parts of the plugin may be changed. If any issue occurs, please report it to issues.

Installation

To set up DiscordAuth, there are several steps you need to follow.

First you need to set up a Velocity proxy. There must be at least two child servers, one of which will be a lobby. Its name must be specified in config.toml.

It is also important to specify the Discord bot token and user ID, which will be able to use the commands of this very bot in config.toml.

In general, these are all the necessary settings.

The properties found in the config.toml and messages.toml files can be freely modified.

Example of config.toml settings:

# Path to the file where player accounts will be stored
accounts_file_name = "plugins/DiscordAuth/accounts.json"

# Lifetime in seconds of the key and session, respectively
key_expiration_time = 60
session_expiration_time = 3600

# Server lobby name
lobby_server_name = "lobby"

# Discord bot token
bot_token = ""

# Discord admin
discord_admin_id = ""

Commands

Discord

Minecraft

Accounts

Accounts are stored in JSON format. The schema is presented below:

[
    {
        "name": "",
        "discordId": ""
    },
    
    ...
    
    {
        "name": "",
        "discordId": ""
    }
]

Gallery

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