* fix: Don't ignore the player's locale in message translation
* feature: Use PointersSupplier to save constructing a Pointers instance for every player
* fix: Don't use a custom implementation of Identity for players
We don't need to carry about this object for every player.
* chore: Stop using deprecated TranslationRegistry
* fix: Simplify TranslatableMapper and fix bugs
- The fallback string is not intended to be translated, so don't do that.
- Check if the string can be translated in the default locale before using the closest mapper as devs may have their own strings.
- Remove the hardcoded check for TranslationRegistry instance as devs (and us now) can use non-TranslationRegistry translator instances.
Missing adventure component changes, so entity and item hovers from the API may not work for 1.21.5 clients
Co-authored-by: Gero <gecam59@gmail.com>
Co-authored-by: Shane Freeder <theboyetronic@gmail.com>
This has two effects:
- Will no longer send queued chat packets from previous server after switch (race condition)
- The offset in 'last seen' updates will be corrected, as the internal ChatState will be reset (only applied if the player had not sent a message in a while, and >20 messages had been received)
* Add virtualhost support for server list pings
* Add virtualhost support to ping public API
* Applied suggestions
* fixed checkstyle
* Added nullable annotation
---------
Co-authored-by: Adrian <adriangonzalesval@gmail.com>
* Invocation Source API
Allows proxies to detect if a command is executed from an unsigned/signed/api source.
This is useful because it allows commands executed from the player manually or by clicking on a chat message to be controlled.
* Update api significantly to improve api coverage
* javadoc
* javadoc
* Update api/src/main/java/com/velocitypowered/api/event/command/CommandExecuteEvent.java
Co-authored-by: powercas_gamer <cas@mizule.dev>
* Update api/src/main/java/com/velocitypowered/api/event/command/CommandExecuteEvent.java
Co-authored-by: powercas_gamer <cas@mizule.dev>
* Fix rename
---------
Co-authored-by: powercas_gamer <cas@mizule.dev>