StickyLocks for Bukkit
使用木棍作为法杖,玩家通过右键点击选择一个可保护的方块。随后通过左键点击可以认领或取消认领所选的方块。当某个方块被玩家认领后,只有该玩家可以与之交互。所有玩家信息均通过 UUID 存储,因此你必须使用运行 Bukkit 1.7 或更高版本的服务器。
在选中状态下,玩家可以向允许与该方块交互的玩家列表中添加名称或组名。玩家可以随时重命名这些组并调整其成员资格,从而动态更新所有拥有该组的受保护方块。
可保护方块的列表是可配置的,但默认情况下包括门、箱子、漏斗、开关、按钮和压力板等。它还包含红石中继器和比较器,用于保护红石设备的时序。
此插件不会防止任何受保护方块的破坏。 本插件的设计初衷是与其他提供破坏保护的插件(如 Towny、Factions 或 WorldGuard 区域)配合使用。不过,由于许多用户强烈要求,现在有一个名为 配套插件 StickyProtection,它可以防止玩家或活塞破坏已锁定的方块(及其相邻的关键方块)。
安装
将 .jar 文件放入你的 plugins 文件夹,然后启动你的 Bukkit 服务器(或使用任意插件管理器加载)。它将自动生成默认的 config.yml 文件。
如有需要请编辑配置文件,尽管默认设置应该能立即正常工作。该插件会创建并使用 StickyLocks.db,这是一个 SQLite 数据库,可以使用任何兼容 SQLite3 的客户端进行查询。
该插件会通过启发式方法检测其他插件是否正在提供针对玩家建造的防护功能,如果检测到,则不允许玩家锁定他们无法建造的方块。
权限
- stickylocks.lock 允许用户认领一个方块(门、箱子等)并通过访问列表选择谁可以使用它
- stickylocks.locksmith 允许用户修改或解锁其他用户认领的方块
- stickylocks.ghost 允许用户打开或使用原本会被插件锁定的方块
- stickylocks.reload 允许玩家从磁盘重新加载插件的配置
命令
首先,用户必须使用工具法杖。默认情况下,这是一根木棍。用木棍右键点击可保护的方块会告诉玩家该方块是什么、所有者是谁,或者它是无主的。插件使用绿色文本表示玩家有访问权限或命令执行成功。使用红色表示玩家没有访问权限或命令失败。用木棍右键点击方块也会选中该方块。
选中后,左键点击方块会切换其锁定状态。如果方块无主,它将成为玩家所有。如果方块由玩家拥有,或者玩家是锁匠(参见上方的权限说明),它将变为无主,并且所有锁定信息将被移除。选中后,命令将对该方块或与该方块关联的用户进行操作。
用木棍右键点击空气会取消当前选中的方块。
/stickylocks 的别名为 /sl
- /sl show 列出当前方块的锁定信息。它会显示所有者,并列出有权访问该方块的玩家和组的名称。列出的任何组都将按照该方块所有者定义的方式呈现。
- /sl add <player|group> 将指定的玩家或玩家组添加到允许使用该方块的列表中。如果玩家是锁匠,该组将由方块所有者拥有。如果组和玩家具有相同的名称,将优先使用组。
- /sl remove <player|group> 从允许使用该方块的列表中移除指定的玩家和/或玩家组。
- /sl group <group> 列出指定组的成员。如果选中了方块,该组将是属于方块所有者的组。
- /sl group <group> add <player> ... 将指定的玩家添加到指定的组中。如果选中了方块,该组将是属于方块所有者的组(并受权限限制)。
- /sl group <group> remove <player> ... 从指定的组中移除指定的玩家。如果选中了方块,该组将是属于方块所有者的组(并受权限限制)。
- /sl group <group> {rename|merge} <name> 重命名该组(rename 和 merge 是相同的子命令)。如果目标组存在,该组的成员将被添加进去。如果选中了方块,该组将是属于方块所有者的组(并受权限限制)。
- /sl clearselection 取消玩家当前选中的方块,效果等同于右键点击空气。
- /sl reload 从磁盘重新加载插件的配置,允许在不重启插件的情况下更改配置。
配置
相当简单,默认值可能已经足够适用。
protectables 是一个可以被此插件保护的物品列表。如果未来版本的 Minecraft 添加了需要保护的新物品,可以通过名称添加它们。不支持已废弃的物品 ID 号。
tools 是玩家必须手持以选择或锁定方块的材料类型名称。
chatprefix 是一个简短文本,以方括号形式添加在聊天行的开头。因此,SL 的默认设置看起来像 [SL] 此处显示输出内容。
StickyLocks for Bukkit
Using a stick as a wand, a player selects a protectable block with right-click. The player can claim or un-claim the selected block with a subsequent left-click. When claimed by a player, only that player can interact with that block. All player information is stored by UUID, so you must use a server implementing Bukkit 1.7 or higher.
While selected, the player can add names or groups of names to the list of players permitted to interact with the block. Groups can be renamed, and their membership adjusted, at any time by the player - dynamically updating all the protected blocks that have that group.
The list of protectable blocks is configurable, but by default includes things like doors, chests, hoppers, switches, buttons and pressure plates. It also includes redstone repeaters and comparators, protecting redstone device timings.
This plugin does not prevent destruction of any of the protected blocks. The idea is that this plugin will be used in combination with some other plugin to provide protection from destruction, such as Towny, Factions or WorldGuard regions. Having said that, enough people demanded it that there is now a companion plugin named StickyProtection which will prevent the destruction of locked blocks (and key adjacent blocks) by player or by piston.
Installation
Place the .jar file into your plugins folder and start your Bukkit server (or load it with any plugin manager). It will write out the default config.yml file.
Edit the config if necessary, although everything should work straight away. The plugin will create and use StickyLocks.db, which is an SQLite database that can be queried with any SQLite3 compatible client.
The plugin will heuristically detect when other plugins are providing protection against players building, and will not allow players to lock things they couldn't have built.
Permissions
- stickylocks.lock permits a user to claim a block (door, chest, etc) and choose who can use it through an access list
- stickylocks.locksmith permits a user to modify or unlock other users' claimed blocks
- stickylocks.ghost permits a user to open or use blocks that would otherwise be locked by the plugin
- stickylocks.reload permits the player to reload the plugin's config from disk
Commands
First, the user has to use a tool wand. By default, this is a stick. Right-clicking on a protectable block with the stick will tell the player what that block is, who its owner is, or that it is unowned. The plugin uses green text to indicate that the player has access, or a command succeeded. It uses red to indicate that the player has no access, or that a command failed. Right-clicking on a block with the stick will also select that block.
Once selected, left clicking on the block toggles its lock state. If it's unowned, it will become owned by the player. If it is owned by the player, or the player is a locksmith (see permisisons, above) it will become unowned, and all lock information will be removed. Once selected, commands will operate on that block, or on the user associated with that block.
Right-clicking the air with a stick deselects the selected block.
/stickylocks is aliased as /sl
- /sl show lists the lock information for the current block. It shows who owns it, and lists the names of players and groups of players with access to that block. Any groups listed will be as defined by that block's owner.
- /sl add <player|group> adds the specified player or group of players to the list of people allowed to use the block. The group will be one owned by the block's owner, if the player is a locksmith. In the event that a group and a player both have the same name, the group will be used.
- /sl remove <player|group> removes the specified player and/or group of players from the list of people allowed to use that block.
- /sl group <group> lists the members of the specified group. If a block is selected, the group will be that belonging to the block's owner.
- /sl group <group> add <player> ... adds the specified player(s) to the specified group. If a block is selected, the group will be that belonging to the block's owner (and subject to permission).
- /sl group <group> remove <player> ... removes the specified player(s) from the specified group. If a block is selected, the group will be that belonging to the block's owner (and subject to permission).
- /sl group <group> {rename|merge} <name> renames the group (rename and merge are identical sub-commands). If the target group exists, the group's members will be added to it. If a block is selected, the group will be that belonging to the block's owner (and subject to permission).
- /sl clearselection deselects the player's currently selected block, the same as right-clicking air.
- /sl reload reloads the plugin's configuration from the disk, allowing configuration to be changed without restarting the plugin.
Configuration
Fairly simple, and the defaults are likely to be suitable.
protectables is a list of items that can be protected by this plugin. If future versions of Minecraft add new items which should be protected, they can be added by name. Deprecated ID numbers are not supported.
tools is the name of the material type the player must hold to select or lock a block.
chatprefix is a short text added to the start of chat lines in square brackets. So, the default setting of SL would look like [SL] Some output here.
下载 StickyLocks
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 StickyLocks
下载 StickyLocks
下载 StickyLocks
下载 StickyLocks
下载 StickyLocks
下载 StickyLocks
下载 StickyLocks
1.16 支持
- 从 1.15 和 1.16 版本向默认配置中添加了新的可保护对象
- 已有安装的管理员需要手动将这些对象添加到他们的配置中,或者删除配置文件才能使用此功能
- 该插件在 1.13 版本中仍可正常运行;额外的方块类型将被忽略
新功能
此版本无新功能
错误修复
此版本无错误修复
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
ExyliaPlugins 的库。
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
插件
创建用户友好的菜单以前往不同的世界
插件
专为 Velocity 打造的自制聊天插件,功能丰富——支持跨服群组/全局/私聊消息,并集成 LibertyBans 的禁言功能。
插件
一个高度兼容、功能完善且稳定的 TPA 模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧