Skip to content

Add Sign#setOperatorFeaturesAllowed #14447

Closed

Description

@molor

Is your feature request related to a problem?

Yes. We have a command to edit text on signs with MiniMessage format, and we can use click:run_command tag in it, but the sign will not execute any command by default, because Mojang added a allow_op_features NBT tag in 26.3s4 to every sign w/ default value false. And there's no way to change that value to true via API.

Describe the solution you'd like.

Add Sign#setOperatorFeaturesAllowed, similar to the existing methods (Sign#setWaxed, Sign#setGlowingText, ...).

Describe alternatives you've considered.

Server#dispatchCommand(Server#getConsoleSender, "data merge block ... {allow_op_features: 1b}")

Other

I think that ability to change the default value of allow_op_features via per-world configuration would also be useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.

    Fields

    No fields configured for Feature.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions