Commit Graph
58 Commits
Author SHA1 Message Date
AdrianandGitHub 97b386d86f Adventure 5 (#1774)
* Adventure 5.2.0
2026-07-10 11:53:08 +01:00
AdrianandGitHub eb2bea79ba Implement MiniMessage Velocity translations (#1108)
* Implement MiniMessage Velocity translations

* Implemented migration from old language format

* Updated year in default translations

* Fixed compilation

* Use MiniMessageTranslationStore

* Simplify MiniMessageTranslationsMigration#shouldMigrate

* Added support to named placeholders

* Updated translation arguments to MiniMessage translation placeholders
2026-01-25 14:06:03 -05:00
AdrianandGitHub 75ecb64159 Update minimum Java version to 21 (#1649) 2026-01-25 19:22:54 +01:00
AdrianandGitHub 8f65a81420 Minecraft 1.21.11 (#1690)
* 1.21.11-pre2

I have not identified any changes that affect us at this time

* 1.21.11-pre3

* 1.21.11-pre4

* 1.21.11-pre5

* 1.21.11-rc1

* 1.21.11-rc2

* Minecraft 1.21.11 release support
2025-12-07 15:28:00 -05:00
AdrianandGitHub b6b6b20fe9 Generate a new forwarding secret file if the file is deleted (#1671)
* Generate a new forwarding secret file if the file is deleted

This allows to generate a new forwarding secret simply by deleting the file if required.
The file will only be generated if the forwarding secret is not configured through a system property

resolves #1670

* Add file creation message
2025-10-23 11:13:36 -05:00
AdrianandGitHub 7412aca81c Fixed sending ServerData packets if the description component from the backend server is null (#1673) 2025-10-20 19:51:47 -05:00
AdrianandGitHub 02cf349075 Fixed disconnecting players in the middle of a backend server reconfiguration (#1669) 2025-10-19 09:43:40 -05:00
AdrianandGitHub 0afe061224 Updated Adventure to 4.19.0 (#1520)
Also updated ASM and Ansi to support Java 23 and 24
2025-02-27 01:25:01 -05:00
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
AdrianandGitHub 2d015cdf5c Add support for canceling ProxyPingEvent (#1264)
* Added support for canceling ProxyPingEvent
2024-06-08 14:28:33 -05:00
AdrianandGitHub bf507dc0b8 Update snapshot protocol to 1.20.5 release (#1298) 2024-04-23 10:07:39 -05:00
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
AdrianandGitHub be678840de Added support for components when using CommandSyntaxException (#1295) 2024-04-21 13:49:44 -05:00
AdrianandGitHub 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
AdrianandGitHub 615b575d91 [ci skip] Add plugin version info to event exception handler (#1263) 2024-03-23 11:51:44 -07:00
AdrianandGitHub 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
AdrianandGitHub d330236b09 Add CommandSource#sendRichMessage and #sendPlainMessage (#1256) 2024-02-27 12:08:53 -05:00
AdrianandGitHub 74c932e579 Fix sending keep alive response to wrong backend server (#1253) 2024-02-24 14:24:06 -05:00
AdrianandGitHub 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
AdrianandGitHub 7ca0689989 Fixed duplicate sending of resource packs responses to backend server (#1249)
Also fixes the sending of SUCCESSFUL responses to the backend server that will apply a resource pack in case Velocity has already applied one or more resource packs to the player
2024-02-22 12:48:36 -05:00
AdrianandGitHub fc3bc1f3fe Update Adventure to 4.16.0 (#1248)
* Update Adventure to 4.16.0

Also migrated shadow from `com.github.johnrengelman.shadow` to `io.github.goooler.shadow`, which fixes the project compilation using Java 21 and Gradle 8.6

* Update Gradle to 8.6 release
2024-02-20 10:10:52 -05:00
AdrianandGitHub 2cf18b0a6d Fix login disconnect from 1.20.4 (#1245) 2024-02-16 07:34:01 -05:00
AdrianandGitHub ecf936f356 Create a new HttpClient per connection (#1243)
* Create a new HttpClient for each connection

If the instance is using Java 21, the HttpClient resources will be cleaned using its AutoCloseable interface
2024-02-15 09:59:34 -05:00
AdrianandGitHub 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
AdrianandGitHub 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
d7799eaf60 Ensure that we send a response to the correct server when in flight (#1234)
* Ensure that we send a response to the correct server when in flight

* The rest of the codebase treats the hash as a String...

As does Mojang.

* Support sending the resource packet response to the in-process connection in the ModernResourcePackHandler

---------

Co-authored-by: Shane Freeder <theboyetronic@gmail.com>
2024-02-08 11:15:14 -05:00
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
AdrianandGitHub 38558783bb Fixed client brand handling for players with versions 1.20.2 or higher (#1223)
This commit fixes the sending of the client brand to the backend server and the execution of the PlayerClientBrandEvent from players with versions 1.20.2 or higher
2024-01-29 09:13:17 -05:00
AdrianandGitHub b23c2c6e1a Revert "Add -haproxy-protocol startup parameter" (#1214) 2024-01-21 11:11:02 -05:00
AdrianandGitHub 46d018c0f2 Pass the correct virtual host port during the handshake (#1205) 2024-01-20 07:27:41 -05:00
AdrianandGitHub d4a661870e Fixed possible ConcurrentModificationException when iterating across TabList entries (#1204) 2024-01-20 10:12:29 +00:00
AdrianandGitHub 2ac8751337 Updated the packet classes to include the "Packet" suffix (#1202)
* Updated the packet classes to include the "Packet" suffix

* Fixed test checkstyle
2024-01-18 12:25:22 -08:00
AdrianandGitHub c7c65e3339 Fixed unknown status code error (#1196) 2024-01-17 17:00:39 +00:00
AdrianandGitHub 6d7335b21f Fully replaced AsyncHttpClient (#1194) 2024-01-17 15:20:27 +00:00
AdrianandGitHub a008464ede Improved configuration migration (#1111) 2024-01-11 10:38:00 +00:00
AdrianandGitHub cc906000bc Fixed Legacy Ping handling (#1180) 2024-01-11 06:57:03 +00:00
28acf9eac1 Removed console legacy color support (#1105)
Co-authored-by: Shane Freeder <1228900+electronicboy@users.noreply.github.com>
2024-01-04 15:40:11 +00:00
AdrianandGitHub 6fd03d6f5c Added static methods to create ArgumentBuilders directly in the BrigadierCommand class (#1161) 2023-12-27 13:33:44 -05:00
AdrianandGitHub a6d90105ec Update Configurate to 4.1.2 and include Configurate 3 (#1157) 2023-12-11 15:16:44 +00:00
AdrianandGitHub 2e8ef8b2ca Fire PlayerSettingsChangedEvent event when PlayerSettings are provided in the Configuration phase (#1118) 2023-10-29 14:44:04 -04:00
AdrianandGitHub f884e049c0 Log the protocol phase in case of trying to obtain a packet id not existing in the phase (#1107) 2023-10-12 21:29:04 +01:00
AdrianandGitHub eb594fc799 Implement ComponentLogger (#1022) 2023-10-12 18:44:10 +01:00
AdrianandGitHub e0cf2e211f Updated Guice to 6.0.0 and manually include updated ASM (#1016) 2023-06-02 22:12:03 -04:00
AdrianandGitHub e364e2c7d1 feat: Warn if an attempt is made to register a command with multiple interfaces implemented instead of just ignoring it (#1000) 2023-04-09 12:23:39 -04:00
AdrianandGitHub b0e8dbc419 [ci skip] Fixed build badge (#975) 2023-03-15 22:45:18 -04:00
AdrianandGitHub cc74cf855f Added MiniMessage support to built-in motd (#666) 2023-03-15 19:27:20 -04:00
AdrianandGitHub 9149ed3384 Update adventure javadoc link (#956) 2023-02-25 15:20:41 +00:00
AdrianandGitHub 8761d02def feat: Implement RegisteredServer#ping(PingOptions) (#938) 2023-01-26 00:33:07 -05:00
AdrianandGitHub 4b33d5fb8a Update Configurate to 3.7.3 (#845) 2022-08-17 20:27:45 +01:00
AdrianandGitHub fbde1ff82a Implement Documented javadoc annotation on AwaitingEvent (#837) 2022-08-14 17:16:42 -04:00
AdrianandGitHub 508c1edb3a Fixed possible IOException if forwarding-secret-file path is a directory (#743)
* Fixed possible IOException if path is a directory

* Removed File usage

* Catch possible NumberFormatException on invalid config version

!Files.exists -> Files.notExists
2022-06-18 20:06:51 -04:00
4drian3dandGitHub 74edac9642 Fixed BungeeGuard support (#739) 2022-06-09 18:08:55 +01:00
4drian3dandGitHub e45ca5f357 Improved Scheduler API (#696)
* Improved Scheduler API

- Added `Scheduler#builder(plugin)`
This method allows a more simplified builder while maintaining the main requirement of the executor plugin
- Added `Scheduler#taskByPlugin(plugin)`
Allows to obtain the tasks that a plugin has sent to execute and that are currently active
- Added `TaskBuilder#task(Consumer<SchuledTask>)`
Allows to specify a task with access to the task itself with the ability to cancel itself

* Applied requested changes

- Removed tasks builder method
- Added `Scheduler#buildTask(plugin, Consumer<ScheduledTask>)`

* Removed some unused imports

* Applied suggested change

* Fix possible test bug

* Applied more suggested changes

* Fixed tests inside tasks
2022-06-09 03:27:06 -04:00
4drian3dandGitHub acc407a6d5 Added ability to customize translations (#692)
* Added ability to customize translations

* Removed remaining usage of `Paths#get`

As of java 11 its replacement `Path#of` was created, which is called when using `Paths#get`, besides, according to documentation, it mentions that it can be deprecated at any time

And fix a minor typo in LegacyChannelIdentifier
2022-04-16 00:38:44 -04:00
4drian3dandGitHub 3cb10f6ad4 Implement missing Pointers (#694)
- Implement Player's LOCALE and DISPLAY_NAME pointers
- Implement VelocityConsole's LOCALE pointer
2022-04-16 00:37:35 -04:00
4drian3dandGitHub 2a39b24770 Shutdown command improvements (#680)
- Migrate to Brigadier usage
- Added MiniMessage support for custom shutdown reason
2022-04-08 22:56:41 -04:00
4drian3dandGitHub b8223686ea Added logPlayerConnections configuration option (#673) 2022-04-03 15:30:47 -04:00
4drian3dandGitHub 9fc4341f40 Replacement of some deprecated method (#672)
- PlainComponentSerializer -> PlainTextComponentSerializer
- BinaryTagHolder#of -> BinaryTagHolder#binaryTagHolder
2022-03-31 22:09:44 -04:00