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

125 Commits

Author SHA1 Message Date
Camotoy
0a8cba05f8 Update to support 1.21.9 (#616)
* Start work on 1.21.9

* Works on 1.21.9

* Add native Mojmap support for the spigot module (#591)

* Add native Mojmap support for the spigot module

* Don't remove spigot class name for CraftPlayer

* Also include CraftServer and CraftOfflinePlayer

* Restored compatibility with 1.16.5

* Import cleanup

* Fix /fwhitelist on 1.21.9

(cherry picked from commit 06bb54395f)

* Re-use existing name/uuid from old profile when applying new skin

---------

Co-authored-by: Eclipse <eclipse@eclipseisoffline.xyz>
Co-authored-by: Aurorawr <auroranova8756@gmail.com>
Co-authored-by: onebeastchris <github@onechris.mozmail.com>
2025-10-03 20:55:57 +02:00
Aurorawr
d5be877ed9 Fix fwhitelist command + Bungee build fix (#613) 2025-09-30 20:14:35 +02:00
chris
b469c0c057 Remove LoginEvent usage in Floodgate-Spigot (#596) 2025-07-16 21:47:25 +02:00
chris
49bd56446f Preliminary 1.21 Spigot support (#521) 2024-06-13 22:08:27 -04:00
Camotoy
e1bae5765b Do not swallow errors on Spigot 2024-06-13 18:01:39 -04: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
41c42ed3bb Update cloud (#505) 2024-05-06 12:04:58 +02:00
Tim203
a44e3a5df8 Fixed an oversight that resulted in old versions not working 2024-04-29 08:29:24 +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
0fa00a85ad Support Paper's lack of CraftBukkit relocation 2024-04-28 20:25:43 +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
921d706c1e Made Floodgate compatible with latest Spigot changes 2023-12-30 21:19:29 +01:00
Tim203
71acc6c0f4 Backport a similar fix for 1.20.2 profile properties 2023-10-13 17:15:17 +02:00
Kas-tle
f9b427fcdf Maybe fix empty profile issue (#458)
Co-authored-by: Camotoy <20743703+Camotoy@users.noreply.github.com>
2023-10-10 11:51:34 -07:00
Hidey Boi
7b889180e0 Fix spigot whitelist command on newer Paper versions (#456)
* Jank Fix for #444

* Move Scheduler to WhitelistUtils

Also stopped using the Bukkit scheduler and am now scheduling via SpigotVersionSpecificMethods.maybeSchedule

* Move setWhitelist to WhitelistUtils

Includes requested formatting changes.

* switch from runnables to using an lambda expression

* Made lambda a single line

---------

Co-authored-by: Hidey Boi <HideyBoi@users.noreply.github.com>
2023-10-10 11:22:20 -07: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
Tim203
d1f3aae56c Backported Folia detection fix 2023-08-14 01:04:02 +02:00
Tim203
227858930d Relocate SnakeYAML 2023-06-09 18:32:31 +02:00
byteful
2702bc3e83 Check IS_FOLIA silently (#400) 2023-03-31 16:44:17 -04:00
Tim203
3c0e30bff7 Folia support
Co-Authored-By: Camotoy <20743703+Camotoy@users.noreply.github.com>
2023-03-31 13:14:37 -04:00
Tim203
f44319c968 Merge remote-tracking branch 'origin/feature/weak-references' into development 2022-12-29 00:32:33 +01:00
Tim203
eb8989b400 Don't try to remove all injector references 2022-12-29 00:31:48 +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
e502e0019f Use weak references for injected Netty channels 2022-12-27 01:08:02 +01:00
mastermc05
c2a1932080 Only apply skin when someone doesn't have a skin applied already (#365)
Instead of aplying only when the player has a skin apply only when it doesn't have a skin
2022-10-29 12:31:17 +02:00
Konicai
90e9b1e3fc Fix checking for existing skins on Spigot (#362) 2022-10-27 21:10:22 +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
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
Camotoy
6e2c19f118 Velocity modern forwarding support doesn't exist pre-1.13 2022-06-16 20:09:45 -04:00
Camotoy
a46f43d19a Fix Velocity modern forwarding with 1.19
Fixes https://github.com/GeyserMC/Geyser/issues/3039, #321
2022-06-13 15:29:45 -04: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
c10561d010 Added platform fork to metrics. Improved MC version detector in Bungee 2022-04-02 16:27:04 +02:00
Tim203
9ff6ad8589 Velocity is also a proxy 2022-03-21 15:14:07 +01:00
Tim203
465e66df72 Added metrics and fixed relocations not applying for child projects 2022-03-21 14:41:53 +01:00
Tim203
440e20f5ea Switched to ConfigUtils and prepared the addition of metrics 2022-03-11 23:35:59 +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
039b398dad Register permissions on Spigot. Profile ID can be null. Fixed submodule 2022-02-06 02:10:17 +01:00
Tim203
141643f381 Update build file to reflect changes made in master 2022-02-04 16:04:41 +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
4537fea569 Only initialize Paper listener with class existance 2022-02-02 12:48:41 -05:00
Redned
5e51ac9f48 Quick fix for GameProfile's being empty 2022-02-02 11:10:57 -06:00
Tim203
6e6d352a22 Merge remote-tracking branch 'origin/master' into dev/2.1.1
# Conflicts:
#	core/src/main/resources/languages
2022-01-27 12:33:43 +01:00
Tim203
8f2c6d0397 Support API usage in disconnect events. Removed the login field 2022-01-25 22:14:46 +01:00
Tim203
763ede8817 Don't assume that BedrockData can't be null 2022-01-20 19:34:14 +01:00
Tim203
a3e6c09166 Paper added an option to disable username validation for a connection
Co-authored-by: Camotoy <20743703+camotoy@users.noreply.github.com>
2022-01-18 16:57:37 +01:00
Tim203
b6a7087dc7 Bypass username validation for every Spigot platform
After internal discussion, we've decided to require assistance for all Spigot platforms, in case Spigot decides to add username validation as well.
2022-01-14 11:57:42 +01:00
Tim203
452656dce7 Always bypass Paper's username validation for Floodgate players 2022-01-08 02:15:04 +01:00