▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Плагины/DiscordAuth
DiscordAuth

DiscordAuth

Discord auth for Velocity proxy server

Оцените первым
1.1K
14

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:

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

Gallery

Партнёрский материал

Сервер для плагина DiscordAuth - как у профи

Плагин DiscordAuth создан для серверов: на своём сервере вы настраиваете его под себя и решаете, кому играть. Создать сервер с плагином DiscordAuth для друзей можно за пару минут - BungeeHost всё уже подготовил.

Часто задаваемые вопросы

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

Minecraft: Java Edition

1.21.x1.20.x

Платформы

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

Сервер

Ссылки

Создатели

Детали

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