Skip to content

Purpur 26.1.2 - Enchanting items fails while player is muted and consumes XP #3792

Description

@CheekyNox

Are you using MySQL?

Yes

Are you using a proxy?

Yes - Velocity

"/version ChatControlRed" - plugin version

ChatControl version 12.1.13 Author: kangarko

Optional: Error log

No response

ZIP of "/chc debug"

No response

Steps to reproduce

Steps to reproduce:

  1. Mute a player using ChatControl.
  2. Give the player enough experience levels (for example, 36 levels).
  3. Try to enchant an item using an anvil (example: apply Protection IV).
  4. The experience levels are consumed, but the enchantment is not applied.
  5. ChatControl displays the message:
Cannot rename items while chat or you are muted!

Expected behavior:

Muted players should still be able to use normal item mechanics such as enchanting items. A chat mute should only affect chat-related features and should not block anvil enchantments.

Actual behavior:

The player loses experience levels when trying to enchant an item, but the enchantment is not applied. ChatControl incorrectly prevents the anvil action because it treats the enchantment operation as an item rename action.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions