DBPassword v0.7 by Chausser
Description:
此插件旨在允许服务器上的玩家设置密码,并将其保存到 MySQL 数据库中。这也是我的第一个 Java 项目以及第一个 Bukkit 插件。本插件在很大程度上受到了 Noneofyourbusiness 及其 Password 插件的启发。
我如何使用此插件:在我的服务器 (mcserver.nkings.com) 上,所有加入服务器的用户都会以随机密码添加到用户数据库中。他们必须使用此插件在游戏内设置自己的密码,之后才能访问网站的会员部分。
密码功能的工作原理如下: hash(salt+password);
例如,如果您使用 MD5 哈希算法和盐值 "MyS@LT",并给定密码 "password",则函数为: MD5(MyS@LTpassword) = 364a711788b4dff21173f96181e13019
如果您不想对密码使用盐值而只想对其进行哈希处理,只需将配置文件中的盐值设置为:""
Features
- 完全可配置的数据库连接信息,包括:
- 主机地址
- 主机端口
- 数据库名称
- 数据库表名
- 数据库用户名
- 数据库密码
- 能够自定义表的列名:
- id
- username
- password
- salt
- 以及支持多种加密类型:
- MD5
- SHA-1
- SHA-256
- SHA-384
- SHA-512
- 所有这些都带有可选的安全盐(动态生成或预定义)
Installation
- 下载并将插件 jar 文件复制到您的 plugins 文件夹中
- 启动服务器,这将构建默认配置文件
- 停止服务器,根据需要更新所有配置设置。
- 再次启动服务器,即可正常使用。
Upgrading From A Previous Version
- 您需要备份配置文件,并让插件生成一个新的配置文件。最新版本几乎完全重写了配置文件
- 一旦插件生成了新的配置文件并且您已更新了设置,即可再次正常使用。
Permission
可选地,仅允许拥有特定权限节点的用户设置/更新其密码
- dbp.*
- dbp.set
- dbp.update
- dbp.reload
Commands
- /dbp set <password> - 设置您的密码
- /dbp update <password> - 更新您的密码
- /dbp reload - 重新加载配置,无需重启服务器。
Known Issues
- 在数据库表生成后在配置文件中设置列名不会自动更新数据库表。如果您想使用此选项,则需要手动更新表。
Change Log
- v0.8 - 添加了自定义表列名的功能。
- v0.7 - 添加了许多新功能,包括动态生成盐、能够将盐保存到数据库中定义的字段。已在 1.2.3-R0.1 和 1.1-R6/7 上测试通过
- v0.6 - 为 CB1.1-R4 更新 - 添加了更多哈希类型,清理了 SQL 语句,将权限切换为仅支持 SuperPerms
- v0.5 - 为 RB 1317 更新 - 一些主要的命令重构。希望修复了密码未能正确哈希的问题。
- v0.4 - 为 RB 1240 更新 - 添加了对 SuperPerms 的支持
- v0.3 - 更改了默认配置值,使其不使用单引号和双引号。
- v0.2 - 修复了端口问题。添加了更好的权限支持。稍微重构了命令。添加了重载命令,这样您就不必为了更改设置而重新启动服务器
- v0.1 - 初始发布
DBPassword v0.7 by Chausser
Description:
This plugin is meant to allow players on your server to setup a password and have it save to a MySQL database. This is my first ever java project as well as my first Bukkit Plugin. This plugin was largly inspired by Noneofyourbusiness and his Password plugin.
How I use this plugin: On my server (mcserver.nkings.com) all users that join the server are added to the users database with a random password. They have to set their password in game using this plugin before they can access the members section to the website.
The password function works like this: hash(salt+password);
For example if you are using the MD5 hash and a salt of "MyS@LT" and its given a password of "password" the funtion would be: MD5(MyS@LTpassword) = 364a711788b4dff21173f96181e13019
If you do not want to use a salt for your passwords you just want to hash them you can just set the salt in the config file to: ""
Features
- Fully Configurable Database connection info including:
- Host Address
- Host Port
- Database Name
- Database Table Name
- Database Username
- Database Password
- Ability to customize the column names for the table:
- id
- username
- password
- salt
- As well as support for both many encryption types:
- MD5
- SHA-1
- SHA-256
- SHA-384
- SHA-512
- All with an optional security salt(dynamically generated or pre defined)
Installation
- Download and copy the plugin jar to your plugins folder
- Start your server, this will build the default config file
- Stop your server, Update all config settings to your liking.
- Start your server again, and you should be good to go.
Upgrading From A Previous Version
- You will need to back up your config file and let the plugin generate a new one. The latest version has almost a complete reworking of the config file
- Once the plugin has generated the new config file and you have updated the settings you should be good to go again.
Permission
Optionally only allow users with a certain permission node to set/update their passwords
- dbp.*
- dbp.set
- dbp.update
- dbp.reload
Commands
- /dbp set <password> - set your password
- /dbp update <password> - updates your password
- /dbp reload - reloads the configuration without the need to restart the server.
Known Issues
- Setting the column names in the config after the database table has been generated will not update the database table automatically. If you want to use this option you will need to update the table manually.
Change Log
- v0.8 - Added the ability to customize the column names of the table.
- v0.7 - Added a lot of new features including, dynamic salt generating, the ability to save that salt to a defined field in the database. Tested for 1.2.3-R0.1 and 1.1-R6/7
- v0.6 - Updated for CB1.1-R4 - Added more hash types, cleaned up the sql statements, switch permissions to superperms only
- v0.5 - Updated for RB 1317 - Some major command restructuring. Hopefully fixed issue where passwords were not getting hashed correctly.
- v0.4 - Updated for RB 1240 - Added support for SuperPerms
- v0.3 - Changed the default config values so that they dont use the single and double quotes.
- v0.2 - Fixed the port issue. Added better permission support. Restructured the command a little bit. Added a reload command so you don't have to reboot the server to change settings
- v0.1 - Initial Release
下载 DBPassword
下载 DBPassword
下载 DBPassword
下载 DBPassword
下载 DBPassword
下载 DBPassword
下载 DBPassword
下载 DBPassword
- 已针对最新 CB 构建版本 1.4.6-R0.3 进行测试
- 根据用户请求,添加了为数据库表配置列名的功能
新增配置选项:
custom_columns_for_table:
id: 'id'
username: 'username'
password: 'password'
salt: 'salt'
这些选项允许你自定义表所使用的列名。
如果在表已经生成后更改了列名,插件不会自动更新数据库中的列名,这会导致错误。你需要手动在数据库中更新列名,或将配置选项更改为与表结构匹配。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
ExyliaPlugins 的库。
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
插件
一个用于 Minecraft 服务器的权限插件/模组。
插件
创建用户友好的菜单以前往不同的世界
插件
专为 Velocity 打造的自制聊天插件,功能丰富——支持跨服群组/全局/私聊消息,并集成 LibertyBans 的禁言功能。
评论 0
登录后参与评分
还没有评论,来抢沙发吧