CreativeItemControl

插件

· 作者 Jamplifier

控制玩家在创造模式世界中获得的物品

0 本站下载 0 关注 更新于 3 个月前

最新 2.0.1 · 26.3 · Folia / Paper

一键开服(送7天)

问题与建议

如有任何问题或建议,请访问我们的 Discord!

CreativeItemControl 是一个插件,旨在防止玩家获取或使用无法获得的物品,例如:

  • 不可能的附魔
    • 不兼容的附魔(无限 + 经验修补)
    • 超出极限的等级(锋利度 X)
    • 不兼容的物品(在木棍上附加锋利度)
  • 自定义药水
    • 带有自定义效果的药水
  • 属性修改器
    • 阻止任何带有属性修改器的物品
  • 自定义组件

你也可以使用 /cic exclude 命令来允许特定物品。

命令:

  • /cic exclude <id> | 将当前手持物品从 CIC 中排除。ID 是你希望赋予它的任意名称
  • /cic give <id> [player] | 给自己或另一名玩家(如果你拥有权限)发放被排除的物品
  • /cic reload | 重载插件配置
  • /cic remove <id> | 从排除列表中移除被排除的物品

权限:

cic.bypass.enchantments - 绕过附魔保护
cic.bypass.potions - 绕过药水保护
cic.bypass.attributes - 绕过属性保护
cic.bypass.components - 绕过组件保护
cic.bypass.* - 绕过所有保护

cic.give.<id> - 允许玩家给自己发放被排除的物品
cic.admin - 管理员命令 (/cic exclude, reload, remove),允许对他人使用 /cic give

多种处理物品的操作选项,可在配置文件中自定义。

Config.yml
# Creative Item Control Plugin Config
# This plugin is designed to give full control over item data to server administrators, especially those
# with creative mode worlds or servers

config:
  enabled: true # 是否启用插件?
  player-alerts: true # 向尝试获取该物品的玩家发送消息
  alert-cooldown: 1000 # 每次警报消息之间的冷却时间(毫秒)

  worlds: # 插件生效的世界
    - example
  blacklist: false # 如果为 true,上述 worlds 配置将作为黑名单

  give-cooldown: 0 # /cic give 命令的冷却时间。cic.admin 可绕过此限制

  check-dispensers: true # 当为 true 时,发射器将无法发射被阻止的物品

  per-item-permissions: true



enchantments:
  # 默认情况下,仅允许常规附魔和等级。
  # 发现不可能附魔时要采取的操作。选项:
  # LOWER - 将附魔设置为该物品可能的最高值
  # REMOVE - 完全移除物品上的附魔
  # DELETE - 删除该物品
  enabled: true # 是否启用附魔检查?
  action: LOWER
  allow-incompatible: false # 是否允许不兼容的附魔(锋利与亡灵杀手、无限与经验修补等)

attributes:
  # 默认情况下,不允许任何具有属性修改功能的物品
  # 发现属性修改器时要采取的操作。选项:
  # REMOVE - 移除物品上的属性修改器
  # DELETE - 删除该物品
  enabled: true
  action: DELETE

potions:
  enabled: true


components: # 拒绝特定组件。组件列表请参阅 https://minecraft.wiki/w/Data_component_format
  enabled: false
  blocked: # 要阻止的组件列表
    - minecraft:example_component

# ----------------------------- Messages -------------------------------------
messages:
  alerts:
    components: '<b><red>此处不允许带有自定义组件的物品!'
    attributes: '<b><red>此处不允许带有属性修改器的物品!'
    enchantments: '<b><red>此处不允许带有不可能附魔的物品!'
    potions: '<b><red>此处不允许自定义药水!'

  commands:
    exclude: '&a已将 {type} 存储为 "{id}"。'
    remove: '&a已移除被排除的物品 "{id}"。'
    listempty: '&e没有存储的被排除物品。'
    # Give Command
    give: '&a已将 "{id}" 发放给 &f&a{player}。'
    giveinvalid: '&c未找到 ID 为 "{id}" 的被排除物品。'
    giveothers: '&c你没有权限向其他玩家发放物品!'
    playernotfound: '&c未找到玩家 "{player}"。'
    specifyplayer: '&c请指定一名玩家:/cic give <id> <player>'
    invalidworld: '&c你无法在此世界中使用此命令!'
    oncooldown: '&c你必须等待 {time}s 后才能再次获得此物品。'

    noperm: '&c你没有权限!'




如果你对此插件有任何疑问、建议或问题,请查看 discord。

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源