Skip to content

sync relevant changes Jun 3 2024 #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 118 commits into
base: connect
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
118 commits
Select commit Hold shift + click to select a range
00eaec8
Updated Cumulus to 1.1
Tim203 Jan 27, 2022
c34970f
Add obvious download link to the README.md, update wiki links (#171)
jackson-57 Feb 26, 2022
465e66d
Added metrics and fixed relocations not applying for child projects
Tim203 Mar 21, 2022
9ff6ad8
Velocity is also a proxy
Tim203 Mar 21, 2022
8d52ffd
Jenkins uses env variables
Tim203 Apr 2, 2022
c10561d
Added platform fork to metrics. Improved MC version detector in Bungee
Tim203 Apr 2, 2022
fc2fe29
It should be able to publish now
Tim203 May 11, 2022
b85ba07
Don't archive core & api artifacts. Don't deploy databases. Deploy core
Tim203 May 11, 2022
d0b3a38
Jenkins change your syntax pls
Tim203 May 11, 2022
5034c5f
Use the correct jar names
Tim203 May 11, 2022
b2d2efc
Return the value of optional and not the optional itself (#301)
HookWoods May 15, 2022
dbf2471
Fix floodgate not loading with mongo when collection already exists (…
HookWoods May 15, 2022
f2ebf0b
Use ProfileAudience instead. It's a ProfileAudienceArgument (#302)
HookWoods May 15, 2022
523f28d
Fix typos (#273)
robinbraemer May 15, 2022
7bd1bb0
Merge remote-tracking branch 'origin/dev/2.1.1'
Tim203 May 15, 2022
e6bf250
Fixes #303 and changed some metrics
Tim203 May 27, 2022
8bd2e2d
Merge remote-tracking branch 'origin/dev/2.1.1' into feature/cumulus-1.1
Tim203 Jun 6, 2022
e824d0f
Re-added the old sendForm methods
Tim203 Jun 6, 2022
78254df
Use release version of Cumulus 1.1
Tim203 Jun 6, 2022
d68c9d6
Bump version to 2.2
Tim203 Jun 7, 2022
1eec006
Fixed building
Tim203 Jun 7, 2022
5d5713e
Fixed BungeeCord 1.19 support
Tim203 Jun 8, 2022
af4030a
Re-added support for BungeeCord 1.18
Tim203 Jun 11, 2022
59b37f2
Disable key encryption requirement for Floodgate Velocity players
Tim203 Jun 11, 2022
a7a6366
Patch for people who updated to 2.2 early, and fixed previous push.
Tim203 Jun 11, 2022
a46f43d
Fix Velocity modern forwarding with 1.19
Camotoy Jun 13, 2022
6e2c19f
Velocity modern forwarding support doesn't exist pre-1.13
Camotoy Jun 17, 2022
69aacfa
Started using plugin messages internally. Started subcommand refactor
Tim203 Jun 19, 2022
1815613
Removed config holder and changed a few things
Tim203 Jul 3, 2022
904c584
Small changes to platforms and injectors
Tim203 Jul 9, 2022
41de367
Changed how post-enable messages work internally + minor other changes
Tim203 Jul 11, 2022
450eeed
Deprecate handshake handlers and player properties
Tim203 Jul 11, 2022
4eb60ab
Added auto-binding
Tim203 Jul 12, 2022
4f36112
Update Geyser common and Cumulus
Tim203 Aug 10, 2022
e990f2b
Switched event library
Tim203 Aug 13, 2022
13aec4e
Merge remote-tracking branch 'origin/development' into feature/auto-b…
Tim203 Aug 30, 2022
7e930af
Fixed a circular dependency issue when a locale couldn't be found
Tim203 Aug 30, 2022
eca042d
Simplified plugin message channel logic
Tim203 Aug 30, 2022
0f15214
Switched to Hikari for MySQL
Tim203 Aug 31, 2022
359484b
SkinApplier now only applies a skin if a player doesn't already have …
Teamplayer Aug 31, 2022
1a6aa31
Updated to the latest events version. Share a thread pool
Tim203 Aug 31, 2022
bc1a98c
News needs a scheduled executor
Tim203 Sep 2, 2022
aa7e0a1
Merge remote-tracking branch 'origin/master' into development
Tim203 Oct 16, 2022
49cf3a0
Bumped version to 2.1.1 and publish entire java component
Tim203 Oct 16, 2022
90e9b1e
Fix checking for existing skins on Spigot (#362)
Konicai Oct 27, 2022
c2b887f
Close all skin sockets on shutdown (#363)
Konicai Oct 27, 2022
c2a1932
Only apply skin when someone doesn't have a skin applied already (#365)
masmc05 Oct 29, 2022
dafb5e4
Use UTF-8 for language files (#366)
masmc05 Nov 4, 2022
d3705bf
Fixed building Floodgate and added a version subcommand
Tim203 Nov 8, 2022
2c92e3e
Remove Blossom and use templates
Tim203 Dec 11, 2022
e502e00
Use weak references for injected Netty channels
Tim203 Dec 27, 2022
c84dd0c
Use newSetFromMap
Tim203 Dec 27, 2022
913c85c
Added a SkinApplyEvent that can cancel/edit the to be applied skin
Tim203 Dec 28, 2022
0c4b953
Use a common ScheduledThreadPool and make the player map concurrent
Tim203 Dec 28, 2022
eb8989b
Don't try to remove all injector references
Tim203 Dec 28, 2022
f44319c
Merge remote-tracking branch 'origin/feature/weak-references' into de…
Tim203 Dec 28, 2022
da97a0f
Add branch name when not master, simplify publish, use GitHub Actions
Tim203 Feb 12, 2023
4f8a83c
Remove Jenkinsfile
Tim203 Feb 12, 2023
b1f1a2b
Retrieve version from gradle.properties
Tim203 Feb 13, 2023
7ea41b2
Let's see if the setup-java action's cache is helpful & fixed building
Tim203 Feb 13, 2023
64b1d9c
Add publishing to downloads site (#385)
rtm516 Feb 13, 2023
d7e35ae
Notify Discord after building & fixed building
Tim203 Feb 13, 2023
64cb16b
Temporarily restore Jenkinsfile to give people time to switch
Tim203 Feb 13, 2023
38442bc
Localize floodgate.core.not_linked (#383)
Konicai Feb 13, 2023
82d27be
Update bstats dependency
Tim203 Feb 13, 2023
cfd28e8
Only publish and notify Discord on push if running inside this reposi…
Konicai Feb 18, 2023
dd37174
Fix injection of LanguageManager/Slf4jFloodgate on Velocity (circular…
Konicai Feb 18, 2023
846b606
Made various changes to the build action
Tim203 Feb 26, 2023
e4a2080
Update maven deploy location
Tim203 Feb 26, 2023
9512528
Relocate MySQL database extension dependencies
Tim203 Feb 26, 2023
2230f2a
Shutdown metrics on platform shutdown (#386)
Konicai Feb 26, 2023
d572ec9
Store forms in a synchronized map
Tim203 Mar 1, 2023
82cfaa8
Merge pull request #397 from GeyserMC/development
Tim203 Mar 1, 2023
8b002e2
Attempt to fix publishing to the Downloads API
Tim203 Mar 1, 2023
089b9a7
Another attempt
Tim203 Mar 1, 2023
65e4de4
Update downloads api publishing steps
rtm516 Mar 19, 2023
f0a20aa
Support changes introduced in a recent BungeeCord commit
Tim203 Mar 28, 2023
3c0e30b
Folia support
Tim203 Mar 31, 2023
104cbdd
Use Java 17 to compile
Camotoy Mar 31, 2023
2702bc3
Check IS_FOLIA silently (#400)
byteful Mar 31, 2023
1b9042e
Bump bungeecord-proxy commit version (#409)
Konicai May 10, 2023
202a30a
Fixed GitHub Action run numbers and updated download url
Tim203 May 27, 2023
e23f1b2
Jitpack why...
Tim203 May 27, 2023
2278589
Relocate SnakeYAML
Tim203 Jun 9, 2023
d1f3aae
Backported Folia detection fix
Tim203 Aug 13, 2023
9c79df6
Bump Geyser, Cumulus, Events versions to fix an issue with Events
Tim203 Aug 15, 2023
492be77
Fixed an error during shutdown
Tim203 Aug 17, 2023
26c11bd
1.20.2 Support (#449)
Kas-tle Sep 26, 2023
7b88918
Fix spigot whitelist command on newer Paper versions (#456)
HideyBoi Oct 10, 2023
f9b427f
Maybe fix empty profile issue (#458)
Kas-tle Oct 10, 2023
71acc6c
Backport a similar fix for 1.20.2 profile properties
Tim203 Oct 13, 2023
921d706
Made Floodgate compatible with latest Spigot changes
Tim203 Dec 30, 2023
2876c57
We no longer use Jenkins
Tim203 Dec 30, 2023
94eabd7
Add support for latest Velocity changes
Tim203 Jan 18, 2024
19391fa
Update Geyser version (#481)
rtm516 Jan 28, 2024
2886a71
Remove mention of maven in PR build (#482)
rtm516 Jan 28, 2024
7f38765
Made the debug addon a bit more dumb
Tim203 Feb 18, 2024
851ed5a
Support 1.20.5 spigot, update languages module, update Bungee depende…
onebeastchris Apr 27, 2024
58d71cb
Fix Publishing to the Downloads API (#499)
Kas-tle Apr 28, 2024
0fa00a8
Support Paper's lack of CraftBukkit relocation
Tim203 Apr 28, 2024
7a55305
Feature: Cloud 2.0, publishing setup fixes (#496)
onebeastchris Apr 28, 2024
a44e3a5
Fixed an oversight that resulted in old versions not working
Tim203 Apr 29, 2024
41c42ed
Update cloud (#505)
onebeastchris May 6, 2024
4404c15
Allow Floodgate-Fabric to provide it's own TemplateReader (#507)
onebeastchris May 8, 2024
f8c8418
Deal with getLocale being nullable during login on BungeeCord (#511)
onebeastchris May 14, 2024
00b8b1b
Reduce session server lookups (#509)
bridgelol May 18, 2024
f1c52b4
Fixed recession in latest commit
Tim203 May 18, 2024
792af7b
Fixed bug in Bungee platform
Tim203 May 18, 2024
c4a4487
Switch to centralized GitHub actions (#516)
Kas-tle May 27, 2024
e1bae57
Do not swallow errors on Spigot
Camotoy Jun 13, 2024
49bd564
Preliminary 1.21 Spigot support (#521)
onebeastchris Jun 14, 2024
e7e40f5
Deprecate all the API classes that will be removed in Floodgate 3.0
Tim203 Sep 1, 2024
3db8e59
Support latest BungeeCord changes (#546)
Outfluencer Sep 14, 2024
0360721
Check if channel is open before injecting (#547)
linsaftw Sep 29, 2024
06f2ed9
Actually check if the channel is open, fixes #547 (#557)
LittleShyStar02 Oct 31, 2024
83fbd6e
Update README.md Download, Status, and Wiki Links (#559)
Kas-tle Nov 5, 2024
2deccf3
Implemented a way to close forms from floodgate (#566)
RochBlondiaux Feb 11, 2025
0e3163c
Use newly added BungeeCord ChannelInitializer API (#575)
Outfluencer Feb 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
117 changes: 117 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
name: Build

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Get Release Info
id: release-info
uses: GeyserMC/actions/previous-release@master
with:
data: ${{ vars.RELEASEACTION_PREVRELEASE }}

- name: Checkout repository and submodules
# See https://github.com/actions/checkout/commits
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
submodules: recursive

- name: Validate Gradle Wrapper
# See https://github.com/gradle/wrapper-validation-action/commits
uses: gradle/actions/wrapper-validation@db19848a5fa7950289d3668fb053140cf3028d43 # v3.3.2

- name: Setup Java
# See https://github.com/actions/setup-java/commits
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
with:
java-version: 17
distribution: temurin

- name: Setup Gradle
# See https://github.com/gradle/actions/commits
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
with:
cache-read-only: ${{ github.ref_name != 'master' && github.ref_name != 'development' }}

- name: Build Floodgate
run: ./gradlew build
env:
BUILD_NUMBER: ${{ steps.release-info.outputs.curentRelease }}

- name: Archive artifacts (Floodgate Bungee)
# See https://github.com/actions/upload-artifact/commits
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
if: success()
with:
name: Floodgate Bungee
path: bungee/build/libs/floodgate-bungee.jar
if-no-files-found: error

- name: Archive artifacts (Floodgate Spigot)
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808
if: success()
with:
name: Floodgate Spigot
path: spigot/build/libs/floodgate-spigot.jar
if-no-files-found: error

- name: Archive artifacts (Floodgate Velocity)
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808
if: success()
with:
name: Floodgate Velocity
path: velocity/build/libs/floodgate-velocity.jar
if-no-files-found: error

- name: Publish to Maven Repository
if: ${{ github.repository == 'GeyserMC/Floodgate' }}
run: ./gradlew publish
env:
BUILD_NUMBER: ${{ steps.release-info.outputs.curentRelease }}
ORG_GRADLE_PROJECT_geysermcUsername: ${{ vars.DEPLOY_USER }}
ORG_GRADLE_PROJECT_geysermcPassword: ${{ secrets.DEPLOY_PASS }}

- name: Get Version
if: ${{ success() && github.repository == 'GeyserMC/Floodgate' && github.ref_name == 'master' }}
id: get-version
run: |
version=$(cat gradle.properties | grep -o "version=[0-9\\.]*" | cut -d"=" -f2)
echo "VERSION=${version}" >> $GITHUB_OUTPUT

- name: Get Release Metadata
if: ${{ success() && github.repository == 'GeyserMC/Floodgate' && github.ref_name == 'master' }}
uses: GeyserMC/actions/release@master
id: metadata
with:
appID: ${{ secrets.RELEASE_APP_ID }}
appPrivateKey: ${{ secrets.RELEASE_APP_PK }}
files: |
bungee:bungee/build/libs/floodgate-bungee.jar
spigot:spigot/build/libs/floodgate-spigot.jar
velocity:velocity/build/libs/floodgate-velocity.jar
releaseEnabled: false
saveMetadata: true
releaseProject: 'floodgate'
releaseVersion: ${{ steps.get-version.outputs.VERSION }}

- name: Publish to Downloads API
if: ${{ success() && github.ref_name == 'master' && github.repository == 'GeyserMC/Floodgate' }}
uses: GeyserMC/actions/upload-release@master
with:
username: ${{ vars.DOWNLOADS_USERNAME }}
privateKey: ${{ secrets.DOWNLOADS_PRIVATE_KEY }}
host: ${{ secrets.DOWNLOADS_SERVER_IP }}
files: |
bungee/build/libs/floodgate-bungee.jar
spigot/build/libs/floodgate-spigot.jar
velocity/build/libs/floodgate-velocity.jar

- name: Notify Discord
if: ${{ (success() || failure()) && github.repository == 'GeyserMC/Floodgate' }}
uses: GeyserMC/actions/notify-discord@master
with:
discordWebhook: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ job.status }}
body: ${{ steps.metadata.outputs.body }}
44 changes: 33 additions & 11 deletions .github/workflows/pullrequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,57 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set Build Number
run: |
echo "BUILD_NUMBER=${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV

- name: Set up JDK 1.8
uses: actions/setup-java@v2
- name: Checkout repository and submodules
# See https://github.com/actions/checkout/commits
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
distribution: 'temurin'
java-version: '8'
cache: 'gradle'
submodules: recursive

- name: Build with Maven
- name: Validate Gradle Wrapper
# See https://github.com/gradle/wrapper-validation-action/commits
uses: gradle/actions/wrapper-validation@db19848a5fa7950289d3668fb053140cf3028d43 # v3.3.2

- name: Setup Java
# See https://github.com/actions/setup-java/commits
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
with:
java-version: 17
distribution: temurin

- name: Setup Gradle
# See https://github.com/gradle/actions/commits
uses: gradle/actions/setup-gradle@db19848a5fa7950289d3668fb053140cf3028d43 # v3.3.2
with:
cache-read-only: true

- name: Build Floodgate
run: ./gradlew build

- name: Archive artifacts (Floodgate Bungee)
uses: actions/upload-artifact@v2
# See https://github.com/actions/upload-artifact/commits
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
if: success()
with:
name: Floodgate Bungee
path: bungee/build/libs/floodgate-bungee.jar
if-no-files-found: error

- name: Archive artifacts (Floodgate Spigot)
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808
if: success()
with:
name: Floodgate Spigot
path: spigot/build/libs/floodgate-spigot.jar
if-no-files-found: error

- name: Archive artifacts (Floodgate Velocity)
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808
if: success()
with:
name: Floodgate Velocity
path: velocity/build/libs/floodgate-velocity.jar
path: velocity/build/libs/floodgate-velocity.jar
if-no-files-found: error
97 changes: 53 additions & 44 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Created by https://www.gitignore.io/api/git,java,maven,eclipse,netbeans,jetbrains+all
# Edit at https://www.gitignore.io/?templates=git,java,maven,eclipse,netbeans,jetbrains+all
# Created by https://www.gitignore.io/api/git,java,gradle,eclipse,netbeans,jetbrains+all
# Edit at https://www.gitignore.io/?templates=git,gradle,maven,eclipse,netbeans,jetbrains+all

### Eclipse ###
.metadata
Expand Down Expand Up @@ -52,22 +52,19 @@ local.properties

# Annotation Processing
.apt_generated/
.apt_generated_test/

# Scala IDE specific (Scala & Java development for Eclipse)
.cache-main
.scala_dependencies
.worksheet

### Eclipse Patch ###
# Eclipse Core
.project

# JDT-specific (Eclipse Java Development Tools)
.classpath

# Annotation Processing
.apt_generated
# Uncomment this line if you wish to ignore the project description file.
# Typically, this file would be tracked if it contains build/dependency configurations:
#.project

### Eclipse Patch ###
# Spring Boot Tooling
.sts4-cache/

### Git ###
Expand Down Expand Up @@ -109,9 +106,10 @@ local.properties

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
replay_pid*

### JetBrains+all ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
Expand All @@ -121,6 +119,9 @@ hs_err_pid*
.idea/**/dictionaries
.idea/**/shelf

# AWS User-specific
.idea/**/aws.xml

# Generated files
.idea/**/contentModel.xml

Expand All @@ -141,11 +142,14 @@ hs_err_pid*
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr
.idea/artifacts
.idea/compiler.xml
.idea/jarRepositories.xml
.idea/modules.xml
.idea/*.iml
.idea/modules
*.iml
*.ipr

# CMake
cmake-build-*/
Expand All @@ -168,6 +172,9 @@ atlassian-ide-plugin.xml
# Cursive Clojure plugin
.idea/replstate.xml

# SonarLint plugin
.idea/sonarlint/

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
Expand All @@ -181,32 +188,13 @@ fabric.properties
.idea/caches/build_file_checksums.ser

### JetBrains+all Patch ###
# Ignores the whole .idea folder and all .iml files
# See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360
# Ignore everything but code style settings and run configurations
# that are supposed to be shared within teams.

.idea/
.idea/*

# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023

*.iml
modules.xml
.idea/misc.xml
*.ipr

# Sonarlint plugin
.idea/sonarlint

### Maven ###
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
.mvn/wrapper/maven-wrapper.jar
!.idea/codeStyles
!.idea/runConfigurations

### NetBeans ###
**/nbproject/private/
Expand All @@ -218,8 +206,29 @@ dist/
nbdist/
.nb-gradle/

# End of https://www.gitignore.io/api/git,java,maven,eclipse,netbeans,jetbrains+all
gradle/
**/.gradle/
### Gradle ###
.gradle
**/build/
!src/**/build/

# Ignore Gradle GUI config
gradle-app.setting

# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
!gradle-wrapper.jar

# Avoid ignore Gradle wrappper properties
!gradle-wrapper.properties

# Cache of project
.gradletasknamecache

# Eclipse Gradle plugin generated files
# Eclipse Core
.project
# JDT-specific (Eclipse Java Development Tools)
.classpath

# End of https://www.gitignore.io/api/git,java,gradle,eclipse,netbeans,jetbrains+all

/core/src/main/resources/languages/
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[submodule "core/src/main/resources/languages"]
path = core/src/main/resources/languages
url = https://github.com/GeyserMC/languages
branch = l10n_floodgate
branch = floodgate
Loading