注意:1.9b 更新
我已了解到以下问题:
- 基于聊天命令的编辑器令人望而生畏且难以使用
- 自定义选项有限
- 几乎无法控制外观效果
- 堆叠工具(powertools)存在大量故障
- 等等
在 1.9b 版本中,将引入一个新的箱子界面,以实现更高的可定制性。我还放弃了旧的存储在 lore(物品描述文本)中的数据系统,改为使用单行 JSON 格式。了解 JSON 的用户会明白这使用起来有多简单。如果您不了解 JSON 且不喜欢查看令人恐惧的代码,我们将提供一个外观自定义功能。
Limited Powertools 是一个允许您创建“强力工具”(powertools)的插件。只有管理员可以创建它们,但任何人都可以使用它们,即使他们通常没有权限执行该强力工具所运行的命令。有一个可定制的黑名单,用于禁止分配某些命令(如 ban、op、kick、stop 和 whitelist)。
强力工具可以根据不同的使用方式赋予不同的动作。目前仅支持左键点击和右键点击,但即将推出的功能包括:按下 [Q] 键丢弃时、作为弓射击时,以及作为护甲穿戴并受到损伤时。为了防止刷屏滥用,强力工具设置了可定制的冷却时间。
如果您希望在命令之间设置时间延迟,只需使用内置的 /delayed <ticks> <command>。(参见示例强力工具:Flaming Volley 以获取示例)
示例强力工具
Ghast Incantation
50/50 施法次数
冷却时间:2.5秒
L: 运行 /cast fire
R: 运行 /fireball
使用时播放 entity.ghast.warn 音效。
Flaming Volley Incantation
50/50 施法次数
冷却时间:5.0秒
R: 运行 /delayed 25 fireball
R: 运行 /delayed 30 fireball
R: 运行 /delayed 35 fireball
使用时播放 entity.blaze.breathe 音效。
Ironskin Potion
3/3 施法次数
冷却时间:40秒
R: 运行 /effect @p minecraft:resistance 240 1
Demolition Pickaxe
20/20 施法次数
冷却时间:20秒
L: 运行 /break
R: 运行 /antioch
管理员需要了解什么?
命令
- /lpt create <uses> <command>
- 创建一个强力工具。
- /lpt uses <set|add> <uses>
- 设置强力工具的使用次数。
- /lpt maxuses <set|add> <maxuses>
- 设置强力工具的最大使用次数。
- /lpt cooldown <ticks>
- 设置强力工具的冷却时间。
- /lpt command <set|add> [left|right|both] <command>
- 设置/添加强力工具的命令。使用 left、right 或 both 指定触发哪个动作。默认为 both。
- /lpt rename <name>
- 重命名强力工具。将 &0-9、&a-f、&k-o 和 &r 转换为相应的 格式化代码。
- /lpt sound <sound>
- 设置使用强力工具时播放的音效。
- /lpt recharge
- 重新充能强力工具。这是 /lpt maxuses set <n> 的便捷方法。
- /lpt remove
- 将强力工具转换回原版物品。
- /delayed <ticks> <command>
- 带时间延迟地运行命令。
权限节点
- lpt.* - 所有 Limited PowerTools 权限
- lpt.create - 创建 Limited PowerTools
- lpt.modify - 修改 LPTs
- lpt.remove - 将 LPTs 转换为普通物品
- lpt.use - 使用 LPTs
- lpt.help - 查看插件帮助
- lpt.delayed - 使用 /delayed
功能特性
计划中的功能
对光标下的玩家执行命令,使用 @cursor[player] 已移至 VectorMath。请改用 #[player(look)]#。
- 持有时、在快捷栏中、在用户背包任意位置、作为护甲穿戴、受到伤害以及作为弓充能时,分别使用不同的命令集。
- 可配置的副本战利品
- Vault 集成
版本历史
1.9b(开发中)
在目标位置执行命令,使用 @cursor[block] 已移至 VectorMath。请改用 #[lookblock(distance)]#。VectorMath 将与 LPT 1.9b 一同发布。
- 每个强力工具独立的冷却时间
- 弃用旧数据结构,改用 JSON
- 可定制的外观
- 添加图形用户界面(GUI),简化使用,包含命令编辑和 lore 系统等功能
- 修复了一个故障,该故障导致冷却时间少于 1 秒的强力工具没有冷却效果
1.8b-compat
- 更新以兼容 1.8 和 1.9 版本。
- 从枚举声音系统(例如 FIREWORK_BLAST, ZOMBIE_UNFECT)切换至 Minecraft 原生声音系统(例如 firework.blast, mob.zombie.unfect)。这意味着支持更多音效,包括来自自定义资源包的音效!已更新以支持 [Tab] 自动补全。
- 强力工具在主手以外的副手中无效。
- 添加了翻译字典系统。这意味着您的旧版强力工具和 config.yml 将自动更新。注意:不向后兼容。
- 使用 /delayed <ticks> <command> 带延迟运行命令。注意:不受黑名单保护。
1.8b
- 双重绑定:为左键/右键分配不同的命令,并可设置同时激活的命令
- 冷却时间:不再允许疯狂滥用强力工具!(基于上次使用任何强力工具的时间计算)
- 来自之前版本的强力工具需要转换。以前,命令通过 "Runs /" 标识。现在通过 "[L:R:B]: Runs /" 标识。请使用 /lpt command set [left:right:both] 进行转换。
- 修复了一个导致工具模组行为如同使用了原版物品的漏洞。
1.7b
- 在 /lpt 添加了官方帮助界面
- 每个工具音效
- 添加了 Tab 补全功能——与每个工具的音效配合使用效果更佳。
- 移除了 /lpt modify -n;请使用 /lpt <uses:maxuses> <set:add> 替代 -u= / -m=,/lpt rename <name> 替代 -n=,/lpt command <set:add> 替代 -c= / -c+=
1.65b
- 修复了 /lpt modify -n;现在可以正常处理空格。
- 为命令黑名单添加了二级过滤。你不再能通过修改物品描述来绕过黑名单。
1.6b
- 尝试使 /lpt modify -n 能够处理空格。结果反而搞砸了。
- 添加了命令黑名单
- 添加了配置文件(目前内容不多,但将在未来版本中使用)
- 添加了使用成功和失败时的音效(可配置——可以是 org.bukkit.Sound 中的任何字符串)
1.5b
- 修复了一个可能导致用户复制工具模组的故障
- 现在可以为一个工具分配多个命令
- 添加了 HUD 系统
1.4b
- 修复了几个漏洞
- /lpt modify -n 现在接受颜色代码
- /lpt modify -c 现在接受多词命令
1.3b
Notice: Update 1.9b
I have been made aware that
- the chat-command-based editor is intimidating and hard to use
- limited customizability
- almost no control over aesthetics
- a bunch of glitches associated with stacking powertools
- and so on
In 1.9b, a new Chest interface will be introduced, allowing for greater customizability. I'm also ditching the old system of data stored in lore for a single line of JSON. Those of you who know JSON will understand how much easier this may be to use. Those of you who don't know JSON, and don't like looking at scary code, there will be an aesthetic customization function.
Limited Powertools is a plugin which allows you to create powertools. Only an admin can create them, but anyone can use them, even if they wouldn't normally have access to the commands the powertool runs. There is a customizable blacklist of commands that cannot be assigned (such as ban, op, kick, stop, and whitelist).
The powertools can be given different actions when used in different ways. Currently only supports left and right click, but coming soon are when dropped with the [Q] key, shot as a bow, and when worn as armor and damaged. And to prevent spamming, powertools are given a customizable cooldown.
If you want to make a time-delay between commands, just use the built in /delayed <ticks> <command>. (See Example powertools: Flaming Volley for an example)
Example powertools
Ghast Incantation
50/50 cast charges
Cooldown: 2.5s
L: Runs /cast fire
R: Runs /fireball
Plays entity.ghast.warn on use.
Flaming Volley Incantation
50/50 cast charges
Cooldown: 5.0s
R: Runs /delayed 25 fireball
R: Runs /delayed 30 fireball
R: Runs /delayed 35 fireball
Plays entity.blaze.breathe on use.
Ironskin Potion
3/3 cast charges
Cooldown: 40s
R: Runs /effect @p minecraft:resistance 240 1
Demolition Pickaxe
20/20 cast charges
Cooldown: 20s
L: Runs /break
R: Runs /antioch
What do my admins need to know?
Commands
- /lpt create <uses> <command>
- Creates a powertool.
- /lpt uses <set|add> <uses>
- Sets the number of uses for a powertool.
- /lpt maxuses <set|add> <maxuses>
- Sets the maximum number of uses for a powertool.
- /lpt cooldown <ticks>
- Sets the cooldown for a powertool.
- /lpt command <set|add> [left|right|both] <command>
- Sets/adds commands for a powertool. Use left, right, or both to specify which action to trigger on. Defaults to both.
- /lpt rename <name>
- Renames a powertool. Changes &0-9, &a-f, &k-o, and &r to their respective formatting codes.
- /lpt sound <sound>
- Sets the sound played when a powertools is used.
- /lpt recharge
- Recharges a powertool. Convenience method for /lpt maxuses set <n>.
- /lpt remove
- Converts a powertool back into a vanilla item.
- /delayed <ticks> <command>
- Runs a command with a time delay.
Permissions nodes
- lpt.* - All Limited PowerTools permissions
- lpt.create - Create Limited PowerTools
- lpt.modify - Modify LPTs
- lpt.remove - Turn LPTs into normal items
- lpt.use - Use LPTs
- lpt.help - View plugin help
- lpt.delayed - Use /delayed
Features
Planned Features
Run commands on player under cursor with @cursor[player] Moved to VectorMath. Use #[player(look)]# instead.
- Different sets of commands for when held, when in the hotbar, when anywhere in a user's inventory, when worn as armor, when damaged, and when charged as a bow.
- Configurable dungeon loot
- Vault integration
Version history
1.9b (Work in progress)
Execute commands at target location with @cursor[block] Moved to VectorMath. Use #[lookblock(distance)]# instead. VectorMath will be released with LPT 1.9b.
- Cooldown individual to powertool
- Ditched old data structure for JSON
- Customizable aesthetic
- Add GUI for simpler use with features such as command editing and lore system
- Fixed a glitch which let powertools with cooldowns of less than 1 second have no cooldown
1.8b-compat
- Updated to work with 1.8 and 1.9.
- Switched from enumeration sound system (ex. FIREWORK_BLAST, ZOMBIE_UNFECT) to minecraft's native sound system (ex. firework.blast, mob.zombie.unfect). This means more sounds, including those from custom resource packs! Updated to work with [Tab] complete.
- Powertools do NOT work in the off-hand.
- Added translation dictionary system. This means your old powertools and config.yml will be automatically updated. Note: Not backwards compatible.
- Run commands with a delay using /delayed <ticks> <command> Note: Not protected by blacklist.
1.8b
- Dual binding: Assign different commands to left/right click, and have some that activate for both
- Cooldowns: No more spamming powertools! (Based on when any powertool was last used)
- Powertools from previous versions need to be converted. Before, commands were identified by "Runs /". They are now identified by "[L:R:B]: Runs /". Use /lpt command set [left:right:both] to convert.
- Fixed a bug which caused powertools to behave as if the vanilla item was used.
1.7b
- Official help screen at /lpt
- Per-powertool sound effect
- Added a tab-complete - goes well with the per-powertool sound effect.
- Removed /lpt modify - Use /lpt <uses:maxuses> <set:add> instead of -u= / -m=, /lpt rename <name> instead of -n=, /lpt command <set:add> instead of -c= / -c+=
1.65b
- Fixed /lpt modify -n; it now works with spaces.
- Added a secondary filter to command blacklist. You can no longer bypass the blacklist by modifying the item lore.
1.6b
- Tried to make /lpt modify -n work with spaces. Broke it instead.
- Added command blacklist
- Added config file (not much here right now, but will be used in future versions)
- Added sound on use and failure (configurable - can be any string in org.bukkit.Sound)
1.5b
- Fixed a glitch where users could duplicate powertools
- Can now assign multiple commands to a powertool
- Added the HUD system
1.4b
- Fixed a couple of bugs
- /lpt modify -n now accepts color codes
- /lpt modify -c now accepts multi-word commands
1.3b
评论 0
登录后参与评分
还没有评论,来抢沙发吧