Skip to content

Fix /exp command usages & tab complete - #6607

Merged
JRoy merged 5 commits into
EssentialsX:2.xfrom
1wairesd:2.x
Aug 22, 2026
Merged

Fix /exp command usages & tab complete#6607
JRoy merged 5 commits into
EssentialsX:2.xfrom
1wairesd:2.x

Conversation

@1wairesd

@1wairesd 1wairesd commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

No description provided.

1wairesd and others added 3 commits May 31, 2026 20:23
PatternType.getByIdentifier() causes IncompatibleClassChangeError on
1.19.4 due to a mismatch between Methodref and InterfaceMethodref
bytecode constants when compiled against a newer API.

Introduce PatternTypeProvider with two implementations:
- LegacyPatternTypeProvider: iterates PatternType.values() for 1.19.4
  and older where PatternType is still an enum
- ModernPatternTypeProvider: uses Registry.BANNER_PATTERN for 1.20.5+

Update MetaItemStack.addBannerMeta to resolve PatternType through the
provider instead of calling the deprecated static method directly.
- Fix typo expCommandUsage4Description -> expCommandUsage3Description in messages.properties and messages_ru.properties
- Tab-complete for /exp give|set|take no longer suggests player names without .others permission

@JRoy JRoy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm, just need to move the other usage string up one.

Comment thread Essentials/src/main/resources/messages.properties Outdated
Comment thread Essentials/src/main/resources/messages_ru.properties Outdated
- Renumber expCommandUsage keys sequentially (3, 4) instead of (3, 5)
- Fix missing expCommandUsage3Description causing MissingResourceException
- Only suggest player names in tab-complete when user has .others permission
@JRoy JRoy changed the title ### Information Fix /exp command usages & tab complete Aug 22, 2026
@JRoy
JRoy added this pull request to the merge queue Aug 22, 2026
Merged via the queue into EssentialsX:2.x with commit 83aaf8c Aug 22, 2026
1 check passed
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.

2 participants