LockettePro 2.2.0 - UUID 支持
高性能基于告示牌的锁定插件,高度可定制
已迁移至 Spigot... 请点击链接:
快速链接
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
配置
源代码
支持的插件
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
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 :)
下载 LockettePro
下载 LockettePro
下载 LockettePro
下载 LockettePro
下载 LockettePro
下载 LockettePro
下载 LockettePro
下载 LockettePro
下载 LockettePro
下载 LockettePro
存在一个编译时问题,导致计时器无法正常工作。真是该死的 Eclipse。
停止——在使用 2.x (UUID) 的 UUID 支持之前请阅读
依赖项
如果你使用 UUID 支持的话。
我应该启用 UUID 支持吗?
这真的取决于具体情况。如果你希望玩家在更改用户名后仍能访问他们的锁,请开启它。如果你讨厌玩家更改用户名,因为他们会混淆他人或可能破坏其他插件,请关闭它。
我已经多次测试了 UUID 支持功能,也许它能完美运行。如果你担心 UUID 支持的稳定性,你可以在开启之前再等待几天。
如何开启 UUID 支持?它是默认开启的吗?
UUID 支持默认是关闭的。开启它的配置行是 "enable-uuid-support: true"。如果你的 config.yml 缺少这些条目,你可以参考此详细指南手动添加它们,或者删除 config.yml 让它重新生成。
UUID 是如何存储在告示牌上的?
详细信息可在 GitHub Wiki 页面查看。
简而言之:存储格式为 "username#uuid",例如 "connection_lost#15e68dc9-5454-411a-8023-668b3877fe9b"。此外,客户端不会看到 UUID(即 "#" 后面的那些字符),因此告示牌将始终保持整洁。
告示牌将如何更新?
如果你选择启用 UUID 支持,所有新创建的锁告示牌都将包含 UUID 信息,而旧告示牌将在有效用户与该方块或告示牌交互时进行更新。
如果我关闭 UUID 支持会发生什么?
不幸的是,目前没有办法将所有 UUID 锁告示牌转换为普通告示牌。如果将来你关闭 UUID 支持,所有告示牌都将被视为普通的名称锁告示牌,即使其中包含 UUID。LockettePro 会正确解释这些告示牌,但原版 Lockette 则不能。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
ExyliaPlugins 的库。
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
插件
创建用户友好的菜单以前往不同的世界
插件
专为 Velocity 打造的自制聊天插件,功能丰富——支持跨服群组/全局/私聊消息,并集成 LibertyBans 的禁言功能。
插件
一个高度兼容、功能完善且稳定的 TPA 模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧