MySQL Register
一款简单的插件,允许用户执行 /register 命令。请注意,这不是一个游戏内注册插件,它是专门为那些想要为服务器建立网站,并确保玩家无法窃取他人游戏名称(IGN)的人设计的。
本插件使用了 SQLibrary,在此非常感谢其创建者 PatPeter。它已包含在 JAR 文件中,您无需将其作为单独的插件安装。
用法:
/register [邮箱] [密码] [确认密码]
设置:
只需将此插件放入您的 plugins 文件夹,启动服务器,系统应会生成一个默认配置文件。它将尝试使用默认设置进行连接,并在控制台打印大量错误信息。停止服务器,然后按照以下说明配置您的连接。
配置文件:
connection:
hostname: localhost #MySQL 服务器的 hostname/IP,默认为 localhost
port: 3306 #MySQL 连接的端口号(如果您不知道为什么要更改它,请勿修改此值),默认为 3306
name: minecraft #包含存储用户名、密码和电子邮件的表的数据库,默认为 minecraft
username: plugin #连接的账号用户名,默认为 plugin
password: password #连接的密码,默认为 password
database:
table-name: users #数据将存储到的表名,默认为 users
user-column: username #注册玩家的用户名将存储到的列名,默认为 username
password-column: password #密码将存储到的列名(需要至少接受 32 个字符,因为密码采用 MD5 哈希处理),默认为 password
email-column: email #电子邮件将存储到的列名,默认为 email
hashing: md5 #使用的哈希算法,选项有 md5、sha1 或 none。默认为 none,任何非 md5 或 sha1 的值也将默认为 none。
权限:
本插件使用默认的 Bukkit Permissions API,这可能与某些插件不兼容。
授予注册命令访问权限的权限节点是
当前功能:
- 简单的注册格式
- 电子邮件验证
- 自定义表名
- 自定义列名
计划中的功能:
- 确认邮件
- 本地化(计划支持俄语、西班牙语、法语)
- 不同的密码加密设置
GitHub:
前往 GitHub 关注项目的开发动态
MySQL Register
A simple plugin that allows your users to /register. Please note that this is not a in-game registration plugin, it is made specifically for those who want a website for their server, and want to make sure their players cannot steal another's IGN.
This plugin uses SQLibrary, and I greatly appreciate PatPeter, who created it. It is included in the JAR, and you don't need to install it as a separate plugin.
Usage:
/register [Email] [Password] [Password Confirmation]
Setup:
Simply put this plugin in your plugins folder, launch your server, and a default config file should be generated. It will try to connect using the default details, and will print a bunch of errors to console. Stop your server, and follow the below instructions to set up your connection.
The config file:
connection:
hostname: localhost #The hostname/IP of the MySQL server, defaults to localhost
port: 3306 #The port for the MySQL connection (don't change this if you don't know why you need to,) defaults to 3306
name: minecraft #The database that is contains the table containing usernames, passwords, and emails, defaults to minecraft
username: plugin #The username for the connection, defaults to plugin
password: password #The password for the connection, defaults to password
database:
table-name: users #The table name that the data is going to be stored in, defaults to users
user-column: username #The name of the column that the username of a player that registers is going to be stored in, defaults to username
password-column: password #The name of the column that the password is going to be stored in (needs to be accept at least 32 characters, since the password is hashed in MD5,) defaults to password
email-column: email #The name of the column that the email is going to be stored in, defaults to email
hashing: md5 #The hashing to be used, options are md5, sha1, or none. Defaults to none, anything that is not md5 or sha1 will also default to none.
Permissions:
This plugin uses the default Bukkit Permissions API, which may not work with some plugins.
The permissions node that gives access to the register command is
Current Features:
- Simple register format
- Email verification
- Table name customization
- Column name customization
Planned Features:
- Confirmation Email
- Localization (Plans for Russian, Spanish, French)
- Different password encryption settings
GitHub:
Follow the project's development over at GitHub
评论 0
登录后参与评分
还没有评论,来抢沙发吧