ItemLimiter
ItemLimiter 是一款功能全面的 Paper 插件,用于限制玩家可携带、放置、制作或使用的任何物品。为任意物品设置上限后,插件会自动执行限制——超出上限的物品会从背包中删除,而会导致玩家超限的拾取行为会在发生前被阻止。无需记忆命令,也无需编辑配置文件。
插件的所有功能都通过一个组织良好的游戏内菜单进行控制。创建一条规则,指定目标物品,选择限制类型,设定数值,即可立即生效。规则可以匹配单一材质、整个材质标签,或通过自定义模型数据、显示名称、描述文本或附魔来过滤物品。
限制可以是针对单个玩家、单个世界或全服务器的,并且支持按滚动计时器重置——因此,“每分钟 8 颗末影珍珠”和“全服务器总共 32 个信标”都只是规则而已。
功能
- 一个游戏内菜单控制所有功能——无需编辑配置文件
- 十种限制类型:禁止物品、背包、末影箱、容器、拾取、制作、放置、破坏、掉落和使用
- 超出限制的物品会自动从背包中删除
- 会超出限制的拾取、制作和放置行为会被直接阻止
- 支持针对单个玩家、单个世界或全服务器的限制
- 基于时间的限制(如每分钟使用次数)支持滚动重置窗口
- 通过材质、标签(如
#minecraft:shulker_boxes)或通配符匹配物品
- 高级匹配功能支持自定义模型数据、显示名称、描述文本和附魔等级
- 支持按名称设置单个玩家的覆盖值,以便特定 OP 拥有自己的限制,设置为
-1 表示无限制
- 支持每条规则或全局绕过权限
- 可选择违规时的处理方式:取消、移除、掉落、发送消息、标题、音效、日志记录或运行控制台命令
- 可将任何规则限制在特定世界和游戏模式中
- 内置可搜索的物品浏览器,包含游戏中所有物品,或直接添加你当前手持的物品
- 实时计数器视图,显示跟踪总数并提供按规则重置按钮
- 检查任何在线玩家,查看他们针对每条规则的具体计数
- 通过
data.yml 实现重启后计数器持久化
- 兼容 Paper 1.21.0 至 1.21.x 以及 26.x 版本,无需 NMS
命令
| 命令 |
描述 |
权限 |
/itemlimiter |
打开控制面板菜单 |
itemlimiter.use |
/itemlimiter list |
列出所有规则及其类型和限制值 |
itemlimiter.use |
/itemlimiter check [player] |
显示某玩家针对每条规则的计数情况 |
itemlimiter.use |
/itemlimiter reset <rule|all> |
清除跟踪的计数器 |
itemlimiter.admin |
/itemlimiter reload |
从磁盘重新加载所有配置文件 |
itemlimiter.admin |
别名:/il, /ilimit, /limiter, /itemlimit
权限
| 权限 |
描述 |
默认值 |
itemlimiter.use |
打开菜单并运行基础命令 |
OP |
itemlimiter.admin |
重新加载和重置计数器 |
OP |
itemlimiter.bypass.* |
绕过所有限制规则 |
false |
itemlimiter.bypass.<rule> |
通过 ID 绕过特定的一条规则 |
false |
配置
config.yml
scan-interval-seconds: 5
save-interval-seconds: 120
notify-cooldown-seconds: 3
enforce-on-join: true
default-excess-mode: REMOVE
log-violations: false
debug: false
place-counter-refund-on-break: true
插件默认不包含任何规则,因此在创建规则之前不会限制任何物品。rules.yml 文件用于存储规则,由菜单生成,但手动编辑也可以——编辑后请运行 /il reload。
rules:
totems:
enabled: true
type: INVENTORY
scope: PLAYER
amount: 1
actions: [ REMOVE, MESSAGE, SOUND ]
matcher:
materials: [ TOTEM_OF_UNDYING ]
count-ender-chest: true
overrides:
- Notch=4
- Mirothe=-1
覆盖项以玩家名称为键,且仅在该玩家具有 OP 权限时生效——非 OP 玩家始终使用正常限制。将数值设置为负数表示无限制。
限制类型:BANNED INVENTORY ENDER_CHEST CONTAINER PICKUP CRAFT PLACE BREAK DROP USE
作用范围:PLAYER WORLD SERVER
动作:CANCEL REMOVE DROP MESSAGE TITLE SOUND LOG COMMAND
messages.yml 支持 MiniMessage 标签和传统的 & 颜色代码。
支持
支持!想要支持本插件及其作者吗?
只需向所有人推荐这款插件!没错,就是这么简单。仅仅通过宣传,你就能很好地支持该插件和创作者。了解这款插件的人越多,下载量就越大;更多的下载量会给作者带来良好的动力,并增加来自网站的收入(实际上是免费捐赠)。请记住,宣传不应具有侵入性和烦人感!
你可以做什么?
- 制作视频评测或广告
- 向你的朋友推荐这款插件
- 直接下载并使用这款插件(如果你想体验的话 :D)
ItemLimiter
ItemLimiter is an all-in-one Paper plugin for capping anything players can carry, place, craft or use. Set a limit on any item and the plugin enforces it automatically — items over the cap are deleted from the inventory, and pickups that would push a player over are blocked before they happen. No commands to memorise and no config editing required.
Every part of the plugin is controlled from one organised in-game menu. Create a rule, point it at an item, pick a limit type, set the number, and it is live. Rules can match a single material, a whole material tag, or items filtered by custom model data, display name, lore or enchantment.
Limits can be per player, per world or server wide, and can reset on a rolling timer — so "8 ender pearls per minute" and "32 beacons per world, ever" are both just rules.
Features
- One in-game menu controls everything — no config editing needed
- Ten limit types: banned items, inventory, ender chest, containers, pickup, craft, place, break, drop and use
- Items over the limit are deleted from the inventory automatically
- Pickups, crafts and placements that would exceed a limit are blocked outright
- Per player, per world or server wide limits
- Rolling reset windows for time based limits like uses per minute
- Match items by material, by tag such as
#minecraft:shulker_boxes, or by wildcard
- Advanced matching on custom model data, display name, lore text and enchantment level
- Per player overrides by name so a specific op can have their own limit, with
-1 for unlimited
- Bypass permissions per rule or for everything at once
- Choose what happens on a violation: cancel, remove, drop, message, title, sound, log or run a console command
- Restrict any rule to specific worlds and game modes
- Searchable item browser with every item in the game, or just add the item you are holding
- Live counter view showing tracked totals with a per rule reset button
- Inspect any online player to see exactly what they count against every rule
- Counters persist across restarts via
data.yml
- Works on Paper 1.21.0 through 1.21.x and the 26.x line with no NMS
Commands
| Command |
Description |
Permission |
/itemlimiter |
Open the control menu |
itemlimiter.use |
/itemlimiter list |
List every rule with its type and limit |
itemlimiter.use |
/itemlimiter check [player] |
Show what a player counts against each rule |
itemlimiter.use |
/itemlimiter reset <rule|all> |
Clear tracked counters |
itemlimiter.admin |
/itemlimiter reload |
Reload every config file from disk |
itemlimiter.admin |
Aliases: /il, /ilimit, /limiter, /itemlimit
Permissions
| Permission |
Description |
Default |
itemlimiter.use |
Open the menu and run base commands |
OP |
itemlimiter.admin |
Reload and reset counters |
OP |
itemlimiter.bypass.* |
Bypass every limit rule |
false |
itemlimiter.bypass.<rule> |
Bypass one specific rule by its id |
false |
Configuration
config.yml
scan-interval-seconds: 5
save-interval-seconds: 120
notify-cooldown-seconds: 3
enforce-on-join: true
default-excess-mode: REMOVE
log-violations: false
debug: false
place-counter-refund-on-break: true
The plugin ships with no rules, so nothing is limited until you create a rule. rules.yml holds them and is written by the menu, but hand editing works fine — run /il reload afterwards.
rules:
totems:
enabled: true
type: INVENTORY
scope: PLAYER
amount: 1
actions: [ REMOVE, MESSAGE, SOUND ]
matcher:
materials: [ TOTEM_OF_UNDYING ]
count-ender-chest: true
overrides:
- Notch=4
- Mirothe=-1
Overrides are keyed by player name and only take effect while that player is opped — a non opped player always uses the normal limit. Set a value below zero for unlimited.
Limit types: BANNED INVENTORY ENDER_CHEST CONTAINER PICKUP CRAFT PLACE BREAK DROP USE
Scopes: PLAYER WORLD SERVER
Actions: CANCEL REMOVE DROP MESSAGE TITLE SOUND LOG COMMAND
messages.yml supports MiniMessage tags and legacy ampersand colour codes.
Support
Support! Want to support the plugin and its author?
Just tell everyone about this plugin! Yeah, you got it right. Just by advertising, you will support the plugin and the creator well. The more people know about this plugin, the more downloads it will have, more downloads will give good motivation to the author and increase income from the site (literally free donation). Remember, advertising must not be intrusive and annoying!
What you can do?
- Make a video review or advertisement
- Tell your friends about this plugin
- Just download this plugin (if you want to play with it :D)
评论 0
登录后参与评分
还没有评论,来抢沙发吧