3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-06 08:10:12 +01:00
Commit graph

503 Commits

Autor SHA1 Nachricht Datum
Elikill58
9a93bbe990
Add deprecation notice (#1442) 2024-10-20 20:05:29 -04:00
Isaac - The456
99aaf3ce4e
expose raw vhost (#1423) 2024-10-07 10:41:17 +01:00
Andrew Steinborn
2016d1482f Deprecate anonymous command registrations 2024-09-15 21:27:47 -04:00
Andrew Steinborn
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
Timon
dd7b8b4d8f
Update 1.21 protocol to include 1.21.1 release (#1402) 2024-08-08 15:47:18 +01:00
powercas_gamer
51468530a9
[ci skip] add adventure-key and text-minimessage javadoc links (#1394) 2024-07-25 23:53:22 -05:00
Patryk Twardosz
09f687e5d5
feat: Add server registered/unregistered events (#1386)
* 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>
2024-07-24 18:13:21 -05:00
Rubén
d5e7fa5b84
Add ServerResourcePackRemoveEvent (#1379)
* Add ServerResourcePackRemoveEvent

* Add nonnull check

* Fix indentation

* Fix import code style
2024-07-12 05:02:00 -05:00
Gero
6073f698e2
Add PlayerConfigurationEvent and PlayerEnteredConfigurationEvent (#1371)
* 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.
2024-07-12 11:16:42 +02:00
Shane Freeder
79a5634dfe
[ci skip] fix some trivial javadoc warns 2024-07-10 23:05:24 +01:00
William
9d25d309d3
feat: Add basic API for server links (#1353)
* feat: add basic server links API

* refactor: more precondition checking on links

* refactor: remove whitespace

* refactor: adjust method order, JDs in ServerLink

* refactor: remove "throws" from constructors

* refactor: add @NotNull annotations

* refactor: requested changes

* refactor: just use `List#copyOf`
2024-06-18 09:29:58 -05:00
Adrian
e60e2063a8
Add Configuration State API (#1261)
* Implement Configuration State events

* Implement PlayerFinishedConfigurationEvent

* Fixed PlayerFinishConfigurationEvent execution

* Apply suggestions

* Fix keep alive when blocking PlayerFinishConfigurationEvent

* Add ServerConnection to configuration events

* Separate PlayPacketQueueHandler to fix AutoReadHolderHandler

---------

Co-authored-by: Gero <gecam59@gmail.com>
2024-06-16 10:56:09 -05:00
Gero
350ea7f31e
1.21 support (#1338) 2024-06-12 20:33:01 +02:00
Adrian
2d015cdf5c
Add support for canceling ProxyPingEvent (#1264)
* Added support for canceling ProxyPingEvent
2024-06-08 14:28:33 -05:00
Luccboy
46cf9be297
[ci skip] Fix Javadocs of CookieRequestEvent (#1339) 2024-05-30 17:21:26 +01:00
Luccboy
07f1f9e7bd
Add Cookie API (#1313) 2024-05-30 16:52:30 +01:00
Gero
42d4288334
Fix tab completions not being forwarded to backend if proxy command exists but is inaccessible (#1329) 2024-05-26 13:19:37 +01:00
Pantera (Mad_Daniel)
399bc2325f
Add version information for 1.20.6 (#1310)
https://www.minecraft.net/en-us/article/minecraft-java-edition-1-20-6
2024-04-29 23:13:08 -07:00
Adrian
bf507dc0b8
Update snapshot protocol to 1.20.5 release (#1298) 2024-04-23 10:07:39 -05:00
Adrian
8f4adb1cec
1.20.5 Support (#1198)
Added support to Minecraft 1.20.5 (Release Candidate 3)

* Initial 1.20.5 update

* Snapshot 24w03a

* Handle Transfer Handshake intent

* Snapshot 24w03b

* Implement PreTransferEvent

* 24w04a

* Updated EncryptionRequestPacket, JoinGamePacket and ServerDataPacket to 24w04a

* Snapshot 24w05a

* Snapshot 24w05b

* Snapshot 24w06a

* Added migration to add new configuration option

* Snapshot 24w07a

* Snapshot 24w09a

* Snapshot 24w10a

* Snapshot 24w12a

* Snapshot 24w14a

* 1.20.5-rc1

* fix unsigned commands

* fix NPE

* fix respawn packet id

* 1.20.5 Release Candidate 2

* Restored old ConnectionHandshakeEvent constructor

* Added `-Dvelocity.strictErrorHandling` system property

* 1.20.5 Release Candidate 3

---------

Co-authored-by: Gero <gecam59@gmail.com>
2024-04-22 21:12:25 -05:00
Adrian
9e42049a67
Improved PluginMessaging API (#1254)
* Improved PluginMessaging API by adding a method to easily encode the data to be sent

* Added javadocs

* Implement PluginMessageEncoder
2024-04-08 12:24:20 -05:00
LightningReflex
3b7b902bf5
[ci skip] Fixed typo in KickedFromServerEvent.java (#1266) 2024-03-11 13:21:39 +00:00
Joo200
8891faa52c
Added event when a command is executed from Velocity (#984)
* feat: added event for command invocation

This event is called when a command invocation attempt on the proxy occurs

* Fix javadoc issue
2024-03-05 10:11:17 -05:00
Adrian
c34dafe2a2
Implement ProtocolState API (#1224)
* Implement ProtocolState API

* Renamed method to #getProtocolState

* Added sinceMinecraft javadoc tag

* Fixed PreLoginEvent#getUniqueId documentation
2024-03-03 16:21:22 -05:00
Maxim Breitman
82189a6a21
Tiny rework of Protocol Version API (#1260) 2024-03-01 22:42:02 -05:00
Adrian
d330236b09
Add CommandSource#sendRichMessage and #sendPlainMessage (#1256) 2024-02-27 12:08:53 -05:00
Adrian
409ab7b118
[ci skip] Add javadocs warnings about unsupported operations (#1250)
* Document possible blank spaces in the command of the CommandExecuteEvent

* Added Javadocs warning about unimplemented methods in Velocity

* Improved KickedFromServerEvent documentation

* Fixed `apiNote` javadoc generation
2024-02-23 14:11:42 -05:00
Adrian
ef861819e3
Do not apply a resource pack that has already been applied (#1236)
* Do not apply a resource pack that has already been applied

* Throw IllegalStateException in case of applying a resource pack already applied from the API

* Updated some dependencies

* Added support for ServerResourcePackSendEvent resource pack modification
2024-02-11 12:00:07 -05:00
itsTyrion
d8bb4e97e4
Add API for custom chat completions like on Paper (#1232)
* Add API for custom chat completions like on Paper, renamed enum constant to match its function, NMS and wiki-vg

* add null and version checks
2024-02-09 16:23:16 -05:00
Adrian
7bff6b19eb
Use sealed types in command interfaces (#1239)
* Use sealed types in command interfaces

* Some minor code fixes
2024-02-09 14:15:53 -05:00
Kezz
e1f3b6b66f
Expose connecting player's UUID in the PreLoginEvent (#1009)
* feature: Expose connecting player's UUID in the PreLoginEvent

* Applied suggestions

* Updated the javadocs compatible version to Java 17

---------

Co-authored-by: Adrian <adriangonzalesval@gmail.com>
2024-02-09 10:23:47 -05:00
Adrian
cbd07b1434
Refactor ResourcePacks handling (#1225)
* Initial ResourcePack refactor

* Implement sendResourcePacks method

* Initializes the ResourcePackHandler at player initialization

* Move adventure to velocity resource pack conversion to the same class

* Added some internal resource pack documentation

* Refactored Modern ResourcePack handling

* Handle RemoveResourcePackPacket from backend server

* Fixed license

* Use removeIf instead of manual iteration

* Improve ModernResourcePackHandler

* fix hash conversion

* bundle resource packs

* keep old constructors of PlayerResourcePackStatusEvent

* add @Nullable to PlayerResourcePackStatusEvent#getPackId

* Use a single instance of BundleDelimiterPacket

* Throw UnSupportedOperationException on operations not supported by LegacyResourcePackHandler

* Use a single instance on empty packets

* Handle active packet bundle sending from backend server in case of sending a packet bundle of resource packs

* Improve packet bundling

* Fixed login for players with version 1.20.2

---------

Co-authored-by: Gero <gecam59@gmail.com>
2024-02-08 08:51:45 -05:00
itsTyrion
10430a2115
Validate plugin dependency IDs in accordance to plugin ID requirements (#1231) 2024-02-07 21:30:55 -05:00
Andrew Steinborn
953ab6d8e7
Implement click callback provider (#1029) 2024-01-20 16:58:00 -05:00
pop4959
523d750f2b
Implement some missing resource pack API (#1206) 2024-01-20 10:11:05 +00:00
Shane Freeder
35137df76c
Bump to adventure release
The API changes required for adopting resource packs are still needed, however
the maven snapshots repo is dead, and nothing technically stops us from doing
this
2024-01-19 15:26:31 +00:00
Riley Park
0993ce2f86
Improve protocol version checking (#1203)
* Improve protocol version checking

* chore: since 3.3.0
2024-01-18 17:32:42 -08:00
Adrian
6fd03d6f5c
Added static methods to create ArgumentBuilders directly in the BrigadierCommand class (#1161) 2023-12-27 13:33:44 -05:00
Shane Freeder
21ae82e7c0
Update adventure to snapshot version 2023-12-14 16:36:18 +00:00
Gero
98632925e1 javadoc for PlayerResourcePackStatusEvent.Status#isIntermediate 2023-12-14 14:20:16 +00:00
Gero
8bfe0670c4 1.20.4 2023-12-14 14:20:16 +00:00
Gero
058aee259a fix resource pack status 2023-12-14 14:20:16 +00:00
pkt77
efcfeb3e53 1.20.3 working & checkstyle fixes 2023-12-14 14:20:16 +00:00
Gero
814b53f12c WIP 1.20.3 2023-12-14 14:20:16 +00:00
Adrian
a6d90105ec
Update Configurate to 4.1.2 and include Configurate 3 (#1157) 2023-12-11 15:16:44 +00:00
Andrew Steinborn
277be8f9a7 Bump SnakeYAML to the last 1.x version
Fixes #1047. We can't go any higher since that's an API-breaking change. In any event, this will likely disappear in 5.0.0 anyway, because Configurate 4.x now shades SnakeYAML internally.
2023-10-27 16:58:43 -04:00
Alexander Städing
3d20c3dd2d Migrate buildSrc plugins to build-logic 2023-10-27 16:03:15 -04:00
Owen
b33d18af2b
Allow closing active proxy listeners (#1109) 2023-10-27 01:39:03 -04:00
Badbird5907
b30802c1b3
API: Add Tristate#fromOptionalBoolean (#1125) 2023-10-26 03:01:24 -04:00
Adrian
eb594fc799
Implement ComponentLogger (#1022) 2023-10-12 18:44:10 +01:00