Commit Graph

2281 Commits

Author SHA1 Message Date
e69213f987 respect log-player-connections flag in config for connection messages (#1503) 2025-02-17 12:07:06 +00:00
f986eb51ec Do not print an exception if a client closed before switching to config state 2025-02-13 12:12:33 +00:00
9d1332d3a3 Add PluginMessageEvents for configuration phase 2025-02-13 11:53:30 +00:00
83c1749eed Add javadoc for ServerPing.Builder (#1500)
* Add javadoc for ServerPing.Builder

* Address codestyle reports
2025-02-12 14:35:38 -05:00
a26d5581c4 docs: Remove beta annotations on events (#1505)
These events aren't in beta, some of them have been stable for years now.
2025-02-12 14:35:15 -05:00
1652d44f5f Fix checkstyle 💩 2025-01-31 19:35:43 +01:00
6815808d32 Improve fml mod list parsing 2025-01-31 19:11:34 +01:00
91bdcebb1a Use real vanilla limits for LegacyChat (#1502)
Client -> server
< 1.11 has 100
>= 1.11 has 256

Server -> client has always 262144
2025-01-31 13:11:39 +00:00
0e84b57e53 Add Virtualhost support for server list pings (#1265)
* 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>
2025-01-31 07:04:52 -05:00
876b9c3601 Fix ShutdownCommand message styling (#1427)
* Fix ShutdownCommand message

* Fix checkstyle violation.
2025-01-26 23:03:37 -05:00
6995f415d3 Expose shutdownInProgress to the API. (#1485)
Co-authored-by: kyngs <kyngs@users.noreply.github.com>
2025-01-26 07:49:35 -05:00
371e686076 properly apply vanilla cap to chat packets 2025-01-23 19:30:55 +00:00
7392cd6574 Fix nonsensical deprecation for specifying listener priority (#1491)
* Fix nonsensical deprecation for specifying listener priority

* Fix checkstyle error
2025-01-21 12:37:20 -05:00
71feb11b2e Fix fallback compression handler 2025-01-17 15:11:03 +00:00
c0fdf20224 Add InboundConnection#getHandshakeIntent (#1493)
* Add InboundConnection#getHandshakeIntent
2025-01-14 20:44:20 -05:00
00b68859ff Add "GetPlayerServer". (#1484) 2025-01-02 09:53:53 +00:00
1db8c8c6ab Bump adventure to 4.18.0 (#1481) 2024-12-23 02:59:13 +00:00
af97ffffa5 A few small code cleanups for cryptography
* Remove some unused cryptographic code
* Add some notes about how Minecraft's cryptography choices have not quite survived the test of time
2024-12-21 03:45:17 -05:00
39191957ea Migrate to setup-gradle, Gradle 8.11.1. (#1480) 2024-12-21 03:02:30 -05:00
d77e508e9c [ci skip] Fix typo in TabListEntry latency docs (#1479) 2024-12-19 16:04:56 +00:00
4aa9ee7735 fix: NoClassDefFoundError on FastUtil's toIntArray (#1475) 2024-12-14 20:48:08 +00:00
965db127a9 InvocationInfo API (#1467)
* 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>
2024-12-04 09:36:45 -08:00
be5f0ace26 Minecraft 1.21.4 (#1457) 2024-12-03 15:07:26 +01:00
a33f2d1af5 Fix callback command not working (#1464)
Broken in 2016d1482f (diff-1217e64751ab6522195a858620cceeb4f2d2b6506c36dd4e396726ad3e7ef0cb)
2024-12-01 10:31:44 +00:00
9cfcfcf2ed Fix SystemChatPacket: Support reading packet properly in newer MC versions (#1461) 2024-11-19 17:49:17 +00:00
cefa3b272e feat: expose list order in TabListEntry (#1451)
* feat: expose list order in TabListEntry

* fix: address comment (from github)

* fix: address another comment (from github)
2024-11-09 18:03:34 -05:00
08a42b3723 Replace home-made legacy hover event serializer with Adventure's implementation
This technically can break backwards compatibility, but this seems to be very unlikely to be the practice in reality. (The Velocity implementation probably wasn't correct, anyway.)
2024-10-27 15:13:22 -04:00
dc40e160d7 replace old velocitypowered.com links (#1399)
* replace old links

* content to 'PaperMC', cause its probably the best
2024-10-27 14:27:09 -04:00
f2d6e143ae Update several dependencies 2024-10-27 14:10:33 -04:00
b135148dfc fix a typo 2024-10-27 13:54:08 -04:00
69ee655d74 Update 1.21.2 protocol to include 1.21.3 release (#1449) 2024-10-23 19:39:12 +01:00
7a9227d517 Fix extra respawn packet byte on <1.21.2 (#1448) 2024-10-22 19:01:55 +02:00
05235da55d 1.21.2 (#1447)
* 24w33a

* 24w34a

* 24w38a

* 24w40a

* 1.21.2
2024-10-22 17:33:55 +02:00
2c8ce219f0 fix checkstyle, closes #1446 2024-10-20 20:20:42 -04:00
d4e89dbdda Ability to specify servers from the command line (#1445) 2024-10-20 20:09:55 -04:00
usb
1e6396d6c2 set annotation processor to isolating to decrease compile times on big plugins (#1434)
Signed-off-by: U5B <56985400+U5B@users.noreply.github.com>
2024-10-20 20:06:01 -04:00
9a93bbe990 Add deprecation notice (#1442) 2024-10-20 20:05:29 -04:00
99aaf3ce4e expose raw vhost (#1423) 2024-10-07 10:41:17 +01:00
ef1f5009d3 Adjust HAProxy's existance to log when the proxy protocol is enabled … (#1436)
* Adjust HAProxy's existance to log when the proxy protocol is enabled during bind.

* Added additional warning message, instead of changing the main one. We can see what the preference would be.
2024-09-22 21:42:12 -04:00
b66aa3fb4e Bump to Velocity 3.4.0 2024-09-15 21:38:03 -04:00
2016d1482f Deprecate anonymous command registrations 2024-09-15 21:27:47 -04:00
4f227badc2 Reintroduce sync event execution to the Velocity event system
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.
2024-09-15 20:41:11 -04:00
ffa78d2a92 Small clean-ups in event manager. 2024-09-15 17:00:15 -04:00
4eb02c8d38 Do not store the dimension registry for each connected server
This was unused and did little more than add unnecessary memory usage. The only time we need the dimension registry is during server switching - once that is done, we no longer need the registry.
2024-09-15 13:55:33 -04:00
78f6cfc26c feat: Require any ConsoleCommandSender for the shutdown command (#1428) 2024-09-14 12:18:23 +01:00
2299b78ad3 fix: apply message in PlayerChatEvent when handling SessionPlayerChatPacket (#1411)
Fix 1.19.3+ unsigned chat not being changed by `PlayerChatEvent`.
2024-09-14 12:13:57 +01:00
6f6d55e9e6 [ci skip] make 'runShadow' workingDir use the 'run' directory (#1398) 2024-09-14 12:02:08 +01:00
0cd069ecbf Fix exception while serializing JsonArray (#1426) 2024-09-11 12:40:25 -07:00
3c23ee7576 Fix typo for musl crypto 2024-09-07 13:14:04 -04:00
525ac2712e Also provide musl libc builds of Velocity natives
Reference: PaperMC/Paper#11367
2024-09-07 12:56:38 -04:00