适用于 Craftbukkit 1.3.2 R0.1
你是否曾想过将命令存储在数据库中,并在设定的时间后在服务器上执行它们?现在你可以做到这一点(几乎)无需麻烦。这个新插件可以连接并获取存储在数据库中的命令,执行它们,然后记住最后一个命令的 ID,从而确保没有命令被执行两次!它对服务器性能的影响也极小。
.jar 文件中包含源代码文件
配置
将其拖放到你的 /plugins 文件夹中,运行一次服务器并停止它。之后会创建一个名为 SQLScheduler 的文件夹,其中包含 config.yml。在其中填写所有必要的详细信息。
拥有 "sqls.admin" 权限节点的用户会在聊天中看到命令获取/执行失败或成功的通知。
- id_col - 存储每个命令 ID 的数据库列。用于避免重复命令所必需
- com_col - 包含要执行的命令的数据库列
- database - 你的数据库名称
- db_name - 命令所在的表名
- server - 主机服务器的名称。如果需要,也可以在此输入由你的托管公司指定的端口号。通常 "yourserver.com" 就足够了
- user - 访问数据库的用户名
- pass - 该用户名的密码
- debug - 显示额外的调试信息(希望现在已修复)
- last - 最后运行的命令 ID,不要修改此项,否则会导致一切出错
已知问题
示例用途
- 使用网页注册表单来获取建筑者等级
- 使用短信服务向用户出售物品,例如镐子
- 任何需要远程执行命令的场景!
待添加的功能
捐赠
如果你慷慨大方,为什么不支持一下呢?每一分钱都备受感激 :)
Works with Craftbukkit 1.3.2 R0.1
Ever wanted a to store commands in a database and then run them in the server after a set period of time? Well now you can do it, (almost) hassle free with this new plugin which connects and fetches commands stored in a database, executes them and then remembers the last ones ID, so that no commands would be executed twice! It also has minimal impact on server performance.
Source files included in the .jar
Config
Drag and drop it into your /plugins folder, run the server once and stop it. After that a folder named SQLScheduler will be created which contains the config.yml. In there fill out all the details necessary.
People with the "sqls.admin" permission node will see notifications in chat when command fetching/execution fails or succeeds.
- id_col - Database column which houses the ID's for each commands. necessary in order to avoid duplicate commands
- com_col - Database column which has the command to be run in it
- database - Name of your database
- db_name - Name of the table where the commands are
- server - Name of the host server. Also enter the port here if required so by your hosting company. Usually "yourserver.com" is enough
- user - Username to access the database
- pass - Password for that username
- debug - Show extra debug info (Should be fixed now, i hope)
- last - ID of the last command run, don't touch this, it will break everything
Bugs
- None at the moment. If you find any, notify immediately
Sample uses
- Have a web registration form to receive builder rank
- Use a sms service to sell, for say, pickaxes to users
- Whatever needs remote command execution!
Features yet to be added
- Date support
- Ingame command scheduling
Donate
If you're feeling generous, then why not support. Every penny is appreciated :)
评论 0
登录后参与评分
还没有评论,来抢沙发吧