3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-17 13:30:17 +01:00
Commit graph

468 Commits

Autor SHA1 Nachricht Datum
Andrew Steinborn
95c9b78ab6 Merge branch 'use/adventure-permission' of https://github.com/RealBauHD/Velocity into RealBauHD-use/adventure-permission 2023-10-27 17:10:31 -04:00
Andrew Steinborn
0c7b8081d5 Clean up after the merge. 2023-10-27 16:51:53 -04:00
Andrew Steinborn
a037ab4956 Merge branch 'dev/3.0.0' into dev/5.0.0
# Conflicts:
#	buildSrc/src/main/kotlin/com/velocitypowered/script/SetManifestImplVersionPlugin.kt
#	proxy/src/main/java/com/velocitypowered/proxy/connection/backend/VelocityServerConnection.java
#	proxy/src/main/java/com/velocitypowered/proxy/event/VelocityEventManager.java
#	proxy/src/main/java/com/velocitypowered/proxy/network/ConnectionManager.java
#	proxy/src/main/java/com/velocitypowered/proxy/server/VelocityRegisteredServer.java
2023-10-27 16:40:54 -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
Gero
1cc3f120ee
Several improvements and fixes for 1.20.2 (#1097)
* Send LoginAcknowledged immediately

* Resend player list header/footer after backend server switched to config state

* Fix clearHeaderAndFooter not clearing fields in ConnectedPlayer

* Clear boss bars, header/footer, tab list when switching client to config state

* Send client settings in config state
2023-10-12 11:11:47 +02:00
Paul
768ecdb0c3
1.20.2 Support (#1088)
Co-authored-by: RednedEpic <redned235@gmail.com>
Co-authored-by: Gero <gecam59@gmail.com>
2023-10-10 12:44:16 +00:00
Groldi
2aaf702a2e
[ci skip] Replaced weired i with i in javadocs (#1057)
In this little patch I replaced an i which caused my build process to crash with an i
2023-08-13 20:36:53 +01:00
powercas_gamer
81b45d710b
feat: add TabList#addEntries (#987) 2023-08-12 10:49:08 -07:00
Aaron
48e4fa637e expose PermissionChecker and use this 2023-06-16 10:25:01 +02:00
Aaron
cc67b99c8b permission Tristate and function exchanged with adventure 2023-06-16 01:27:27 +02:00
Pantera (Mad_Daniel)
bda1430d5c
Add version information for 1.20.1 (#1021) 2023-06-12 16:11:20 +01:00
Gero
5ef90c46e3 1.20 2023-06-06 17:13:48 +02:00
Andrew Steinborn
3852f27eb8 Allow arbitrary post orders 2023-05-14 04:41:10 -04:00
Andrew Steinborn
d1030c3096 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.
2023-05-14 04:32:58 -04:00
Andrew Steinborn
64693cc97d Merge branch 'dev/3.0.0' into dev/5.0.0 2023-05-14 02:53:47 -04:00
Andrew Steinborn
02f0ed7ff0 Merge branch 'dev/3.0.0' into dev/5.0.0
# Conflicts:
#	api/build.gradle.kts
#	gradle.properties
#	proxy/src/main/java/com/velocitypowered/proxy/config/VelocityConfiguration.java
2023-05-14 02:52:09 -04:00
Andrew Steinborn
a29c753e39
Give each plugin its own executor service (#1010)
This is part of preparatory work for Velocity 5.0.0's revamped event system, but this change is safe to bring into the 3.x.x series. This affects the scheduler for now, but command execution will also be moved into the per-plugin thread pool, along with invocations of `EventTask.async()`.
2023-05-14 02:51:25 -04:00
Andrew Steinborn
771dfa8d0e Cherry-pick full Unix domain socket support from b00389029f
Closes #991. We can't properly support this without an API break, so let's just do it in 5.0.0.
2023-04-04 01:44:13 -04:00
Alexander Städing
e9526e0e23
Move dependencies to gradle version catalog and clean up buildscripts 2023-03-26 14:53:11 +02:00
Gero
c7ba5255e3
Add Player#hasSentPlayerSettings (#980) 2023-03-21 09:22:40 +01:00
Andrew Steinborn
8b1eb9b214 A wild Velocity 5.0.0 appears! 2023-03-15 23:00:37 -04:00
Adrian
65a84833d7
Expose Caffeine in the API module 2023-03-11 08:36:38 -05:00
Nassim Jahnke
31e557c80b
Start working on 1.19.4 2023-03-09 19:25:51 +01:00
Adrian
9149ed3384
Update adventure javadoc link (#956) 2023-02-25 15:20:41 +00:00
Corey Shupe
d733e88677 Add getEntry to TabList.java 2023-02-20 10:11:33 -05:00
Adrian
8761d02def
feat: Implement RegisteredServer#ping(PingOptions) (#938) 2023-01-26 00:33:07 -05:00
JNNGL
697d08baa4
Fix annotation processor (#919) 2023-01-02 08:23:56 -05:00
Andrew Steinborn
3768e66e86 Also use Spotless to remove unused imports 2023-01-01 18:52:11 -05:00
Andrew Steinborn
b0862d2d16 Use Spotless for license formatting 2023-01-01 18:46:33 -05:00
Andrew Steinborn
d72d707b1c
Convert Velocity buildscripts to Kotlin DSL (#918)
Spiritually indebted to #518 and @alexstaeding.

There's a minor break - we're going up to 3.2.0-SNAPSHOT as the API now compiles against Java 11. But this is more academic in practice.
2023-01-01 17:53:37 -05:00
Shane Freeder
8deb0ff70d
[ci skip] fix URL derp 2022-12-10 00:45:04 +00:00
Shane Freeder
c932ee5e25
[ci skip] Update guava javadoc link 2022-12-10 00:43:32 +00:00
JOO200
97770cd1a6
Reduce Spam from the TabList by not sending every package multiple times (#902)
* Reduce Spam from the TabList by not sending every package multiple times

VelocityTabList#processUpsert called entry.setX which will create a package and send it to the client.
BackendPlaySessionHandler doesn't return true for those packages, therefore the package for tab list updates will be send two times.

* Cleanup TabList#buildEntry, added listed status to Entry builder
2022-12-09 13:40:30 -05:00
Nassim Jahnke
b1fa9dc953
Remove snapshot version 2022-12-07 14:18:29 +01:00
Corey Shupe
b504e0857c
Update to 1.19.3-rc3 (#893) 2022-12-07 14:12:48 +01:00
Andrew Steinborn
7d77bfb53c Update select dependencies 2022-09-21 00:48:21 -04:00
IkeVoodoo
048fd90359
Improving incorrect namespace/name error (#839)
* Improving incorrect namespace/name error

* Update MinecraftChannelIdentifier.java
2022-08-17 00:54:16 -04:00
Adrian
fbde1ff82a
Implement Documented javadoc annotation on AwaitingEvent (#837) 2022-08-14 17:16:42 -04:00
A248
fee292bcc9
Clarify that plugin IDs must be lowercase (#820) 2022-08-06 11:34:39 -04:00
Pantera (Mad_Daniel)
8a63df2ace
Add version information for 1.19.2 (#823)
https://minecraft.fandom.com/wiki/Protocol_version#Java_Edition_2
2022-08-05 12:01:50 -04:00
FivePB (Xer)
1a3fba4250
Update to 1.19.1 (#772)
* 1.19.1-rc1

* More signature changes

* Further 1.19.1 changes

I also started on the checkstyle update, see the developers notes
for the rest I haven't gotten around to fixing yet.

* Fix checkstyle

* Checkstyle imports

* Fix logic error

* Changes 1.19.1-pre2

* 1.19-pre3

* Progress, some parts still WIP

* Overlooked changes

* Fix ServerData

* Fix ServerLogin send check

* Workaround the broken behavior of "No Chat Reports"

Note that if we ever choose to enforce chat signatures, then the mod will just break again... not our fault if we do that, you get what you pay for.

* more

Co-authored-by: Shane Freeder <theboyetronic@gmail.com>
Co-authored-by: Andrew Steinborn <git@steinborn.me>
2022-07-30 19:30:03 -04:00
Andrew Steinborn
662fbc4e3c
Implement the ServerData packet by firing ProxyPingEvent (#771)
* Implement the ServerData packet by firing ProxyPingEvent

Mojang introduced the enable-status server property with Minecraft 1.19, which if enabled causes servers to close the connection when a client tries to ping them. Mojang wants to show the MOTD and favicon on the server select screen for those who manage to log in, so we need to implement this packet as well.

The good news is that we can send this packet as many times as needed on the same connection

This matches the behavior of pinging the server. This is a minor, but completely backwards-compatible, API breakage: Player inherits from InboundConnection so we do not have to change ProxyPingEvent, however plugins not expecting a Player might get confused.

* typo
2022-06-23 23:59:13 -04:00
foxley
86c65f3910
adding equals and hashcode in ClientSettings, ClientSettingsWrapper and SkinParts (#765)
* adding equals and hashcode in ClientSettings, ClientSettingsWrapper and SkinParts

* fixing format
2022-06-22 23:37:38 -04:00
Andrew Steinborn
93df65fdfb Update Gson
Resolves #763
2022-06-22 22:25:30 -04:00
FivePB (Xer)
1a1391a519
Tablist-changes for 1.19 (#761)
This change helps ensure player signatures are propagated correctly.
Signatures should never be removed, so to compensate for legacy plugins and for the
proxy api function we have to enforce this.
2022-06-19 18:19:32 +02:00
4drian3d
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
Corey Shupe
d97ed956a7
Update/1.19 (#726)
Co-authored-by: FivePB <admin@fivepb.me>
2022-06-07 21:00:24 -04:00