LockettePro 2.2.0 - UUID 支持
高性能基于告示牌的锁定插件,高度可定制
已迁移至 Spigot... 请点击链接:
快速链接
下载 | 配置 | 维基 | GitHub
Lockette 与 LockettePro 之间的数据迁移
LockettePro 是什么?
还记得那款多年来广受欢迎的基于告示牌的锁定插件 Lockette 吗?LockettePro 是对原版 Lockette 的深度重构与重写。它带来了巨大的性能提升,修复了诸多漏洞,并且高度可定制。LockettePro 的行为与 Lockette 100% 一致。你可以随时在这两个插件之间切换。
为什么选择 LockettePro?
我对原版 Lockette 深感失望。其代码库混乱不堪,性能低下,到处都是不必要的检查……它还使用了许多已过时的废弃方法,并存在一个困扰多年的活塞相关漏洞……鉴于修复所有问题几乎不可能,我决定从头开发一款全新的插件。今天,我自豪地向大家呈现终极告示牌锁定插件——LockettePro。
LockettePro - 优点
- 无需数据库。锁定所需的所有信息均记录在告示牌上。
- 可以随时无忧无虑地切换到 LockettePro 或切回 Lockette。
- 绝对更出色的性能。下方的性能测试对比将证明这一点。
- 语言文件可编辑,支持 UTF-8。
- 能够轻松禁用“臃肿”功能,且不影响性能。
- 高度可定制。例如,你可以为每一个方块单独设置是否可锁定。
- 顺便一提,原版 Lockette 的 UUID 支持实际上在服务端重启后并不起作用……
LockettePro - 缺点
- 缺乏管理员窥探提醒,而且我近期也不太打算添加此功能。
- (看起来我已经解决了其他所有缺点,太棒了!)
LockettePro 与 Lockette 的性能对比 - 使用 Timings v2
本次测试专注于由漏斗 InventoryMoveItemEvent 引起的最严重的性能问题。该事件发生在漏斗试图从上方的容器中提取物品时。测试在我的服务器上进行,该服务器拥有一个由 10000 组带锁箱子与漏斗组成的庞大 Chest-Hopper 装置。
Lockette: 每次事件 41.8 微秒
LockettePro 无缓存:每次事件 19.4 微秒
LockettePro 缓存设置为 10 秒:每次事件 4.3 微秒
如何使用 LockettePro?
Lockette 和 LockettePro 的使用方法完全相同。对于玩家而言,只需手持告示牌,然后右键点击箱子或任何可锁定的方块即可。如果你想锁定一扇门,你也可以将告示牌放在门上方或下方的方块上。你还可以 SHIFT+右键点击方块以防止其被自动锁定,或者手动在告示牌上输入 [Private] 文本。锁定后,在箱子/方块上放置第二块告示牌会生成一个 [More Users](更多用户)标识,以便你向该箱子/方块添加更多用户。要在告示牌上添加另一个用户名,首先右键点击以选中一块告示牌,然后输入 /lock <行号> <名称>。服务器管理员请参阅下方的配置说明。
命令与权限
主命令为 /lock。别名包括 /lockit、/lockette 和 /lockettepro。
- 编辑告示牌:使用 lockettepro.edit /lock <行号> <玩家> 将玩家添加到告示牌。
- 重载配置:使用 lockettepro.reload
- 管理员破坏锁定:使用 lockettepro.admin.break
- 管理员使用方块(窥探箱子):使用 lockettepro.admin.use
- 管理员覆盖放置干扰方块:使用 lockettepro.admin.interfere
配置
config.yml | lang.yml
源代码
支持的插件
WorldGuard & Residence:
如果由于 WorldGuard 或 Residence 的原因,玩家对某个方块没有“破坏”权限,则他无法将其锁定。
Towny:
如果告示牌的用户行格式化为 “[TownName]”,这意味着属于 “TownName” 城镇的任何玩家都可以访问此箱子。除非玩家拥有 lockettepro.towny.wilds 权限,否则不允许玩家在荒野中锁定箱子。
Factions:
如果告示牌的用户行格式化为 “[FactionName]”,这意味着属于 “FactionName” 阵营的任何玩家都可以访问此箱子。
其他插件:
得益于 Bukkit 的事件优先级机制,有些插件天生就兼容 Lockette/LockettePro。玩家无法锁定已被其他插件保护的箱子/方块。已知兼容的插件包括 ChestShop。
致谢
LockettePro 的目标是提供一款高质量、高性能的基于告示牌的锁定插件,能够完全替代原版 Lockette。你喜欢 LockettePro 吗?缺少某些功能?遇到问题或 Bug?有什么建议可以帮助它变得更好?请在讨论区留言,我想知道你的想法!
- 我的英语不太好,如果我犯了一些错误,请不要笑话我 :)
LockettePro 2.2.0 - UUID Support
High performance sign-based lock plugin, highly customizable
Moved to Spigot... Please follow link:
Quick Links
Download | Configuration | Wiki | GitHub
Transfer between Lockette & LockettePro
What is LockettePro?
Remember the sign-based lock plugin Lockette that is popular for years? LockettePro is a deep remade & rewrite of the original Lockette. It has massive performance enhancement, fixed bugs and very customizable. LockettePro's behavior is 100% same as Lockette. You may switch between those plugins anytime.
Why LockettePro?
I am deeply depressed with the original Lockette. Its codebase is messy, performance is bad, unnecessary checks are everywhere... It also uses legacy deprecated methods, having a piston-related bug for years... It is not very possible to fix all the issues, so I started to start a brand new plugin. And today, I am proudly to present you the ultimate sign lock plugin, LockettePro.
LockettePro - Pros
- No database. All information required for a lock is recorded on the sign.
- Switch to LockettePro and switch back to Lockette worry-free anytime.
- Absolutely better performance. Performance test comparison below.
- Language files are editable, with UTF-8 support.
- Able to disable "bloat" features easily with no affect to performance.
- Customizable. For instance, you can set lockable for every single block.
- Original Lockette's UUID support is not actually working between server restarts, just saying...
LockettePro - Cons
- Lack of admin snooping alert and I am not likely to add this soon.
- (Seems like I have resolved every other cons, great!)
LockettePro vs Lockette Performance - Using Timings v2
This test is focused on the most serious performance issue caused by hoppers InventoryMoveItemEvent. The event happens when hoppers are trying to pull items from the container above. Test is performed on my server with a monstrous Chest-Hopper rig consisting 10000 sets of locked chest and hoppers.
Lockette: 41.8 microseconds per event
LockettePro without cache: 19.4 microseconds per event
LockettePro with cache set to 10 seconds: 4.3 microseconds per event
How to Use LockettePro?
The usage of Lockette and LockettePro are exactly the same. For players, just hold a sign in your hand, then right click a chest or any lockable block. If you want to lock a door, you may put a sign on the block above or below the door too. You may also SHIFT+RIGHT CLICK the block to prevent it get automatically locked, or you can write [Private] text manually on signs as well. After locking, you may add a second sign on chest/block will add a [More Users] sign so you can add more users to a chest/block. In order to add another user name on a sign, first right-click to select a sign, then enter /lock <line number> <name>. For server owners please take a look at the configuration below.
Commands and Permissions
Main command is /lock. Aliases contains /lockit, /lockette and /lockettepro.
- Edit a sign: lockettepro.edit /lock <line number> <player> to add a player to the sign.
- Reload configuration: lockettepro.reload
- Admin break lock: lockettepro.admin.break
- Admin use block (snoop chests): lockettepro.admin.use
- Admin override placing interference blocks: lockettepro.admin.interfere
Configuration
config.yml | lang.yml
Source
Supported Plugins
WorldGuard & Residence:
If a player does not have the "break" permission to a block due to WorldGuard or Residence, then he cannot lock it.
Towny:
If a sign has a user line formatted "[TownName]", this means any player in town "TownName" will have access to this chest. Players are not allowed to lock a chest in the wilderness unless he has permission lockettepro.towny.wilds
Factions:
If a sign has a user line formatted "[FactionName]", this means any player in faction "FactionName" will have access to this chest.
Other plugins:
Some plugins are born to compatible with Lockette/LockettePro thanks to Bukkit's event priority mechanics. Players are not able to lock a chest/block that has already protected by another plugin. Known compatible plugin includes ChestShop.
Braggins
The goal of LockettePro is to deliver a high-quality, and high performance sign-based lock plugin that can completely replace original Lockette. Like LockettePro? Missing features? Issues or bugs? What can I help to make it better? Leave a comment in the discussion, I want to know!
- My English is not very good, if I made some errors please don't laugh at me :)
评论 0
登录后参与评分
还没有评论,来抢沙发吧