MCrosAuthRegister
MCrosAuthRegister 用于防止服务器被未认证的账号使用。新加入的玩家必须先注册或登录,才能移动、与方块或实体交互、使用物品栏、拾取或丢弃物品、战斗,或执行配置中预登录白名单之外的命令。这填补了玩家加入服务器到服务器确认玩家控制该账号之间的安全空白。
玩家账号数据会持久保存。管理员可以设置密码长度和字符规则、登录超时时间和尝试次数限制,以及是否在认证前屏蔽聊天功能。输出支持英文和俄文。
玩家命令
这些命令需要相应的权限,默认情况下对玩家启用。
/register <password> <repeat password> 或 /reg <password> <repeat password> — 创建新账号并在保存前确认密码。
/login <password> 或 /l <password> — 认证已有账号并解锁玩家会话。
/my_password edit <old password> <new password> <repeat new password> 或 /mypassword edit ... — 在验证当前密码后更改玩家的密码。需要 mcrosauth.login 权限。
管理员访问与命令
/mcros authregister password settings min_lenght <number> — 设置密码的最小允许长度。min_length 可作为其拼写变体使用。
/mcros authregister password settings max_lenght <number> — 设置密码的最大允许长度。max_length 可作为其拼写变体使用。
/mcros authregister password settings symbols list — 显示当前允许的密码字符列表。
/mcros authregister password settings symbols only_letter — 仅允许字母。
/mcros authregister password settings symbols only_numbers — 仅允许数字。
/mcros authregister password settings symbols can_space <true|false> — 允许或禁止在密码中使用空格。
/mcros authregister password settings symbols custom_list <characters> — 定义一组自定义的允许字符。
/mcros authregister 路由同样需要 API 访问权限:操作员状态、mcrosapi.admin 权限,或存在于 API 白名单中。密码管理额外要求操作员状态或 mcrosauth.admin 权限。mcrosauth.bypass 权限可使管理员免于身份验证要求。这些控制机制有助于服务器减少未授权访问,一致地执行密码规则,并确保玩家在通过身份验证之前游戏处于锁定状态。
MCrosAuthRegister
MCrosAuthRegister protects a server from unauthenticated account use. New arrivals must register or log in before they can move, interact with blocks or entities, use inventories, pick up or drop items, fight, or run commands outside the configured pre-login allow-list. This closes the gap between a player joining the server and the server confirming that the player controls the account.
Player account data is saved persistently. Administrators can set password length and character rules, login timeout and attempt limits, and whether chat is blocked before authentication. Output supports English and Russian.
Player commands
These commands require the corresponding permission, which is enabled by default for players.
/register <password> <repeat password> or /reg <password> <repeat password> — creates a new account and confirms the password before saving it.
/login <password> or /l <password> — authenticates an existing account and unlocks the player's session.
/my_password edit <old password> <new password> <repeat new password> or /mypassword edit ... — changes the player's password after verifying the current one. Requires mcrosauth.login.
Administrator access and commands
/mcros authregister password settings min_lenght <number> — sets the minimum accepted password length. min_length is accepted as an alternate spelling.
/mcros authregister password settings max_lenght <number> — sets the maximum accepted password length. max_length is accepted as an alternate spelling.
/mcros authregister password settings symbols list — displays the currently allowed password characters.
/mcros authregister password settings symbols only_letter — permits letters only.
/mcros authregister password settings symbols only_numbers — permits digits only.
/mcros authregister password settings symbols can_space <true|false> — allows or forbids spaces in passwords.
/mcros authregister password settings symbols custom_list <characters> — defines a custom set of allowed characters.
The /mcros authregister route also requires API access: operator status, mcrosapi.admin, or an entry in the API allow-list. Password administration additionally requires operator status or mcrosauth.admin. The mcrosauth.bypass permission can exempt an administrator from the authentication requirement. These controls help servers reduce unauthorized access, enforce password rules consistently and keep gameplay locked until a player has authenticated.
评论 0
登录后参与评分
还没有评论,来抢沙发吧