13
0
geforkt von Mirrors/Velocity
Commit graph

491 Commits

Autor SHA1 Nachricht Datum
Andrew Steinborn
20914ca134 Bump Adventure 2021-10-15 08:18:11 -04:00
Five (Xer)
311133a4d3
Snapshot 21w41a 2021-10-13 20:50:34 +02:00
Andrew Steinborn
1aaecfff08 Add tests for EventTask#resumeWhenComplete and clarify Javadoc. 2021-10-10 16:37:22 -04:00
Foorcee
08f1b87267
Redirect player without message (#581) 2021-10-09 20:32:04 -04:00
Five (Xer)
4ba4054f23
Snapshot 21w40a 2021-10-09 00:08:51 +02:00
Five (Xer)
922a13d9ed
Snapshot 21w39a 2021-10-08 15:25:48 +02:00
Five (Xer)
0896d66ac2
Snapshot 21w38a 2021-09-25 13:45:46 +02:00
Five (Xer)
ac92de8a0e
Snapshot 21w37a 2021-09-25 13:43:47 +02:00
Andrew Steinborn
955f6b87e2 Assorted dependency updates 2021-09-01 06:36:00 -04:00
David Mayr
3d8e9091c0
Custom localization for each player (#537) 2021-07-25 21:50:44 -04:00
Hugo Manrique
76c6827926
Expose registered aliases in API (#549) 2021-07-24 14:34:50 -04:00
A248
0bad9199dc
Add Automatic-Module-Name to published api jar (#551) 2021-07-24 14:34:23 -04:00
Andrew Steinborn
540d970a4d
Minecraft 1.17.1 support (#530) 2021-07-06 03:32:13 -04:00
Andrew Steinborn
d7abf4457c Readd FastUUID license 2021-06-18 07:05:38 -04:00
Andrew Steinborn
c33f9e0466 Merge remote-tracking branch 'origin/dev/3.0.0' into dev/3.0.0
# Conflicts:
#	api/src/main/java/com/velocitypowered/api/proxy/Player.java
#	proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java
2021-06-12 20:13:52 -04:00
Andrew Steinborn
c2b82f878b Merge branch 'dev/1.1.0' into dev/3.0.0
# Conflicts:
#	api/src/main/java/com/velocitypowered/api/proxy/Player.java
#	proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java
2021-06-12 20:12:31 -04:00
lexikiq
fe5809fdc1
Javadocs 2021-06-12 20:04:20 -04:00
lexikiq
5c424c1da7
Move TriState converter 2021-06-12 20:01:42 -04:00
Andrew Steinborn
1b32f56168
Merge pull request #523 from Artuto/dev/1.1.0
Add support for retrieving the Player's client brand
2021-06-12 23:11:41 +00:00
Artuto
f2b20e6398
Remove usage of Optional 2021-06-12 13:48:42 -05:00
lexikiq
e798f0d906
Move #getPermissionChecker 2021-06-12 12:52:35 -04:00
lexikiq
72408d5bd8
Remove display name 2021-06-12 12:12:04 -04:00
Artuto
c8d50f3fdd
Add support for retrieving the Player's client brand 2021-06-11 23:44:51 -05:00
lexikiq
8356b812c3
Cache permission pointers 2021-06-11 23:44:59 -04:00
lexikiq
4003666c27
Cache pointers 2021-06-11 23:32:49 -04:00
lexikiq
56a46d051b
Rename method + add JD 2021-06-11 22:15:12 -04:00
lexikiq
39d39e58bd
Remove ComponentLike interface from Player 2021-06-11 22:06:37 -04:00
lexikiq
19f80bd618
Don't directly implement PermissionChecker 2021-06-11 21:49:40 -04:00
lexikiq
29b409b9f1
Move #pointers to Player
It uses fully API methods so it makes sense to me to use it in Player, open to criticism though
2021-06-11 21:33:15 -04:00
lexikiq
db7e3262a6
Optimize imports 2021-06-11 21:25:51 -04:00
lexikiq
3c4312056b
Switch to #pointers
Ensures that Pointered#getOrDefault[From] works
2021-06-11 21:12:44 -04:00
lexikiq
069796a2f2
Fix import order 2021-06-11 21:09:41 -04:00
lexikiq
f59516165f
Rebase onto feature/adventure-pointers 2021-06-11 21:06:59 -04:00
lexikiq
9491046935
Improve Player#asComponent 2021-06-11 21:01:53 -04:00
lexikiq
ba4ba2022e
Obey Checkstyle rules 2021-06-11 21:01:53 -04:00
lexikiq
3a1517f3a4
Expand Adventure Support
Adds support for assorted Adventure interfaces
2021-06-11 21:01:53 -04:00
Andrew Steinborn
d7bf03b956 Minecraft 1.17 2021-06-07 14:16:16 -04:00
Andrew Steinborn
c2c119140f Anticipatory bump to Minecraft 1.17 2021-06-07 12:46:21 -04:00
Andrew Steinborn
65608bb360 Bump Gson version 2021-06-06 04:22:08 -04:00
Andrew Steinborn
ef7aeae4ed Merge remote-tracking branch 'origin/dev/3.0.0' into dev/3.0.0 2021-06-06 03:52:03 -04:00
Andrew Steinborn
b1b3882fab Merge branch 'Xernium-future/1.17' into dev/3.0.0
# Conflicts:
#	api/src/main/java/com/velocitypowered/api/proxy/ProxyServer.java
#	proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java
2021-06-06 03:48:49 -04:00
Andrew Steinborn
43b72ff826
Apply some spelling fixes from code review
Co-authored-by: Hugo Manrique <hugmanrique@users.noreply.github.com>
2021-06-06 00:20:47 +00:00
Hugo Manrique
f103662dc4
Fix incorrect import removal 2021-06-05 18:33:22 +02:00
Hugo Manrique
e6eecd806a
Document some restrictions in the command API 2021-06-05 18:02:26 +02:00
FivePB
59b29a075e
Improve new Resource-pack API 2021-06-05 16:07:24 +02:00
Andrew Steinborn
df21105701
Minecraft 1.17-rc1 2021-06-04 17:48:45 -04:00
Andrew Steinborn
100eedf102
Minecraft 1.17-pre5 2021-06-03 14:40:06 -04:00
Andrew Steinborn
3eb64855d3
Minecraft 1.17-pre4 2021-06-03 02:50:16 -04:00
Andrew Steinborn
f67dc3ffc8
Minecraft 1.17-pre3 2021-06-01 13:36:28 -04:00
CoreyShupe
150808b4b0 Initial implementation of raw registered server creation. 2021-06-01 02:07:06 -04:00
Andrew Steinborn
c161a3859c
1.17-pre2 2021-05-31 12:47:13 -04:00
Andrew Steinborn
10bfd8685e
Minecraft 1.17-pre1 2021-05-27 11:02:07 -04:00
Andrew Steinborn
64d30fba81 AsyncEventExecutor -> AwaitingEventExecutor 2021-05-23 17:51:07 -04:00
Andrew Steinborn
51f923bf2d Fix Java 11 Javadoc URL 2021-05-23 17:21:44 -04:00
Andrew Steinborn
b9823085af Update Guice to 5.0.1
This (aside from removal of deprecated methods) is the only notable API break in Velocity 3.0.0.
2021-05-23 17:20:52 -04:00
Andrew Steinborn
3944eec491 Add async parameter to @Subscribe, also as a migration aid. 2021-05-23 15:42:17 -04:00
Seppe Volkaerts
821ca02ee7 Backport Velocity Polymer's async event API, with changes.
This commit backports the event manager from Velocity Polymer, with some changes for Velocity 1.1.x API compatibility:

- All event handlers run asynchronously. (While EventTask.async() exists, it is not useful in 3.0.0, but is provided as a migration aid for Polymer.)
- Event ordering is currently limited to the 5 levels available in Velocity 1.x.x.
2021-05-23 15:39:06 -04:00
Andrew Steinborn
3f50964f36 Fix CommandManager method naming so that it is in sync with the 1.1.0 API 2021-05-23 14:20:59 -04:00
Andrew Steinborn
977300cc66 Remove text 3.x API and associated deprecated APIs 2021-05-23 14:13:51 -04:00
Andrew Steinborn
d6dcb115f1 Remove remaining deprecated APIs 2021-05-23 13:49:06 -04:00
Andrew Steinborn
2f0ee15051 Remove deprecated Velocity 1.0.0 Command API. 2021-05-23 13:46:47 -04:00
FivePB
18466bb595
Snapshot 21w19a 2021-05-13 23:50:00 +02:00
FivePB
6eb2432e88
Snapshot 21w18a 2021-05-13 23:50:00 +02:00
FivePB
00f81a3fd7
Snapshot 21w17a 2021-05-13 23:50:00 +02:00
FivePB
be1848f8e7
Snapshot 21w16a 2021-05-13 23:50:00 +02:00
FivePB
8def411b2b
Snapshot 21w15a 2021-05-13 23:49:55 +02:00
Five (Xer)
2220209495
Snapshot 21w14a 2021-05-12 21:42:28 +02:00
Five (Xer)
625fa9b0ad
Snapshot 21w13a 2021-05-12 21:42:28 +02:00
Five (Xer)
f6e023bf60
Snapshot 21w11a 2021-05-12 21:42:27 +02:00
Five (Xer)
581303a54c
Snaphot 21w10a 2021-05-12 21:42:27 +02:00
Five (Xer)
22bc759044
Snapshot 21w08a 2021-05-12 21:42:27 +02:00
Five (Xer)
b19cf16345
Snapshot 21w07a 2021-05-12 21:42:27 +02:00
Five (Xer)
c9e92bcc53
Snapshot 21w06a 2021-05-12 21:42:27 +02:00
Five (Xer)
03327c2677
Snapshot 21w05b 2021-05-12 21:42:27 +02:00
FivePB (Xer)
7ea7e77564
Snapshot 21w05a 2021-05-12 21:42:27 +02:00
FivePB
f0d9a445ed
Snapshot 21w03a 2021-05-12 21:42:27 +02:00
FivePB (Xer)
76493549bf
Snapshot 20w51a 2021-05-12 21:42:27 +02:00
Five (Xer)
040cc29c34
Snapshot 20w49a 2021-05-12 21:42:27 +02:00
Five (Xer)
b588bfe448
Snapshot 20w48a 2021-05-12 21:42:27 +02:00
Five (Xer)
d8a39fc438
Snapshot 20w46a 2021-05-12 21:42:27 +02:00
Five (Xer)
d444bed96b
Adjust snapshot -> final version 2021-05-12 21:42:27 +02:00
Five (Xer)
7f0964155c
Snapshot 20w45a 2021-05-12 21:42:27 +02:00
Andrew Steinborn
9318fe3dca Update link to Adventure documentation 2021-05-06 21:08:57 -04:00
Andrew Steinborn
3d9a166892 Fix Checkstyle 2021-05-06 16:46:43 -04:00
Andrew Steinborn
3fdacd30d1 Explain why Player#sendPluginMessage may not do what some people think it ought to do 2021-05-06 16:43:45 -04:00
Cubxity
5ea6728d1a
Added ListenerBoundEvent and ListenerCloseEvent. (#454) 2021-04-02 13:24:45 -04:00
A248
54474d7100
Add Duration methods to TaskBuilder (#445) 2021-04-02 01:51:54 -04:00
Andrew Steinborn
c747120b20
Relicense the Velocity proxy under the terms of GPLv3 (#448) 2021-03-31 16:04:06 -04:00
FivePB (Xer)
690bcfcaa5
Change version-name logic (#441) 2021-03-11 04:24:04 -05:00
Andrew Steinborn
3aee47166f Allow clearing favicon in ServerPing builder. 2021-02-09 14:36:16 -05:00
Andrew Steinborn
55cc416b52
Merge pull request #428 from Camotoy/registerevent
Add PlayerRegisterChannelEvent
2021-02-09 14:26:34 -05:00
Andrew Steinborn
a6a9d1e0fb Forward slashes are allowed in channel IDs
Fixes an issue where the Fabric registry sync packet would not be allowed by Velocity.
2021-02-09 14:25:12 -05:00
Camotoy
fb879cb498
Apply initial requested changes 2021-02-09 14:13:33 -05:00
Camotoy
d47b339908
Add PlayerPluginMessageRegisterEvent 2021-02-09 13:51:43 -05:00
Zach Levis
bac64ac958 build: Fix search when generating Javadoc with broken java versions 2020-12-19 14:49:53 -08:00
Andrew Steinborn
523b61e0c7 Make sure unit tests actually run(!) and fix command hints 2020-12-14 14:39:39 -05:00
Andrew Steinborn
8c52341ff6 Do not pull in transitive dependencies of adventure-text-serializer-legacy-text3
Fixes #401
2020-12-13 15:33:19 -05:00
Riley Park
5da085d82f
Adventure 4.3.0: Player list header/footer 2020-12-06 17:50:57 -08:00
Andrew Steinborn
511165415d Switch to our internal Brigadier fork 2020-11-15 23:33:16 -05:00
Andrew Steinborn
89e1a07448 Try and explicitly specify Java 8 in the modules. 2020-11-06 18:52:00 -05:00
Andrew Steinborn
642573e9e0 Fix logic for telling the server snapshot versions. 2020-11-04 18:58:48 -05:00
Andrew Steinborn
dd23203139 Add some missing convenience APIs to MinecraftChannelIdentifier 2020-10-28 19:02:37 -04:00
Andrew Steinborn
9360fab6a5 Forgot about this. Can we just publish this already? 2020-10-28 11:00:09 -04:00
Andrew Steinborn
188758cf0e Drop 1.16.4 snapshot support in anticipation for full 1.16.4 release 2020-10-26 21:05:09 -04:00
Andrew Steinborn
8fbce8423f Fix typo in ServerPing#asBuilder() Javadoc
Fixes #375
2020-10-26 17:20:52 -04:00
Andrew Steinborn
cfb9104696 1.16.4-pre2 support 2020-10-22 12:42:35 -04:00
Andrew Steinborn
e3eace6a56 Undeprecate CommandManager#register(String, Command, String...)
This is a very convenient shorthand so let's save it from being axed. This is a change I made for an eventual Velocity 2.0.0 but it is backwards compatible for 1.1.0.
2020-10-22 00:14:41 -04:00
Andrew Steinborn
fd63945175 Follow historical precedent with the new snapshot protocol release policy. 2020-10-15 15:57:27 -04:00
Andrew Steinborn
53b2400682 Remove bad snapshot flag. 2020-10-15 11:47:34 -04:00
Andrew Steinborn
b75086aacb Proper Minecraft 1.16.4-pre1 support. 2020-10-15 11:46:44 -04:00
Riley Park
a76c01df4b
Fix a few javadoc-related problems 2020-10-15 08:24:41 -07:00
Andrew Steinborn
6e00dbe2b7 Fix compile errors 2020-10-14 16:08:20 -04:00
Andrew Steinborn
cffc6d0a81 Fix Checkstyle error 2020-10-14 13:58:28 -04:00
Riley Park
60e917b4a1
Player has an identity 2020-10-13 22:36:51 -07:00
Andrew Steinborn
3b1009caba Prepare for 1.16.4 2020-10-11 20:15:29 -04:00
Andrew Steinborn
dc48eb97f9 Start publishing velocity-natives module
Note that this will remain internal API for Velocity and the publication of the module does not necessarily indicate that they will be stable.
2020-09-23 01:03:18 -04:00
Frank van der Heijden
2b6c271cc7
Add ability to check for command alias existence in api module 2020-09-13 19:11:40 +02:00
Andrew Steinborn
3a4aa4a25c Minecraft 1.16.3 2020-09-10 10:47:25 -04:00
Andrew Steinborn
540541842a Minecraft 1.16.3-rc1 2020-09-07 10:06:49 -04:00
Andrew Steinborn
5d287306c2 Small code cleanups 2020-09-01 03:25:15 -04:00
Andrew Steinborn
764c8ed3e5 Fix compile error
While we're at it, change the newly-introduced shutdown API to use a generic Adventure component instead.
2020-08-30 07:09:52 -04:00
Andrew Steinborn
1f621300f6 Revert #338
This is creating more problems than it actually solves
2020-08-22 02:40:35 -04:00
Andrew Steinborn
c47d25c88a Upgrade to Gradle 6.6 and use SpotBugs.
As a result, at least one real bug was fixed! Nice.
2020-08-21 19:09:04 -04:00
Andrew Steinborn
26f3cb43c7 Clean up some Adventure support code, implement another sendMessage overload 2020-08-16 14:02:04 -04:00
Andrew Steinborn
1717d7f9b4 Add SimpleCommand.Invocation#alias function.
It seems like this ability is generally useful outside RawCommand, so let's add this to SimpleCommand too.
2020-08-15 16:41:35 -04:00
Andrew Steinborn
c0af5668b9
Merge pull request #338 from xxDark/read-timeout
Make initial read timeout configurable
2020-08-10 23:05:52 -04:00
Andrew Steinborn
ab10b6de1e Cross our fingers and hope this is 1.16.2 2020-08-10 21:46:13 -04:00
Andrew Steinborn
1a31b99701 1.16.2-rc2 2020-08-10 12:53:23 -04:00
Andrew Steinborn
ba66d15b1d 1.16.2-rc1 2020-08-07 13:35:31 -04:00
Andrew Steinborn
b34b198064 1.16.2-pre3 2020-08-06 15:08:50 -04:00
Andrew Steinborn
d79c1d0407 Port of #325 for Velocity 1.1.0
Co-authored-by: Five (Xer) <admin@xernium.com>
2020-08-05 18:13:16 -04:00
xxDark
e94778c149
Resolve code style issue 2020-08-05 21:31:51 +03:00
Andrew Steinborn
3beaeb2df7
Merge pull request #341 from alexstaeding/feature/shutdown-api
Add shutdown methods to ProxyServer
2020-08-05 11:35:38 -04:00
Jacob Allen
76173e4145
Add PRE_SERVER_JOIN to DisconnectEvent#LoginStatus (#346) 2020-08-04 16:30:17 -04:00
Alexander Staeding
c963343e27
Add dataAsInputStream() to PluginMessageEvent 2020-08-03 00:52:54 +02:00
Alexander Staeding
190bef375a
Add shutdown methods to ProxyServer 2020-07-30 21:48:58 +02:00
xDark
b79f6ad827 Make initial read timeout configurable 2020-07-29 16:59:39 +03:00
Hugo Manrique
6cc6e0f641
New command API (#330) 2020-07-29 03:43:16 -04:00
Andrew Steinborn
3ac403539d Bump dependencies:
Gson 2.8.5 -> 2.8.6
text 3.0.3 -> 3.0.4
log4j 2.11.2 -> 2.13.3
Netty 4.1.50.Final -> 4.1.51.Final
Configurate 3.6 -> 3.7
2020-07-21 21:00:38 -04:00
Andrew Steinborn
cb261c6513 Better handle not failing over on a read timeout
The existing Velocity logic was pretty optimistic, hoping the player connection would stay alive long enough to accept a connection to another server. Now, if we notice a read timeout on the server end, we'll treat the disconnect as "unsafe" and disconnect the player immediately.

I've added a configuration option to solve the issue in the way BungeeCord does it. This could cause issues with servers that extensively modify the server pipeline and could degrade the user experience, though. Let's try this more conservative and see if it helps,
2020-07-20 21:55:33 -04:00
Andrew Steinborn
2296a9d8dd Fix compile error caused by adventure changes 2020-07-16 11:50:48 -04:00
Andrew Steinborn
bcab3be2e2 Fix Checkstyle error 2020-07-14 21:31:16 -04:00
Mariell Hoversholm
9c8c851d12
Add async command suggestions 2020-07-15 00:28:22 +02:00
Andrew Steinborn
4c3d9de5fe Add ServerPostConnectEvent as a less confusing (and non-blocking) alternative to ServerConnectedEvent 2020-07-12 16:13:04 -04:00
Andrew Steinborn
d47462c606 Fix accidential deprecation 2020-07-12 11:42:44 -04:00
Andrew Steinborn
6e84261166 Merge branch 'dev/1.1.0' into adventure-api 2020-07-12 01:49:08 -04:00
Andrew Steinborn
86259f788f Adjust for recent adventure API changes. 2020-07-11 12:00:54 -04:00
Andrew Steinborn
81aed2cd1d Get the Nexus credentials from the environment 2020-07-04 03:36:39 -04:00
Andrew Steinborn
4469a89aaa Point all new Maven artifact deploys to Nexus 2020-07-04 03:19:57 -04:00
Andrew Steinborn
079b352c97 Add a new loginstatus for CANCELLED_BY_USER_BEFORE_COMPLETE 2020-07-03 17:48:20 -04:00