1
0
mirror of https://github.com/GeyserMC/Floodgate.git synced 2025-12-19 14:59:20 +00:00

99 Commits

Author SHA1 Message Date
Tim203
f1c52b48fc Fixed recession in latest commit 2024-05-18 17:43:33 +02:00
Bridge
00b8b1b636 Reduce session server lookups (#509)
* fix: add default skin to gameprofiles

* fix: add signatures by default to prevent issues

* cleanup

* no longer apply empty textures

* revert formatting change

* fix(spigot): linked player textures

* fix(velocity): linked player textures

* fix(bungeecord): apply linked textures

* Made the MojangUtils class instance based, removed some unneeded code

* Don't block Velocity event threads, made the Bungee variant work

* Add some comments

---------

Co-authored-by: bridge <haha@haha.com>
Co-authored-by: Tim203 <mctim203@gmail.com>
2024-05-18 15:01:55 +02:00
chris
7a5530596d Feature: Cloud 2.0, publishing setup fixes (#496)
* - Update to cloud 2.0
- bump floodgate version to 2.2.3
- fix publishing setup - don't publish shadow jars, ensure api/core artifacts aren't shaded jars

* - update bstats
- fix alias -> description

* tiny cleanup, fix whitelisting bedrock players when the linked java account is online (and shares the same name)

* Update build process

* Ensure BUILD_JSON env is init

* Fallback to GH run number

* update guice to 6.0.0 to be compatible with java 21

* update languages module

* Support 1.20.5 spigot, update languages module, update Bungee dependency so the project builds

* remove codemc repo, update cloud-paper to snapshot build for 1.20.5 support

---------

Co-authored-by: Kas-tle <26531652+Kas-tle@users.noreply.github.com>
2024-04-28 22:36:17 +02:00
Tim203
94eabd7015 Add support for latest Velocity changes 2024-01-18 22:40:56 +01:00
Kas-tle
26c11bdede 1.20.2 Support (#449)
* Spigot 1.20.2

Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com>

* Oops

Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com>

* 1.20.2 velocity (#1)

* 1.20.2 Velocity

Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com>

* Archive build artifacts

Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com>

* Fix typo in velocity-plugin.json

Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com>

---------

Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com>

* Fix formatting and apply codestyle to eclipse

Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com>

* Ignore changes to core base prefs

Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com>

* Proper ignore

Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com>

* Remove buildship prefs

Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com>

* Formatting

Signed-off-by: GitHub <noreply@github.com>

* Formatting

Signed-off-by: GitHub <noreply@github.com>

* Properly build PRs

* Formatting + remove artifacts

Signed-off-by: GitHub <noreply@github.com>

* Throw IllegalStateException

Signed-off-by: GitHub <noreply@github.com>

---------

Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com>
Signed-off-by: GitHub <noreply@github.com>
2023-09-26 19:36:02 +02:00
Konicai
dd37174ad3 Fix injection of LanguageManager/Slf4jFloodgate on Velocity (circular proxy) (#388) 2023-02-18 10:57:21 +01:00
Tim203
913c85c154 Added a SkinApplyEvent that can cancel/edit the to be applied skin 2022-12-28 02:11:26 +01:00
Alex
359484b3be SkinApplier now only applies a skin if a player doesn't already have one (#330)
* SkinApplier now only applies a skin if a player doesn't already have one

* add `hasSkin` method to SkinApplier and check for exising skins before overwriting

* remove the use of Streams and Optionals

* correct delay in SpigotSkinApplier to use ticks instead of milliseconds

* Minor changes

Co-authored-by: Tim203 <mctim203@gmail.com>
2022-08-31 19:32:20 +02:00
Tim203
0f152141a2 Switched to Hikari for MySQL 2022-08-31 03:03:42 +02:00
Tim203
eca042dc82 Simplified plugin message channel logic 2022-08-30 13:25:09 +02:00
Tim203
904c584a2a Small changes to platforms and injectors 2022-07-09 19:23:02 +02:00
Tim203
1815613be6 Removed config holder and changed a few things 2022-07-03 22:03:52 +02:00
Tim203
69aacfa91b Started using plugin messages internally. Started subcommand refactor 2022-06-19 23:00:18 +02:00
Tim203
59b37f20e4 Disable key encryption requirement for Floodgate Velocity players 2022-06-11 14:58:15 +02:00
Robin Brämer
523f28d29a Fix typos (#273)
* Fix typos

* Fix another typo

* Fix error log message (GeyserMC/Floodgate#275)

Co-authored-by: Tim203 <mctim203@gmail.com>
2022-05-15 23:49:03 +02:00
Hugo Planque
b2d2efcedd Return the value of optional and not the optional itself (#301) 2022-05-15 23:18:49 +02:00
Tim203
c10561d010 Added platform fork to metrics. Improved MC version detector in Bungee 2022-04-02 16:27:04 +02:00
Tim203
465e66df72 Added metrics and fixed relocations not applying for child projects 2022-03-21 14:41:53 +01:00
Tim203
7a9642ef6a Always change the GameProfile for Floodgate players in Velocity 2022-03-09 13:35:56 +01:00
Tim203
0e1e1b823c No longer use Adventure internally. Started working on adding Checkstyle 2022-03-05 20:02:06 +01:00
Tim203
0e055d106d Bumped Adventure. Only set empty texture when needed 2022-03-03 00:31:44 +01:00
Tim203
cb1db859ce Merge remote-tracking branch 'origin/master' into dev/2.1.1
# Conflicts:
#	spigot/pom.xml
2022-02-04 15:58:52 +01:00
Camotoy
38332db268 PMD no 2022-02-02 16:56:10 -05:00
Camotoy
c3ba9e6f73 GameProfiles are immutable on Velocity 2022-02-02 16:53:12 -05:00
Camotoy
aa0a8405c2 Fix Velocity with Mojang authentication change 2022-02-02 13:10:47 -05:00
Tim203
8f2c6d0397 Support API usage in disconnect events. Removed the login field 2022-01-25 22:14:46 +01:00
Tim203
9509d153c7 We're in 2022 now 2022-01-02 00:08:15 +01:00
Tim203
3be603a837 Re-added relocations and excluded provided dependencies 2021-12-12 22:00:58 +01:00
Tim203
919332f3af Another attempt to make publishing work 2021-12-10 23:32:49 +01:00
Tim203
11f811b656 First version of moving to gradle. No relocations etc. yet 2021-12-08 00:59:25 +01:00
Tim203
476ad4eb0f Renamed common to core 2021-12-05 22:16:32 +01:00
Tim203
6e41471790 Bump version to 2.1.0 2021-11-30 16:35:59 +01:00
Tim203
f20a13bba4 Fixed compatibility with the latest Velocity dev builds
Co-authored-by: Camotoy <20743703+camotoy@users.noreply.github.com>
2021-11-10 00:23:58 +01:00
Tim203
5161aa7259 Don't forget to send the handshake packet for Java players 2021-11-07 20:46:55 +01:00
Tim203
2d2c38e120 Moved some common data handling logic to the common module 2021-11-07 14:51:37 +01:00
Camotoy
08178f51b7 Remove time syncer checks
This check has caused more harm than good (with needing to use an external NTP source and some providers not allowing Cloudflare's NTP server), and is also a technical vulnerability in BungeeGuard. In order to exploit this, you would need to capture traffic between the Geyser server and the Floodgate instance.
2021-09-27 14:45:53 -04:00
Tim203
95a51480f0 Remove Geyser -> Bungee Floodgate data after use 2021-09-24 20:26:09 +02:00
Tim203
cc3e5f999f Don't move Bungee and Velocity 2021-09-17 13:53:14 +02:00
Tim203
4fd6f7eda4 Make a difference between a decrypt error and an exception 2021-09-17 12:44:35 +02:00
Tim203
1d7009395d Bumped some dependencies 2021-09-17 12:09:14 +02:00
Tim203
beda917fc9 Don't block Netty event loop threads while handling Floodgate login 2021-08-26 00:46:24 +02:00
Tim203
4f1b450453 Shade a cloud dependency as well 2021-07-24 00:57:21 +02:00
Tim203
b66f10ae6d Shade some dependencies 2021-07-23 17:44:01 +02:00
Tim203
0216b6d798 Fixed a bug where linked accounts would get their Bedrock skin 2021-07-05 15:49:42 +02:00
Tim203
a1f0d2276d Removed some unused addon code 2021-06-23 00:52:21 +02:00
Andrew Steinborn
821be02bdb Fix reference count issues (#165)
* Fix reference count issues

* Only remove the handler after we get the Handshake packet

* Same thing for the ServerDataHandlers. Optimized imports as well

* Further removal optimizations in backend handlers and Spigot

* Removed unused imports

Co-authored-by: Tim203 <mctim203@gmail.com>
Co-authored-by: Camotoy <20743703+Camotoy@users.noreply.github.com>
2021-06-22 22:33:48 +02:00
Tim203
a65d4e821d First part of news 2021-06-08 14:48:30 +02:00
Camotoy
6af0c80162 Don't yell if Floodgate cannot remove the injection 2021-06-06 20:04:35 -04:00
Camotoy
81fc34a11c Literals first? OK. 2021-05-29 11:15:57 -04:00
Camotoy
b20c63fefa Velocity modern forwarding support 2021-05-29 10:59:57 -04:00