Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The hat configuration is invalid, The Hat switch in the Modules.yml file is also invalid #9464

Open
3 tasks done
polang233 opened this issue Feb 7, 2025 · 0 comments
Open
3 tasks done
Labels
bug report Reports of bugs/inconsistencies

Comments

@polang233
Copy link

Description of Issue

#8589 (comment)

The hat setting is invalid, no matter what it is changed to, only the original helmet can be worn, other materials are not allowed. So I rewrote the hat command myself, but found that even when the hat option in Modules.yml was set to false, the /hat command was still occupied by CMI in the game

After turning off hat in the module, the command/hat should not be occupied by CMI

Version Information

[17:58:53 INFO]: --------------------------------------------------
[17:58:53 INFO]: CMI版本:9.7.9.2 MySQL
[17:58:53 INFO]: CMILib版本:1.5.2.9
[17:58:53 INFO]: 服务器版本:Paper(1620) 1.12.2-R0.1-SNAPSHOT-
[17:58:53 INFO]: CMI经济系统:已启用Vault版本:1.7.3-b131(CMIEInjector)CMI聊天系统:已禁用
[17:58:53 INFO]: 模块 -> 48 已启用 19 已禁用:spawnerProximity, mirror, tablist, elytraExploit, skin, anvilRenameColor, spawners, nightSpeedup, dynamicSigns, eventCommands, playerChatTag, schedule, chatBubble, ranks, votifier, hat, spawnerCharge, homeInteractions, totemBehavior
[17:58:53 INFO]: --------------------------------------------------

Errors

Relevant Config Sections

Hat:
    Block:
      # When enabled we will not allow to place items into head slot if item has custom lore
      # Doesn't apply to helmet items
      WithLore: false
      # When enable we wont allow to equip items which are not hat type
      NoneHatItems: false
      # When enable we wont allow to equip none hat items with enchant on it
      NoneHatEnchanted: true
    Allow:
      # When enabled we will allow player to put on mob head without cmi.inventoryhat permission node
      # When disabled player will need to have cmi.inventoryhat to put on mob heads as hats
      MobHeads: true
    # List of materials to be allowed on players head
    # Keep it empty to allow all materials on player head
    WhiteList:
    - bedrock

#  
# Handling of hats
# Applies for servers from 1.7.x and up
hat: false

Relevant Plugins

No response

Agreements

  • My server is supported by CMI.
  • My version of CMI at the time of this report is up to date.
  • I have searched the github and asked around before making this report.
@polang233 polang233 added the bug report Reports of bugs/inconsistencies label Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Reports of bugs/inconsistencies
Projects
None yet
Development

No branches or pull requests

1 participant