通用信息:
此插件从 MySQL 数据库中读取命令,并以控制台操作权限执行这些命令。
功能特性:
- 自动从表中提取命令
- 可配置登录数据
- 间隔时间:可配置(以分钟为单位定义)
- 查询在配置中定义的端口(默认为 3306)
- 可选在执行后从表中删除命令
安装与配置:
要安装此插件,只需在位于 "plugins/MySQL-Reader/config.yml" 的插件配置文件中指定 MySQL 服务器的登录数据即可。
之后,您需要重新加载服务器。
现在,创建一个在配置文件中指定的名称对应的列。
该列必须包含 SQL 类型为 "VARCHAR" 的项目。
现在,输入您的命令并享受乐趣吧 :D
即将推出的功能:
- 用于添加和移除任务的游戏中命令
- 用于更改配置的游戏内命令
已知问题:
目前没有任何已知问题!欢迎报告任何问题!
更新日志:
1.0:
2.0:
- 添加了以分钟为单位的间隔配置选项
- 添加了可自定义的列名
- 添加了可自定义的端口
- 重命名了一些类
- 在 plugin.yml 文件中添加了描述
3.0:
- 添加了仅使用一次命令的配置选项
- 修复了连接未正确关闭的问题
示例配置:
Config:
server: localhost
table: bukkit
database: bukkit
user: root
password: password
port: 3306
column_name: commands
interval: 5
singleuse: false
General:
This plugin reads commands from a MySQL database and performs them with operating rights to the console.
Features:
- Automated extraction of commands from a table
- Login data configurable
- Interval: Configurable (defined in minutes)
- Query on the port which is defined in config (by default, it is 3306)
- Deleting commands from the table after execution if you want to
Installation and configuration:
To install the plugin you just have to specify the login data to the MySQL server in the plugin's configuration file which is found in "plugins/MySQL-Reader/config.yml".
After that, you have to reload your server.
Now, create a column with that name you have specified in the configuration file.
This column has to contain items of the SQL type "VARCHAR".
Now, just enter your commands and have fun :D
Upcoming Features:
- Ingame commands to add and remove tasks
- Ingame commands to change the configuration
Known Bugs:
No bugs are actually known! Feel free to report some!
Changelog:
1.0:
2.0:
- Added configuration option for interval in minutes
- Added adjustable column name
- Added adjustable port
- Renamed some classes
- Added description to the plugin.yml file
3.0:
- Added configuration option for using the commands just once
- Fixed connection not closing properly
Sample config:
Config:
server: localhost
table: bukkit
database: bukkit
user: root
password: password
port: 3306
column_name: commands
interval: 5
singleuse: false
评论 0
登录后参与评分
还没有评论,来抢沙发吧