使用此插件可通过 Bukkit API 在 Bukkit、Tekkit 和 FTB 服务器上禁止特定物品与方块。TekkitCustomizer 会从世界和玩家背包中移除被禁物品。配置简单,支持回溯应用,并自动记录没收的物品。除非需要为某些玩家设置例外,否则无需依赖权限插件。插件默认禁用了常见的 Tekkit 物品。
因为每个以“我们决定开个服务器……”开头的故事,都不应以“……所以我们不得不重置世界。”作为结局。
安装
将 .jar 文件复制到 plugins 文件夹即可安装插件。然后重启服务器或使用插件管理器加载该插件。
配置
在配置文件(config.yml)中,禁止所有羊毛条目的格式如下:
35:*:wool:because pink wool is for girls
- 第一部分是材料 ID。
- 第二部分数据值。有些方块拥有相同的 ID 但不同的数据值。例如,白色羊毛是 35:0,而粉色羊毛是 35:6。如果输入星号,则表示禁止给定材料 ID 的所有数据值。
- 第三部分用于参考说明。它将出现在日志中,用于简略标识各种 ID 和数据值的含义。
- 第四部分是禁令原因。当玩家尝试合成被禁物品等有用时机时,会向玩家显示该原因。如果你不为禁令填写原因,你将 不断 收到关于为何各种物品被禁的询问。
编辑完禁令列表后,使用 /ReloadBannedItems 在游戏中更新禁令。如果你的 config.yml 文件“自我重置”,这意味着你在编辑文件时出现了格式错误。NotepadPlusPlus 是一款免费的文本编辑器,非常适合编辑 YAML 文件。
一个完整的方块 ID 列表将帮助你添加被禁物品。你也可以通过使用 /blockinfo 获取方块 ID 和数据值(需要 /op 或 tekkitcustomizer.blockinfo 权限)。这将告诉你你手中物品以及你在世界中瞄准物品的信息。有些物品在你背包中的值与在世界中放置时的值 不同(例如背包中的门物品 vs 世界中已放置的门)。
创建禁令例外
拥有 /op 的玩家会自动忽略禁令,任何拥有以下权限的玩家也是如此:
tekkitcustomizer.*
你可以通过权限节点创建单独的禁令例外,允许某些玩家使用通常被禁的物品。以下是一些示例,应能帮助你理解而无需进一步解释。
- tekkitcustomizer.35.*.use - tekkitcustomizer.35.6.place - tekkitcustomizer.35.*.craft - tekkitcustomizer.35.6.own - tekkitcustomizer.35.6.* - tekkitcustomizer.35.*.*
你无法防止特定玩家在世界上放置的方块被移除,因为此插件不追踪世界中谁拥有已放置的方块。
禁令类型
使用禁令
此禁令阻止玩家使用物品,意味着当物品在手时左键或右键点击无效。这对于像采矿激光器之类的物品效果很好,但无法阻止玩家使用那些受益于被动使用的物品(例如模组护甲、修复护身符等)。你需要合成禁令或所有权禁令来完全阻止玩家获得这些物品。
没有任何插件能够阻止玩家通过按键激活(例如 R、G、C 等,这在等价交换物品中很常见)时使用物品。这就是为什么许多 EE 物品被列入默认的所有权禁令列表,尽管它们的功能并不都真正值得被禁。
合成禁令
此禁令阻止玩家合成物品。当玩家尝试合成该物品时,他们会收到一条无法合成的消息。这是阻止玩家获得被禁物品的最友好方式。Forge 模组并不总是挂钩到 Bukkit,这意味着玩家可能通过某些自动或非合成途径(例如炼金术)获得被禁物品。当你合成禁令某物品时,请测试是否存在绕过方法,这可能导致你需要禁止其他物品以防止这些绕过手段。违禁品扫描仪将通过每次从玩家背包中取出物品时创建日志消息,帮助你识别绕过方法的存在。
所有权禁令
此禁令阻止玩家从地面或容器(例如箱子)中拾取物品。如果玩家没有拥有某物品的权限,他们将无法合成它。违禁品扫描仪将搜索每个玩家的背包以查找所有权被禁的物品,并实际将其移除,无需警告、通知或补偿。在任何玩家背包中实际发现的、玩家无权拥有的物品都将触发日志条目,以便你可以跟进调查,找出玩家最初是如何获得该物品的。
放置禁令
此禁令阻止玩家在世界上建造方块。已经拥有后来被实施放置禁令的物品的玩家,仍然可以将其交易给其他玩家,或将其分解为能量(EE 模组)以获取一些价值。
建议将大部分或全部禁止放置的物品加入你的制作禁用列表。这样可以防止玩家无意中消耗资源去合成一个方块,结果却发现无法按照计划将其放置在世界中,从而导致他们感到被欺骗并可能投诉。唯一的例外是某些物品虽然不能放置,但作为其他未禁用的物品配方中的材料仍有用途。
世界禁用
此禁用功能会通过违禁品扫描仪回溯性地移除世界中已放置的方块。如果你需要禁用某个物品,并且知道它已经存在于世界中(例如能量收集器和世界锚点),这将非常有用。这有助于清理新禁用的物品,而无需搜索整个世界来查找它们。不过,存在一些例外情况,因为扫描仪无法确定方块的归属者。
类似于归属权禁用,当违禁品方块被移除时,此禁用功能会触发日志消息,并附带其位置信息,以便你调查该方块最初是如何出现在那里的。
备注
请根据你的服务器版本下载对应的 CraftBukkit 版本,上传的文件中标注了相关信息,因为在 1.2.5 到 1.4.7 之间发生了重大的 Bukkit API 变更。
默认的禁用列表是基于 BigScary 的实际测试为 Classic Tekkit 制作的。在决定从列表中移除任何物品之前,请务必阅读 默认禁用的原因,以了解它们最初为何被禁用。如果你运行的是 FTB、Tekkit Lite 或其他整合包,请自行研究你想要禁用的内容,并相应地更改配置文件。
节省你的时间!查看我们的 常见问题解答 页面,找到你问题的答案。如果发现 bug,请提交工单并附上你的配置文件。
以下功能计划在下个版本中推出:
- 大幅提升性能(已确认)
- 添加可配置的扫描仪设置(已确认,进行中)
- 更改配置文件结构(已确认,进行中)
- 更改权限节点(暂定,调查中)
- 合并使用禁用和放置禁用(暂定,调查中)
- 合并归属权禁用和制作禁用(暂定,调查中)
- 放弃对 1.2.5 的支持(暂定)
- 放弃防爆支持(已确认)
捐赠
与其他可以选择是否游玩游戏的玩家不同,我的开发和管理工作承诺通常意味着我无法这样做,但我对此感到满意。我大量的空闲时间实际上都花在像这样的插件的设计、开发、测试和修复上,旨在让所有玩家更享受 Minecraft。如果你喜欢这个插件,请考虑点击下方按钮给我捐赠 :) 谢谢!
Use this plugin to ban items and blocks for Bukkit, Tekkit, and FTB servers using the Bukkit API. TekkitCustomizer removes banned items from the world and player inventories. It is easy to configure, can be applied retroactively, and automatically logs confiscated items. It requires no permissions plugin unless exceptions are need for certain players. The plugin settings default to commonly-banned Tekkit items.
Because every story that starts with "We decided to start up a Server..." shouldn't end with "...so we had to reset the world."
Installation
Copy the .jar file into your plugins folder to install the plugin. Then restart the server or use a plugin manager to load the plugin.
Configuration
An entry in the config file (config.yml) to ban ALL wool looks like this:
35:*:wool:because pink wool is for girls
- The first part is the material ID.
- The second part is the data value. Some blocks have the same ID, but a different data value. For instance, white wool is 35:0, while pink wool is 35:6. If you put an asterisk, that means ban ALL data values for the given material ID.
- The third part is for your reference. It will appear in the logs to shorthand what the various IDs and data values mean.
- The fourth part is the reason for the ban. It will be shown to players at useful times such as when a player tries to craft a banned item. If you don't fill in the reasons for your bans, you will be constantly asked why various items are banned.
After you edit your ban list, use /ReloadBannedItems to update the bans in-game. If your config.yml file "resets itself", that means you made a formatting mistake while editing the file. NotepadPlusPlus is a free file editor perfect for editing YAML files
A full list of Block IDs will help you add banned items. You can also get the block IDs and Data Values by using /blockinfo (requires /op or tekkitcustomizer.blockinfo permission). This tells you the information about the item you're holding and the one you're pointing at in the world. Some items have a different values in your inventory as opposed to ones place in the world (eg. a door item in the inv vs a placed door in the world).
Making Ban Exceptions
A player who has /op automatically ignores bans as with any player with permission:
tekkitcustomizer.*
You can make individual ban exceptions to give some players to generally banned items through permission nodes. Here are various examples, which should help you understand without further explanation.
- tekkitcustomizer.35.*.use - tekkitcustomizer.35.6.place - tekkitcustomizer.35.*.craft - tekkitcustomizer.35.6.own - tekkitcustomizer.35.6.* - tekkitcustomizer.35.*.*
You can't prevent a specific player's placed block from being removed from the world as this plugin does not track who owns placed blocks in the world.
Types of Bans
Usage Bans
This ban prevents players from using an item, which means left-click or right-click while the item is in-hand. This works well for items like the Mining Laser, but won't stop players from using items which benefit from passive use (eg. modded armors, Talisman of Repair, etc.). You will need a crafting ban or ownership ban to prevent players from getting those items at all.
It's not possible for any plugin to prevent a player from using an item when it is activated by a keystroke (eg. R, G, C, etc.), which are common especially for Equivalent Exchange items. This is why many EE items are on the default ownership bans list even though their functions are not all really ban-worthy.
Crafting Bans
This ban prevents players from crafting an item. When the player tries to craft the item, they get a message that they can't. This is the most player-friendly approach to preventing players from getting banned items. Forge mods don't always hook into Bukkit, meaning its possible for players to get banned items through some automatic or non-crafting approach (eg. alchemy). When you crafting-ban an item, test for workarounds, which may lead you to ban additional items to prevent those workarounds. The contraband scanner will help you identify the existence of workarounds by creating log messages each time it takes an item out of a player's inventory.
Ownership Bans
This ban prevents player from picking up an item from the ground or from a container (eg. a chest). If a player doesn't have permission to own an item, they won't be able to craft it. The contraband scanner will search each player's inventory for ownership-banned items and actually remove them without warning, notification, or compensation. Any items which are actually found in a player's inventory which the player doesn't have permission for will trigger a log entry, so you can follow-up with an investigation to find out how the player managed to get the item in the first place.
Placement Bans
This ban prevents a player from building a block in the world. A player that already has an item which is later placement-banned can still trade it with another player or break it down into energy (EE mod) to get some value out of it.
It is recommend to place most or all placement ban items to your crafting ban list. This will prevent your players from unknowingly spending their resources to craft a block which they then can't place in the world like they planned leading to them feeling cheated and likely complaining. The only exception you might make to this rule is for an item which can't be placed, but is still useful because it's an ingredient in another recipe for an item you haven't banned.
World Bans
This ban will retroactively remove the placed block from the world through the contraband scanner. This is great if you need to ban an item, but also know it's in the world (eg. energy collectors and world anchors). This will help clean up newly-banned items without having to search your entire world for them. There are exceptions to this removal as the scanner can't determine who owns the block.
Similar to the ownership ban, this ban will trigger a log message when a contraband block is removed, along with its location so that you may investigate to find out how the block got there in the first place.
Notes
Download the correct CraftBukkit version for your server as labelled on the uploaded files as major Bukkit API changes occurred between 1.2.5 to 1.4.7.
The default ban list is made for Classic Tekkit based on hands on testing done by BigScary. Before deciding to remove items from this list, be sure to read the reasons for default bans to understand why it was originally removed. If you are running FTB, Tekkit Lite, or other mod packs, do your own research for what you want banned and change the config file accordingly.
Save yourself some time! Check our Frequently Asked Questions page for the answer to your question. If you found a bug, make a ticket and include your config file.
The following features are planned for the next release:
- Vastly improved performance (Confirmed)
- Add configurable scanner settings (Confirmed, in progress)
- Change in config file structure (Confirmed, in progress)
- Change in permission nodes (Tentative, investigating)
- Consolidate Usage Bans and Placement Bans (Tentative, investigating)
- Consolidate Ownership Bans and Crafting Bans (Tentative, investigating)
- Dropped 1.2.5 support (Tentative)
- Dropped explosion prevention support (Confirmed)
Donations
Unlike other players who have a choice to play the game, my commitment to development and administration usually means I cannot and I'm fine with that choice. A lot of my free time is actually spent designing, developing, testing, and fixing plugins like this one to make Minecraft more enjoyful for all players. If you like this plugin, please consider sending me a donation by clicking the button below :) Thanks!
下载 Tekkit Customizer
下载 Tekkit Customizer
下载 Tekkit Customizer
下载 Tekkit Customizer
下载 Tekkit Customizer
下载 Tekkit Customizer
下载 Tekkit Customizer
下载 Tekkit Customizer
下载 Tekkit Customizer
下载 Tekkit Customizer
1.6 更新!
- 当某个物品/方块被禁止使用时,玩家将无法在世界中右键点击该方块。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧