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

129 Commits

Author SHA1 Message Date
Aurorawr
d5be877ed9 Fix fwhitelist command + Bungee build fix (#613) 2025-09-30 20:14:35 +02:00
Outfluencer
0e3163c942 Use newly added BungeeCord ChannelInitializer API (#575)
* Update BungeeInjector.java

* Update bungee version

* Add a message when running an outdated Bungee version
2025-02-16 15:36:11 +01:00
LittleShyStar02
06f2ed966e Actually check if the channel is open, fixes #547 (#557)
* Moved check of channel open of #547. In previous point was always true and it did not solve problem.

* Moved check of channel open of #547. In previous point was always true and it did not solve problem.

* Make the comment more compact

---------

Co-authored-by: Tim203 <mctim203@gmail.com>
2024-10-31 16:44:27 +01:00
LinsaFTW
0360721d9c Check if channel is open before injecting (#547)
* Check if channel is open before injecting

Some forks like FlameCord have integrated anti-bot features to block connections early. 

By default, Floodgate runs anyways, which not only makes bot attacks affect the server when Floodgate is instaled, but also generate an exception. 

This fixes the issue.

* Add note about why it's added

---------

Co-authored-by: Tim203 <mctim203@gmail.com>
2024-09-29 12:32:56 +02:00
Outfluencer
3db8e5931f Support latest BungeeCord changes (#546)
* update bungee injector

* add backwards compatibility
2024-09-14 22:05:04 +02:00
Tim203
792af7b0dd Fixed bug in Bungee platform 2024-05-19 00:10:17 +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
f8c84182d6 Deal with getLocale being nullable during login on BungeeCord (#511)
* Temporary fix for https://github.com/GeyserMC/Floodgate/issues/510, bump cloud to rc candidate

* apparently it is supposed to be nullable. okay then.
2024-05-14 17:41:00 +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
chris
851ed5adc0 Support 1.20.5 spigot, update languages module, update Bungee dependency so the project builds (#498) 2024-04-28 01:01:30 +02:00
Tim203
227858930d Relocate SnakeYAML 2023-06-09 18:32:31 +02:00
Tim203
e23f1b2659 Jitpack why... 2023-05-27 14:16:08 +02:00
Konicai
1b9042eacf Bump bungeecord-proxy commit version (#409) 2023-05-09 22:42:53 -05:00
Tim203
f0a20aa967 Support changes introduced in a recent BungeeCord commit 2023-03-28 14:41:41 +02: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
eca042dc82 Simplified plugin message channel logic 2022-08-30 13:25:09 +02:00
Tim203
7e930afcef Fixed a circular dependency issue when a locale couldn't be found 2022-08-30 11:54:26 +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
a7a6366ec1 Patch for people who updated to 2.2 early, and fixed previous push.
The config updater didn't re-add the quotes that strings with special characters (or no characters) should have, which resulted in the usernamePrefix becoming invalid or null. While this has been fixed for people that use the config updater with the latest version, people that already updated can't update again, and would have to edit the config manually.
2022-06-11 15:39:12 +02:00
Tim203
af4030ac12 Re-added support for BungeeCord 1.18
Metrics showed that more than 33% of the BungeeCord platform users still use a 1.18.x version
2022-06-11 14:12:13 +02:00
Tim203
5d5713ed9e Fixed BungeeCord 1.19 support
Since everyone generally updates their proxy this doesn't provide backwards compatibility with BungeeCord versions that don't support 1.19 clients.
2022-06-08 21:50:51 +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
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
Tim203
8beed574e5 Fix BungeeCord with Mojang authentication change 2022-02-02 20:45:42 +01: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
Camotoy
a57bd24216 Relocate Guice on Spigot and BungeeCord 2021-11-19 09:10:22 -05: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
Camotoy
32d5720083 Fix send-floodgate-data with no Bungee forwarding and fix #201 2021-09-24 16:10:15 -04:00
Tim203
50e6676bfc Merge remote-tracking branch 'origin/feature/transfer-players' 2021-09-24 20:29:16 +02: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
cced369d7e Fixed Proxy <-> Server injection 2021-09-10 23:12:58 +02:00
Tim203
9ec9e2d0c1 Added support for transferring players 2021-09-10 01:39:02 +02:00
Camotoy
cd02009dd4 Better BungeeCord channel initialization 2021-09-07 17:53:12 -04:00
Tim203
beda917fc9 Don't block Netty event loop threads while handling Floodgate login 2021-08-26 00:46:24 +02:00