Skip to content

Feat/greedy minimessage arg#392

Merged
twisti-dev merged 2 commits into
version/26.2from
feat/greedy-minimessage-arg
Jul 1, 2026
Merged

Feat/greedy minimessage arg#392
twisti-dev merged 2 commits into
version/26.2from
feat/greedy-minimessage-arg

Conversation

@twisti-dev

Copy link
Copy Markdown
Contributor

No description provided.

- introduce greedy parameter to MiniMessageArgument constructor
- update miniMessageArgument function to accept greedy argument
- change default command exception message prefix to Colors.ERROR_PREFIX
- increment version to 3.32.0 in gradle.properties
@twisti-dev twisti-dev self-assigned this Jul 1, 2026
@twisti-dev twisti-dev merged commit b8495fc into version/26.2 Jul 1, 2026
7 checks passed
@twisti-dev twisti-dev deleted the feat/greedy-minimessage-arg branch July 1, 2026 10:21

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5329982c48

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


public class dev/slne/surf/api/paper/command/args/MiniMessageArgument : dev/jorel/commandapi/arguments/CustomArgument {
public fun <init> (Ljava/lang/String;)V
public synthetic fun <init> (Ljava/lang/String;)V

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep the one-argument constructor source-visible

For Java plugins that recompile against 3.32 and still instantiate new MiniMessageArgument("message"), this changes the old constructor to a synthetic member; javac ignores synthetic members during source resolution, so those callers no longer compile even though greedy defaults to false. Please keep a non-synthetic one-argument overload when adding the new boolean parameter.

Useful? React with 👍 / 👎.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant