Моды/DiscordAuth
DiscordAuth

DiscordAuth

Discord auth for Velocity proxy server

718
12

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

  • /add <name> <discord id> - adds a new account.
  • /remove <name> <discord id> - deletes an existing account.

Minecraft

  • /discordauth reload config - reloads the plugin config.

  • /discordauth reload messages - reloads the plugin messages.

  • /discordauth reload all - reloads the plugin config and messages.

  • /account add <discord id> <name> - adds a new account.

  • /account remove <discord id> <name> - deletes an existing account.

  • /test is a temporary command needed for debugging.

Accounts

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

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

Gallery

Совместимость

Minecraft: Java Edition

1.20–1.21

Платформы

Поддерживаемые окружения

Сервер

Создатели

Детали

Лицензия:MIT
Опубликован:2 года назад
Обновлён:1 год назад
Главная