1
0
mirror of https://github.com/GeyserMC/Floodgate.git synced 2026-01-04 15:31:48 +00:00
Commit Graph

88 Commits

Author SHA1 Message Date
Tim203
07ab7ffbfa Started working on moving from Guice to Avaje Inject 2023-02-25 23:42:18 +01:00
Tim203
f2973f0fc8 Merge remote-tracking branch 'origin/development' into feature/universal-platform
# Conflicts:
#	core/src/main/java/org/geysermc/floodgate/FloodgatePlatform.java
#	spigot/src/main/java/org/geysermc/floodgate/pluginmessage/SpigotSkinApplier.java
2023-02-22 21:54:51 +01: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
Tim203
1a9d07c5c9 Initial version of a universal platform 2022-09-02 11:39:44 +02: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
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
919332f3af Another attempt to make publishing work 2021-12-10 23:32:49 +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
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
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
Tim203
c722c8e8c8 Added a way to handle packets easily. ProtocolSupport support fixed 2021-04-23 00:53:18 +02:00
Tim203
b5e7d05315 Fixed #124 and whitelist command only works on non-proxies. 2021-03-29 20:06:26 +02:00
Tim203
f53032e9ea Added whitelist command, allow handler to set IP of non-Java players 2021-02-27 12:01:46 +01:00
Tim203
3a66d524a1 Added initial version of whitelist command and fixed a Java 16 issue 2021-02-25 02:17:19 +01:00
Tim203
f149e94964 Added a timestamp to prevent reusing the encrypted Floodgate data 2021-02-16 17:52:11 +01:00
Tim203
fff10e7084 Moved skin uploading to the global api 2021-02-12 22:26:42 +01:00
Tim203
ab4696a360 Revisited the plugin messaging system 2021-01-24 01:34:29 +01:00
Tim203
3eb607772d Stopped using disconnect and (Bungee's) handshake event
Instead we're listening for the actual channel to close.
2021-01-18 01:34:19 +01:00
Tim203
6b47ef1a7a Renamed original HandshakeHandler to prevent confusion 2021-01-16 17:48:30 +01:00
Tim203
b737184fb0 Added PMD Plugin and changed isBedrockPlayer to isFloodgatePlayer 2021-01-16 16:52:04 +01:00