* feat: Add primitive support for sound api
* change to fail silently
fix: implement the correct playSound method
fix: bumped "since" version
* chore: update 1.21.5
* chore: enforce adventure's policy of not throwing exceptions on unsupported actions
* feat: allow sounds to be played from other players (on the same server)
* chore(fix): add missing getters/setters in packets
* chore: update 1.21.6
chore: added own notes to playSound method, as adventure moved them to the Sound class
* chore: cleanup
* fix: ignore invalid sound source
fix: sound source error on wrong version
* chore: prettify key writing
* Implement missing Player#playSound(Sound)
* Reverted Player#playSound(Sound) implementation
Also, improved documentation related to #playSound mehtods
* chore(jd): mark dialog operations unsupported
* chore: update 1.21.9
---------
Co-authored-by: Adrian Gonzales <adriangonzalesval@gmail.com>
* Improve documentation for priority parameter in EventManager
PostOrder was deprecated in commit
(4f227badc2) in favor of priorities.
PostOrder itself was very descriptive on which PostOrder is processed first. A number cannot be descriptive about that - it is never clear if higher or lower numbers are processed first.
The Subscribe event attribute does contain a description on how priorities are evaluated. The EventManager did not, which literally did confused developers manually registering events.
This commit fixes this by describing the priority argument in EventManager with the same description that Subscribe uses.
* Fixed checkstyle
---------
Co-authored-by: Adrian Gonzales <adriangonzalesval@gmail.com>
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>
* 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>
This required a not-insubstantial number of bug fixes, since the sync support had bit-rotted somewhat. This PR also corrects a number of bugs.
Finally. the per-plugin executor services are now used to execute all async event tasks.
* feat: Add server registered/unregistered events
* Annotate new API with `@Beta`
* Migrate from classes to records
* Add null checks
* Fix code style indent
* Add links in documentation
* Fix docs indent
---------
Co-authored-by: powercas_gamer <cas@mizule.dev>
* Configuring the player (i.e. sending resource packs) should now be done in the new PlayerConfigurationEvent.
* The new PlayerEnteredConfigurationEvent is called when a player acknowledged the switch to configuration state.
* The PlayerEnterConfigurationEvent is no longer called twice. It is now called when the backed wants to reconfigure the player.
* The PlayerFinishConfigurationEvent should no longer be used to configure the player (i.e. sending resource packs). This is because since 1.20.5 the backend server can't send keep alive packets between switching state anymore and the connection will thus time out.