DiscordAuth 图标

DiscordAuth

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 0.4.1
本资源为搬运资源,原资源地址: https://modrinth.com/mod/discord-auth
资源信息

Minecraft 版本: 1.20 1.21

平台: velocity

标签: management utility

资源介绍

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

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Inventory BlackList

价格:0 墨喵币
下载量:0

查看详情
Ty Admin Menu

价格:0 墨喵币
下载量:0

查看详情
Minimalist GUI (Mods Support)

价格:0 墨喵币
下载量:0

查看详情
Scavenger

价格:0 墨喵币
下载量:0

查看详情