=== 注意:出于所有实际目的,此插件已停用。尽管我无论如何也无法弄清楚如何手动将其设置为非活跃项目,但我在此处放置此通知供所有人阅读。对此表示抱歉!也许将来我会回来继续维护它,但目前我只是没有时间。 ===
CommandLimiter 是 CodeEx 团队制作的首款插件。我们曾浏览 Bukkit Dev 并询问其他服务器管理员他们想要/需要什么样的插件。经过 extensive research(广泛研究),我们相信(希望 :P)这可能是首个公开发布的此类命令限制插件。
描述:
CommandLimiter 允许服务器管理员定义一个命令以及该命令在服务器上可以被玩家使用的次数。它非常简单易用,即使你是第一次处理属性文件或运行 Bukkit 服务器也能轻松上手。只需将插件放入 plugins 文件夹并启动服务器即可!
注意:如果你希望使用命令消耗货币功能,你必须在服务器上安装 Vault。获取地址:Vault BukkitDev
特性:
- 配置非常简单
- 安装和设置非常容易
- 轻量级数据存储,无需数据库
- 可配置的提示信息,如错误信息、一次性使用后提示、无更多使用次数提示等
- 可在属性文件中设置每个命令的使用次数限制
- 任何命令都可以被限制!包括带有参数的命令!(例如 /cl reload 等)
- 提供游戏内命令以方便重新加载插件或清除(重置)用户数据
- 支持权限系统!(已在 BukkitPermissions 上测试,应该适用于所有权限插件)
- 允许通过命令对数据进行单独编辑!(/cl setlimit)
- v2.4 新增功能 现在可以让命令花费货币!(需使用 Vault)
- v2.4 新增功能 可以为命令设置 独立冷却时间!!
命令与权限:
权限
- cl.*
description: 授予所有 CommandLimiter 命令的访问权限(不包括 cl.ignore!)
- cl.reload
description: 授予重载命令的访问权限。
- cl.purge
description: 授予清除命令的访问权限。
- cl.setlimit
description: 授予设置命令的访问权限。
- cl.info
description: 授予信息命令的访问权限。
- cl.ignore
description: 插件完全忽略拥有此权限的组/玩家。
命令
/cl reload - 重新加载插件。你可以对属性文件进行任何更改(例如添加新命令),然后使用此命令重新加载所有内容,而无需删除数据文件。
/cl purge [name] - 将玩家的数据重置为属性文件中定义的默认值。“Purge”可能不是这个命令的最佳命名,因为它有些误导性。
/cl info [name] - 显示玩家在每个命令上剩余的使用次数。
/cl setlimit [name] [command] [limit] - 为玩家设置的特定命令设定使用次数限制。
请记住,如果你是 OP(操作员),你可以像使用任何其他插件一样,在不具备节点权限的情况下使用这些命令。
如果你是从 v2.1 或更低版本升级到 v2.4,你必须删除整个包含数据库的 CommandLimiter 文件夹才能使其正常运行!!这是由于数据库结构的更改所致。
属性文件说明:
访问:此链接
当前已知问题:
尚未报告任何 bug :D
待办事项:
- 探索增加消息的可定制性
- 添加按组限制的功能
- 添加选项,使某些命令可以无限使用,而其他命令有限制
更新日志:
版本 2.4.2 - 由 JazzKr 发布
- 更新至新的事件监听系统,希望能保持与 R5 兼容……如果不兼容,预计很快会有另一个更新。
- 注意:重构计划即将实施……只要我抽出时间!
版本 2.4.1 - 由 JazzKr 发布
- 添加了付费一次后永久使用该命令的功能(注意:如果删除 CL.data,这将重置,你需要再次付费!)
- 一般性 bug 修复
版本 2.4 - 由 lookatmego 和 JazzKr 发布
- 添加了冷却时间支持!
- 添加了经济支持!(通过 Vault,因此现在是一个软依赖项)
- 修改了整个数据存储系统以适应引入的新功能
- 重构了许多命令以支持存储系统的更改
- 增加了更多可配置属性!
- 将 /cl set 更改为 /cl setlimit,以便将来可以添加用于设置冷却时间和费用的其他命令
- 修复了命令处理 bug
- 一般性 bug 修复
版本 2.1.1 - 由 JazzKr 发布
- 修复了我在使用清除命令时犯下的愚蠢错误,感谢 lookatmego 发现它!!
版本 2.1 - 由 JazzKr 发布
- 重写了数据刷新的方式,现在它还会“修剪”,从而移除之前使用中但不再活跃的指令记录
- 改进了命令识别方式,现在如果“基础”命令(如 /cl)被阻止,它将阻止该树下的所有命令(/cl set, /cl purge 等,即所有以 /cl 开头的命令)
- 现在可以阻止带有参数的命令,在属性文件中添加了一条说明如何执行此操作的注释,基本上,属性文件中的空格前面必须加反斜杠
修复了一些文本着色未能正确显示的问题(如果有人发现此类情况,请留言反馈。由于时间有限,未能逐一检查所有颜色条目,在未被证实有误之前,假定它们都是正确的)
自 2012 年 1 月 14 日起兼容 CraftBukkit 1.1-R1
版本 2.0 - lookatmego 发布
- 为属性添加了自定义消息和颜色
- 添加了命令、权限以及超级节点支持
- 添加了设置、清除和查看玩家信息的功能
- 添加了重载插件的功能
- 重新定义了属性文件的创建方式
- 清理了代码和游戏内消息
- 清理了各种调试控制台消息
版本 1.0 - Jazzkr 发布

=== NOTE: For all intents and purposes this plugin is inactive, though for the life of me I can't figure out how to manually set it as an inactive project, so I have put this notice here for all to read. Sorry about this! Maybe eventually I will come back to it but for now I simply do not have the time. ===
CommandLimiter is the first plugin made by CodeEx team. We were looking around on Bukkit Dev and asking other server owners about what kind of plugin they wanted/needed. After extensive research we believe(hope :P) this may be the first command limiting plugin of its kind released publicly.
Description:
CommandLimiter allows server owners to define a command and how many times it may be used by players on the server. It is very simple to use and very basic even if its your first time working with a properties file or running your bukkit server. Simply place the plugin in the plugins folder and start your server!
NOTE: If you wish to use the command cost function you MUST have vault installed on your server. Get it here: Vault BukkitDev
Features:
- Very easy to configure
- Very easy to set-up and install
- Lightweight data storage, no databases needed
- Configurable messages such as error message, used once message, and no more uses message
- Can set the amount of times each command can be used in the properties
- ANY command can be limited! Even commands with arguments! (Such as /cl reload, etc)
- In-game commands for easily reloading the plugin or purging(resetting) a users data
- Supports permissions! (Tested with BukkitPermissions, should work with all though)
- Allows individual edits to the data via commands! (/cl setlimit)
- NOW WITH v2.4 you can make commands cost money as well! (Uses Vault)
- NOW WITH v2.4 you can set individual cooldown for commands!!
Commands and Permissions:
Permissions
- cl.*
description: gives access to all CommandLimiter commands(NOT INCLUDING cl.ignore!)
- cl.reload
description: gives access to reload command.
- cl.purge
description: gives access to purge command.
- cl.setlimit
description: gives access to set command.
- cl.info
description: gives access to info command.
- cl.ignore
description: plugin completely ignores the group/player with this permission.
Commands
/cl reload - reloads the plugin. You can make any changes to properties file such as adding new commands and use this command to reload everything without having to delete the data file.
/cl purge [name] - RESETS the player's data to the defaults defined in the properties file. Purge might not have been the best name for this command as it is somewhat misleading.
/cl info [name] - shows the number of uses the player has left for every command.
/cl setlimit [name] [command] [limit] - sets the limit for a certain command for a player.
KEEP IN MIND THAT IF YOU ARE OP YOU CAN USE THESE COMMANDS WITHOUT THE NODES LIKE ANY OTHER PLUGIN.
If you are upgrading from v2.1 or lower to v2.4 you MUST delete your entire CommandLimiter folder with database inside for it to function properly!! This is due to the changes made to the structure of the database.
Properties file explained:
Visit: This link
Current bugs:
No bugs have yet been reported :D
To-Do list:
- Look into adding more customizability to messages
- add per group limiting
- add option to have some commands unlimited use and some limited
Changelog:
Version 2.4.2 - Released by JazzKr
- Updated to new event listening system, hopefully will keep it compatible for R5.. if not expect another update soon.
- Note: Overhaul is planned soon.. just as soon as I get some time!
Version 2.4.1 - Released by JazzKr
- Added feature where you can pay once to use a command forever (note: if you delete CL.data this will reset and you will have to pay again!)
- General bug fixes
Version 2.4 - Released by lookatmego and JazzKr
- ADDED cooldown support!
- ADDED economy support! (via vault, so it is now a softdepend)
- Modified entire data storage system to accommodate new features introduced
- Reconstructed many commands to support changes to storage system
- More configurable properties added!
- Changed /cl set to /cl setlimit so other commands for setting cooldown and cost can be added later
- Fixed command handling bug
- General bug fixes
Version 2.1.1 - Release by JazzKr
- Fixed stupid mistake I made with purge command, thanks to lookatmego for catching it!!
Version 2.1 - Release by JazzKr
- Rewrote the way it refreshes the data, now it will also 'trim' so commands that were previously in use are removed from data
- Improved the way it recognizes commands, now if a 'base' command is blocked such as /cl then it will block all commands in that tree (/cl set, /cl purge, etc, any commands that start with /cl)
- Commands with arguments can now be blocked, added a note in properties file that explains how to do this, basically spaces in properties file must have a preceding backslash to them
- Fixed a few issues with the text colouring not showing up the way it should be (if anyone sees any instances of this please leave a comment, didn't have time to go through all colour entries, assuming they are correct until proven wrong)
- Works with CraftBukkit 1.1-R1 as of January 14th, 2012
Version 2.0 - Release by lookatmego
- Added custom messages and colors to properties
- Added commands and permissions and super node
- Added ability to set, purge, and view a player's info
- Added ability to reload plugin
- Redefined way properties file is created
- Cleaned up code and in-game messages
- Cleaned up various debug console messages
Version 1.0 - Release by Jazzkr
- Pre-release of plugin
- Early testing
- Added the properties file

评论 0
登录后参与评分
还没有评论,来抢沙发吧