Skip to content

Skip lookup of player names longer than 16 characters - #2328

Open
intersecato wants to merge 1 commit into
EngineHub:version/7.0.xfrom
intersecato:version/7.0.x
Open

intersecato wants to merge 1 commit into
EngineHub:version/7.0.xfrom
intersecato:version/7.0.x

Conversation

@intersecato

Copy link
Copy Markdown

Passing a name longer than 16 characters to region member/owner commands (e.g. /rg addowner <region> <long-name>) causes Paper's profile service to throw IllegalArgumentException: Name cannot be longer than 16 characters from Bukkit.createProfile, printing a stack trace instead of a user-facing error.

Such names can never belong to a valid player, so DomainInputResolver now skips the profile lookup for them. They remain in the unresolved list and the command reports "Unable to resolve the names ..." as it does for any other unknown player.

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