Skip to content

Conversation

@willkroboth
Copy link
Contributor

ThatCorona pointed out a runtime issue with the player name suggestions example on Discord.

image

It currently uses a PlayerProfileArgument, but tries to cast the result to Player rather than PlayerProfile. A Player makes sense for the example warp command, so I changed it to use an EntitySelectorArgument.OnePlayer. Therefore, I moved the example from the PlayerProfile argument section to the Entity selector argument section.

I also moved the entity examples that are not Paper/Spigot specific into the Bukkit reference code module (only the example that uses the AsyncPlayerProfileArgument needs Paper/Spigot). Since they work the same and use the same code, I think having them in one place makes them easier to update.

Move the example into the entity selector section rather than the player profile section, matching the argument used in the examples.

Move non Paper/Spigot specific examples into the Bukkit reference code section to reduce duplicated information (only `PlayerProfileArgument` and `AsyncPlayerProfileArgument` are Paper/Spigot specific)
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