UserLogin 用户登录

作者:ElCholoGamer 发布时间:2020年6月25日 原生版本:未知 测试支持:1.12,1.14,1.16,1.17,1.18

一种简单、通用的身份验证系统

点此下载

插件详细介绍

UserLogin 是一款 Minecraft 插件,旨在通过增加身份验证层来防止玩家账户被盗用。它配置简单,支持 FastLogin 实现正版玩家自动登录。


🎉

UserLogin

💡 关于

  • 防止玩家账户被他人使用!
  • 通过简单的配置,为你的服务器添加身份验证安全层。
  • 支持 FastLogin,为正版玩家启用自动登录。

💬 支持

如果你有任何问题或建议,可以通过 Discord 服务器 或在 GitHub 仓库 中提交 issue。 此外,插件还有一个包含常见问题解答的 网站

🛠️ 开发版本

除了 SpigotMC 网站,本插件还在 GitHub 仓库中不断收到新的更新。你可以在这里找到最新的开发版本。

✨ 酷炫功能

  • 简单的玩家身份验证。
  • 密码加密,实现最大安全性。
  • FastLogin 支持正版登录。
  • 完全可自定义的消息。
  • 超时功能,可以踢出挂机的玩家。
  • 登录尝试次数限制。
  • 可切换的未登录玩家限制,例如移动和聊天。
  • 多语言支持。
  • 支持大多数流行的数据库。
  • 良好的 BungeeCord 支持。

🎮 玩家命令

  • /login: 如果已注册且密码正确,则登录。
  • /register: 使用给定的密码注册玩家。
  • /changepassword: 更改玩家当前的密码。

(这些命令是不言自明的)

🛡️ 管理员命令

  • /ul help: 显示所有管理员命令的帮助列表。
  • /ul set [login|spawn]: 将指定的位置设置为玩家的确切位置。
  • /ul reload: 重新加载插件及其配置文件。
  • /ul unregister [player]: 注销指定的玩家,删除其密码。

此外,你还可以为每个命令添加自定义别名,以防你不喜欢默认名称!

🔑 权限

权限节点可以使用 ul.[command] 格式配置,或者使用 ul.* 表示所有权限。

⚙️ 配置

最新的 config.yml 文件可以在这里找到。


# Configuration file for UserLogin

# General configuration options
general:
  # Should the plugin check for updates?
  update-check: true

  # Language of the plugin
  # Available languages: en, es
  language: en

  # After how many failed login attempts should the player be kicked?
  login-attempts: 3

  # Should the plugin automatically register players that join with a premium account?
  auto-login: true

# Security configuration options
security:
  # Encryption algorithm to use
  # Available algorithms: bcrypt, sha256, pbkdf2
  encryption: bcrypt

  # Cost of the bcrypt encryption algorithm
  bcrypt-cost: 12

  # Number of iterations for the pbkdf2 encryption algorithm
  pbkdf2-iterations: 600000

  # Length of the salt for the pbkdf2 encryption algorithm
  pbkdf2-salt-length: 16

# Restrictions configuration options
restrictions:
  # Should players be kicked if they are AFK for too long?
  kick-afk: true

  # After how many seconds should the player be kicked?
  afk-time: 300

  # Should players be restricted from moving if they are not logged in?
  movement: true

  # Should players be restricted from chatting if they are not logged in?
  chat: true

  # Should players be restricted from using commands if they are not logged in?
  commands: true

  # Whitelist of commands that players can use before logging in
  command-whitelist:
    - /login
    - /register

# Database configuration options
database:
  # Type of database to use
  # Available types: mysql, sqlite
  type: sqlite

  # MySQL database configuration options
  mysql:
    host: localhost
    port: 3306
    database: userlogin
    username: root
    password: ""

# BungeeCord configuration options
bungeecord:
  # Is the server running in BungeeCord mode?
  enabled: false

  # IP of the BungeeCord server
  ip: localhost

# Message configuration options
messages:
  # Message to send when the player joins the server
  join: "&aPlease register or login to continue"

  # Message to send when the player registers
  register: "&aYou have successfully registered!"

  # Message to send when the player logs in
  login: "&aYou have successfully logged in!"

  # Message to send when the player changes their password
  change-password: "&aYou have successfully changed your password!"

  # Message to send when the player enters an invalid password
  invalid-password: "&cInvalid password!"

  # Message to send when the player is already registered
  already-registered: "&cYou are already registered!"

  # Message to send when the player is not registered
  not-registered: "&cYou are not registered!"

  # Message to send when the player is already logged in
  already-logged-in: "&cYou are already logged in!"

  # Message to send when the player is not logged in
  not-logged-in: "&cYou are not logged in!"

  # Message to send when the player is kicked for being AFK
  afk-kick: "&cYou have been kicked for being AFK!"

  # Message to send when the player enters too many invalid passwords
  too-many-attempts: "&cToo many invalid login attempts!"

  # Message to send when the player enters an invalid command
  invalid-command: "&cInvalid command!"

  # Message to send when the player does not have permission to use a command
  no-permission: "&cYou do not have permission to use this command!"