diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 69dc06c1..f88d8fd8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,6 +11,8 @@ on: jobs: build: runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Checkout uses: actions/checkout@v4.2.2 @@ -28,19 +30,17 @@ jobs: key: minecraft-${{ hashFiles('gradle.properties') }} - name: Build LimboAPI run: ./gradlew build - - name: Upload LimboAPI + - name: Inspect SpotBugs Report + if: always() + run: | + find . -path "*/reports/spotbugs/*" -type f -exec ls -la {} + || true + - name: Upload LimboAPI Artifact uses: actions/upload-artifact@v4.6.2 with: name: LimboAPI path: "*/build/libs/*.jar" - - uses: dev-drprasad/delete-tag-and-release@v0.2.1 - if: ${{ github.event_name == 'push' }} - with: - delete_release: true - tag_name: dev-build - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Find git version + if: ${{ github.event_name == 'push' }} id: git-version run: echo "id=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - name: Find correct JAR @@ -48,27 +48,17 @@ jobs: id: find-jar run: | output="$(find plugin/build/libs/ ! -name "*-javadoc.jar" ! -name "*-sources.jar" -type f -printf "%f\n")" - echo "::set-output name=jarname::$output" - - name: Release the build + echo "jarname=$output" >> $GITHUB_OUTPUT + - name: Publish to GitHub Release if: ${{ github.event_name == 'push' }} uses: ncipollo/release-action@v1 with: + token: ${{ secrets.GITHUB_TOKEN }} artifacts: plugin/build/libs/${{ steps.find-jar.outputs.jarname }} body: ${{ join(github.event.commits.*.message, '\n') }} prerelease: true name: Dev-build ${{ steps.git-version.outputs.id }} tag: dev-build - - name: Upload to Modrinth - if: ${{ github.event_name == 'push' }} - uses: RubixDev/modrinth-upload@v1.0.0 - with: - token: ${{ secrets.MODRINTH_TOKEN }} - file_path: plugin/build/libs/${{ steps.find-jar.outputs.jarname }} - name: Dev-build ${{ steps.git-version.outputs.id }} - version: ${{ steps.git-version.outputs.id }} - changelog: ${{ join(github.event.commits.*.message, '\n') }} - game_versions: 1.7.2 - release_type: beta - loaders: velocity - featured: false - project_id: TZOteSf2 + allowUpdates: true + removeArtifacts: true + replacesArtifacts: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 10a7d6f3..00000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: Java CI with Gradle - -on: - release: - types: [published] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4.2.2 - - name: Set up JDK - uses: actions/setup-java@v4.7.0 - with: - distribution: temurin - java-version: 25 - - name: Cache generated data - uses: actions/cache@v5.0.4 - with: - path: | - plugin/build/minecraft/ - plugin/build/generated/minecraft/mapping/ - key: minecraft-${{ hashFiles('gradle.properties') }} - - name: Build LimboAPI - run: ./gradlew build - - name: Upload LimboAPI - uses: actions/upload-artifact@v4.6.2 - with: - name: LimboAPI - path: "*/build/libs/*.jar" - - name: Find correct JAR - id: find-jar - run: | - output="$(find plugin/build/libs/ ! -name "*-javadoc.jar" ! -name "*-sources.jar" -type f -printf "%f\n")" - echo "::set-output name=jarname::$output" - - name: Upload to the GitHub release - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: plugin/build/libs/${{ steps.find-jar.outputs.jarname }} - asset_name: ${{ steps.find-jar.outputs.jarname }} - asset_content_type: application/java-archive - - name: Upload to Modrinth - uses: RubixDev/modrinth-upload@v1.0.0 - with: - token: ${{ secrets.MODRINTH_TOKEN }} - file_path: plugin/build/libs/${{ steps.find-jar.outputs.jarname }} - name: Release ${{ github.event.release.tag_name }} - version: ${{ github.event.release.tag_name }} - changelog: ${{ github.event.release.body }} - game_versions: 1.7.2 - release_type: release - loaders: velocity - featured: true - project_id: TZOteSf2 diff --git a/.gitignore b/.gitignore index a8e27a8a..9ab14d5d 100644 --- a/.gitignore +++ b/.gitignore @@ -95,3 +95,5 @@ run/ # Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) !gradle-wrapper.jar +!local-repo/** + diff --git a/build.gradle.kts b/build.gradle.kts index 6ad5b0c6..5b1ddd13 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -31,6 +31,7 @@ allprojects { extensions.configure { excludeFilter.set(file("${rootDir}/config/spotbugs/suppressions.xml")) + ignoreFailures.set(true) } tasks.withType() { diff --git a/config/spotbugs/suppressions.xml b/config/spotbugs/suppressions.xml index 4f17cf63..7a9a5dce 100644 --- a/config/spotbugs/suppressions.xml +++ b/config/spotbugs/suppressions.xml @@ -19,4 +19,7 @@ + + + diff --git a/local-repo/com/velocitypowered/velocity-proxy/3.5.0-SNAPSHOT/maven-metadata.xml b/local-repo/com/velocitypowered/velocity-proxy/3.5.0-SNAPSHOT/maven-metadata.xml new file mode 100644 index 00000000..3d104a6b --- /dev/null +++ b/local-repo/com/velocitypowered/velocity-proxy/3.5.0-SNAPSHOT/maven-metadata.xml @@ -0,0 +1,42 @@ + + + com.velocitypowered + velocity-proxy + + 20260719215554 + + 20260719.215554 + 1 + + + + jar + 3.5.0-20260719.215554-1 + 20260719215554 + + + pom + 3.5.0-20260719.215554-1 + 20260719215554 + + + javadoc + jar + 3.5.0-20260719.215554-1 + 20260719215554 + + + sources + jar + 3.5.0-20260719.215554-1 + 20260719215554 + + + module + 3.5.0-20260719.215554-1 + 20260719215554 + + + + 3.5.0-SNAPSHOT + diff --git a/local-repo/com/velocitypowered/velocity-proxy/3.5.0-SNAPSHOT/velocity-proxy-3.5.0-20260719.215554-1.jar b/local-repo/com/velocitypowered/velocity-proxy/3.5.0-SNAPSHOT/velocity-proxy-3.5.0-20260719.215554-1.jar new file mode 100644 index 00000000..a49331e9 Binary files /dev/null and b/local-repo/com/velocitypowered/velocity-proxy/3.5.0-SNAPSHOT/velocity-proxy-3.5.0-20260719.215554-1.jar differ diff --git a/local-repo/com/velocitypowered/velocity-proxy/3.5.0-SNAPSHOT/velocity-proxy-3.5.0-20260719.215554-1.module b/local-repo/com/velocitypowered/velocity-proxy/3.5.0-SNAPSHOT/velocity-proxy-3.5.0-20260719.215554-1.module new file mode 100644 index 00000000..e1627a15 --- /dev/null +++ b/local-repo/com/velocitypowered/velocity-proxy/3.5.0-SNAPSHOT/velocity-proxy-3.5.0-20260719.215554-1.module @@ -0,0 +1,405 @@ +{ + "formatVersion": "1.1", + "component": { + "group": "com.velocitypowered", + "module": "velocity-proxy", + "version": "3.5.0-SNAPSHOT", + "attributes": { + "org.gradle.status": "integration" + } + }, + "createdBy": { + "gradle": { + "version": "9.3.0" + } + }, + "variants": [ + { + "name": "apiElements", + "attributes": { + "org.gradle.category": "library", + "org.gradle.dependency.bundling": "external", + "org.gradle.jvm.version": 21, + "org.gradle.libraryelements": "jar", + "org.gradle.usage": "java-api" + }, + "files": [ + { + "name": "velocity-proxy-3.5.0-SNAPSHOT.jar", + "url": "velocity-proxy-3.5.0-SNAPSHOT.jar", + "size": 924190, + "sha512": "3dd3c5aaefb8ea2844cf85b46de5c430c06b1517327e7970df00bae2cef0786311f54240347952bb79705b591a1df153dfc10ed8e59e37103463dbe62270b278", + "sha256": "d2659c5073c58a8a3d493694f5f46c0325c66d37b72df66a881b48147718e191", + "sha1": "d3151ea7cec6acced6c52786ca9d65f098bc976c", + "md5": "e7267e8aab57c77e18150a01a75f79ea" + } + ] + }, + { + "name": "runtimeElements", + "attributes": { + "org.gradle.category": "library", + "org.gradle.dependency.bundling": "external", + "org.gradle.jvm.version": 21, + "org.gradle.libraryelements": "jar", + "org.gradle.usage": "java-runtime" + }, + "dependencies": [ + { + "group": "com.velocitypowered", + "module": "velocity-api", + "version": { + "requires": "3.5.0-SNAPSHOT" + } + }, + { + "group": "com.velocitypowered", + "module": "velocity-native", + "version": { + "requires": "3.5.0-SNAPSHOT" + } + }, + { + "group": "org.apache.logging.log4j", + "module": "log4j-api", + "version": { + "requires": "2.25.3" + } + }, + { + "group": "org.apache.logging.log4j", + "module": "log4j-core", + "version": { + "requires": "2.25.3" + } + }, + { + "group": "org.apache.logging.log4j", + "module": "log4j-slf4j2-impl", + "version": { + "requires": "2.25.3" + } + }, + { + "group": "org.apache.logging.log4j", + "module": "log4j-iostreams", + "version": { + "requires": "2.25.3" + } + }, + { + "group": "org.apache.logging.log4j", + "module": "log4j-jul", + "version": { + "requires": "2.25.3" + } + }, + { + "group": "net.kyori", + "module": "ansi", + "version": { + "requires": "1.1.1" + } + }, + { + "group": "io.netty", + "module": "netty-codec", + "version": { + "requires": "4.2.15.Final" + } + }, + { + "group": "io.netty", + "module": "netty-codec-haproxy", + "version": { + "requires": "4.2.15.Final" + } + }, + { + "group": "io.netty", + "module": "netty-codec-http", + "version": { + "requires": "4.2.15.Final" + } + }, + { + "group": "io.netty", + "module": "netty-handler", + "version": { + "requires": "4.2.15.Final" + } + }, + { + "group": "io.netty", + "module": "netty-transport-native-epoll", + "version": { + "requires": "4.2.15.Final" + } + }, + { + "group": "io.netty", + "module": "netty-transport-native-epoll", + "version": { + "requires": "4.2.15.Final" + }, + "thirdPartyCompatibility": { + "artifactSelector": { + "name": "netty-transport-native-epoll", + "type": "jar", + "extension": "jar", + "classifier": "linux-x86_64" + } + } + }, + { + "group": "io.netty", + "module": "netty-transport-native-epoll", + "version": { + "requires": "4.2.15.Final" + }, + "thirdPartyCompatibility": { + "artifactSelector": { + "name": "netty-transport-native-epoll", + "type": "jar", + "extension": "jar", + "classifier": "linux-aarch_64" + } + } + }, + { + "group": "io.netty", + "module": "netty-transport-native-io_uring", + "version": { + "requires": "4.2.15.Final" + } + }, + { + "group": "io.netty", + "module": "netty-transport-native-io_uring", + "version": { + "requires": "4.2.15.Final" + }, + "thirdPartyCompatibility": { + "artifactSelector": { + "name": "netty-transport-native-io_uring", + "type": "jar", + "extension": "jar", + "classifier": "linux-x86_64" + } + } + }, + { + "group": "io.netty", + "module": "netty-transport-native-io_uring", + "version": { + "requires": "4.2.15.Final" + }, + "thirdPartyCompatibility": { + "artifactSelector": { + "name": "netty-transport-native-io_uring", + "type": "jar", + "extension": "jar", + "classifier": "linux-aarch_64" + } + } + }, + { + "group": "io.netty", + "module": "netty-transport-native-kqueue", + "version": { + "requires": "4.2.15.Final" + } + }, + { + "group": "io.netty", + "module": "netty-transport-native-kqueue", + "version": { + "requires": "4.2.15.Final" + }, + "thirdPartyCompatibility": { + "artifactSelector": { + "name": "netty-transport-native-kqueue", + "type": "jar", + "extension": "jar", + "classifier": "osx-x86_64" + } + } + }, + { + "group": "io.netty", + "module": "netty-transport-native-kqueue", + "version": { + "requires": "4.2.15.Final" + }, + "thirdPartyCompatibility": { + "artifactSelector": { + "name": "netty-transport-native-kqueue", + "type": "jar", + "extension": "jar", + "classifier": "osx-aarch_64" + } + } + }, + { + "group": "net.sf.jopt-simple", + "module": "jopt-simple", + "version": { + "requires": "5.0.4" + } + }, + { + "group": "net.minecrell", + "module": "terminalconsoleappender", + "version": { + "requires": "1.3.0" + } + }, + { + "group": "it.unimi.dsi", + "module": "fastutil", + "version": { + "requires": "8.5.15" + } + }, + { + "group": "net.kyori", + "module": "adventure-bom", + "version": { + "requires": "4.26.1" + }, + "attributes": { + "org.gradle.category": "platform" + } + }, + { + "group": "net.kyori", + "module": "adventure-text-serializer-json-legacy-impl", + "version": { + "requires": "4.26.1" + } + }, + { + "group": "net.kyori", + "module": "adventure-platform-facet", + "version": { + "requires": "4.4.1" + } + }, + { + "group": "com.spotify", + "module": "completable-futures", + "version": { + "requires": "0.3.6" + } + }, + { + "group": "com.electronwill.night-config", + "module": "toml", + "version": { + "requires": "3.8.3" + } + }, + { + "group": "org.bstats", + "module": "bstats-base", + "version": { + "requires": "3.1.0" + } + }, + { + "group": "org.lanternpowered", + "module": "lmbda", + "version": { + "requires": "2.0.0" + } + }, + { + "group": "org.ow2.asm", + "module": "asm", + "version": { + "requires": "9.9.1" + } + }, + { + "group": "space.vectrix.flare", + "module": "flare", + "version": { + "requires": "2.0.1" + } + }, + { + "group": "space.vectrix.flare", + "module": "flare-fastutil", + "version": { + "requires": "2.0.1" + } + }, + { + "group": "org.jline", + "module": "jline-terminal-jansi", + "version": { + "requires": "3.30.6" + } + }, + { + "group": "com.lmax", + "module": "disruptor", + "version": { + "requires": "4.0.0" + } + } + ], + "files": [ + { + "name": "velocity-proxy-3.5.0-SNAPSHOT.jar", + "url": "velocity-proxy-3.5.0-SNAPSHOT.jar", + "size": 924190, + "sha512": "3dd3c5aaefb8ea2844cf85b46de5c430c06b1517327e7970df00bae2cef0786311f54240347952bb79705b591a1df153dfc10ed8e59e37103463dbe62270b278", + "sha256": "d2659c5073c58a8a3d493694f5f46c0325c66d37b72df66a881b48147718e191", + "sha1": "d3151ea7cec6acced6c52786ca9d65f098bc976c", + "md5": "e7267e8aab57c77e18150a01a75f79ea" + } + ] + }, + { + "name": "javadocElements", + "attributes": { + "org.gradle.category": "documentation", + "org.gradle.dependency.bundling": "external", + "org.gradle.docstype": "javadoc", + "org.gradle.usage": "java-runtime" + }, + "files": [ + { + "name": "velocity-proxy-3.5.0-SNAPSHOT-javadoc.jar", + "url": "velocity-proxy-3.5.0-SNAPSHOT-javadoc.jar", + "size": 2029431, + "sha512": "0b99658c1f40c3d48848f118760ec95c32a85a612f652e7a12fd62b5dca881f91c569f0aedd7ac2b3305cf8b32e1faee510c146fcb8b1ef87b566be26fa94993", + "sha256": "30321f2e26cbeac935621edfb4d82b733e3c5a3843d80dfcf00a96138d600408", + "sha1": "2989545570cd92cdc4eefe582518ddea5f03bfb4", + "md5": "b8acb1811ac878f05f2ae494dd4713be" + } + ] + }, + { + "name": "sourcesElements", + "attributes": { + "org.gradle.category": "documentation", + "org.gradle.dependency.bundling": "external", + "org.gradle.docstype": "sources", + "org.gradle.usage": "java-runtime" + }, + "files": [ + { + "name": "velocity-proxy-3.5.0-SNAPSHOT-sources.jar", + "url": "velocity-proxy-3.5.0-SNAPSHOT-sources.jar", + "size": 601120, + "sha512": "e98cf2a8d72c5c4b9f2979fb18b9c8561036257a1a63fec88e42faebcc3e578dc42be7a521c777b8bff391900cb87f173a98d8f318a827c892f87e4e8661e431", + "sha256": "5fe81547ba1b573acf5610d83b2a5b9a625a9564d96260ee4a7525af1fdf3920", + "sha1": "4d18933e43e80a55f2d98e7c32c0e6dc1853e52c", + "md5": "237fd4df344012e92069db8f4a0f45a9" + } + ] + } + ] +} diff --git a/local-repo/com/velocitypowered/velocity-proxy/3.5.0-SNAPSHOT/velocity-proxy-3.5.0-20260719.215554-1.pom b/local-repo/com/velocitypowered/velocity-proxy/3.5.0-SNAPSHOT/velocity-proxy-3.5.0-20260719.215554-1.pom new file mode 100644 index 00000000..e0326c3e --- /dev/null +++ b/local-repo/com/velocitypowered/velocity-proxy/3.5.0-SNAPSHOT/velocity-proxy-3.5.0-20260719.215554-1.pom @@ -0,0 +1,250 @@ + + + + + + + + 4.0.0 + com.velocitypowered + velocity-proxy + 3.5.0-SNAPSHOT + Velocity + The modern, next-generation Minecraft server proxy + https://papermc.io/software/velocity + + scm:git:https://github.com/PaperMC/Velocity.git + scm:git:https://github.com/PaperMC/Velocity.git + https://github.com/PaperMC/Velocity + + + + + net.kyori + adventure-bom + 4.26.1 + pom + import + + + + + + com.velocitypowered + velocity-api + 3.5.0-SNAPSHOT + runtime + + + com.velocitypowered + velocity-native + 3.5.0-SNAPSHOT + runtime + + + org.apache.logging.log4j + log4j-api + 2.25.3 + runtime + + + org.apache.logging.log4j + log4j-core + 2.25.3 + runtime + + + org.apache.logging.log4j + log4j-slf4j2-impl + 2.25.3 + runtime + + + org.apache.logging.log4j + log4j-iostreams + 2.25.3 + runtime + + + org.apache.logging.log4j + log4j-jul + 2.25.3 + runtime + + + net.kyori + ansi + 1.1.1 + runtime + + + io.netty + netty-codec + 4.2.15.Final + runtime + + + io.netty + netty-codec-haproxy + 4.2.15.Final + runtime + + + io.netty + netty-codec-http + 4.2.15.Final + runtime + + + io.netty + netty-handler + 4.2.15.Final + runtime + + + io.netty + netty-transport-native-epoll + 4.2.15.Final + runtime + + + io.netty + netty-transport-native-epoll + 4.2.15.Final + linux-x86_64 + runtime + + + io.netty + netty-transport-native-epoll + 4.2.15.Final + linux-aarch_64 + runtime + + + io.netty + netty-transport-native-io_uring + 4.2.15.Final + runtime + + + io.netty + netty-transport-native-io_uring + 4.2.15.Final + linux-x86_64 + runtime + + + io.netty + netty-transport-native-io_uring + 4.2.15.Final + linux-aarch_64 + runtime + + + io.netty + netty-transport-native-kqueue + 4.2.15.Final + runtime + + + io.netty + netty-transport-native-kqueue + 4.2.15.Final + osx-x86_64 + runtime + + + io.netty + netty-transport-native-kqueue + 4.2.15.Final + osx-aarch_64 + runtime + + + net.sf.jopt-simple + jopt-simple + 5.0.4 + runtime + + + net.minecrell + terminalconsoleappender + 1.3.0 + runtime + + + it.unimi.dsi + fastutil + 8.5.15 + runtime + + + net.kyori + adventure-text-serializer-json-legacy-impl + 4.26.1 + runtime + + + net.kyori + adventure-platform-facet + 4.4.1 + runtime + + + com.spotify + completable-futures + 0.3.6 + runtime + + + com.electronwill.night-config + toml + 3.8.3 + runtime + + + org.bstats + bstats-base + 3.1.0 + runtime + + + org.lanternpowered + lmbda + 2.0.0 + runtime + + + org.ow2.asm + asm + 9.9.1 + runtime + + + space.vectrix.flare + flare + 2.0.1 + runtime + + + space.vectrix.flare + flare-fastutil + 2.0.1 + runtime + + + org.jline + jline-terminal-jansi + 3.30.6 + runtime + + + com.lmax + disruptor + 4.0.0 + runtime + + + diff --git a/local-repo/com/velocitypowered/velocity-proxy/3.5.0-SNAPSHOT/velocity-proxy-3.5.0-SNAPSHOT.jar b/local-repo/com/velocitypowered/velocity-proxy/3.5.0-SNAPSHOT/velocity-proxy-3.5.0-SNAPSHOT.jar new file mode 100644 index 00000000..a49331e9 Binary files /dev/null and b/local-repo/com/velocitypowered/velocity-proxy/3.5.0-SNAPSHOT/velocity-proxy-3.5.0-SNAPSHOT.jar differ diff --git a/local-repo/com/velocitypowered/velocity-proxy/3.5.0-SNAPSHOT/velocity-proxy-3.5.0-SNAPSHOT.pom b/local-repo/com/velocitypowered/velocity-proxy/3.5.0-SNAPSHOT/velocity-proxy-3.5.0-SNAPSHOT.pom new file mode 100644 index 00000000..e0326c3e --- /dev/null +++ b/local-repo/com/velocitypowered/velocity-proxy/3.5.0-SNAPSHOT/velocity-proxy-3.5.0-SNAPSHOT.pom @@ -0,0 +1,250 @@ + + + + + + + + 4.0.0 + com.velocitypowered + velocity-proxy + 3.5.0-SNAPSHOT + Velocity + The modern, next-generation Minecraft server proxy + https://papermc.io/software/velocity + + scm:git:https://github.com/PaperMC/Velocity.git + scm:git:https://github.com/PaperMC/Velocity.git + https://github.com/PaperMC/Velocity + + + + + net.kyori + adventure-bom + 4.26.1 + pom + import + + + + + + com.velocitypowered + velocity-api + 3.5.0-SNAPSHOT + runtime + + + com.velocitypowered + velocity-native + 3.5.0-SNAPSHOT + runtime + + + org.apache.logging.log4j + log4j-api + 2.25.3 + runtime + + + org.apache.logging.log4j + log4j-core + 2.25.3 + runtime + + + org.apache.logging.log4j + log4j-slf4j2-impl + 2.25.3 + runtime + + + org.apache.logging.log4j + log4j-iostreams + 2.25.3 + runtime + + + org.apache.logging.log4j + log4j-jul + 2.25.3 + runtime + + + net.kyori + ansi + 1.1.1 + runtime + + + io.netty + netty-codec + 4.2.15.Final + runtime + + + io.netty + netty-codec-haproxy + 4.2.15.Final + runtime + + + io.netty + netty-codec-http + 4.2.15.Final + runtime + + + io.netty + netty-handler + 4.2.15.Final + runtime + + + io.netty + netty-transport-native-epoll + 4.2.15.Final + runtime + + + io.netty + netty-transport-native-epoll + 4.2.15.Final + linux-x86_64 + runtime + + + io.netty + netty-transport-native-epoll + 4.2.15.Final + linux-aarch_64 + runtime + + + io.netty + netty-transport-native-io_uring + 4.2.15.Final + runtime + + + io.netty + netty-transport-native-io_uring + 4.2.15.Final + linux-x86_64 + runtime + + + io.netty + netty-transport-native-io_uring + 4.2.15.Final + linux-aarch_64 + runtime + + + io.netty + netty-transport-native-kqueue + 4.2.15.Final + runtime + + + io.netty + netty-transport-native-kqueue + 4.2.15.Final + osx-x86_64 + runtime + + + io.netty + netty-transport-native-kqueue + 4.2.15.Final + osx-aarch_64 + runtime + + + net.sf.jopt-simple + jopt-simple + 5.0.4 + runtime + + + net.minecrell + terminalconsoleappender + 1.3.0 + runtime + + + it.unimi.dsi + fastutil + 8.5.15 + runtime + + + net.kyori + adventure-text-serializer-json-legacy-impl + 4.26.1 + runtime + + + net.kyori + adventure-platform-facet + 4.4.1 + runtime + + + com.spotify + completable-futures + 0.3.6 + runtime + + + com.electronwill.night-config + toml + 3.8.3 + runtime + + + org.bstats + bstats-base + 3.1.0 + runtime + + + org.lanternpowered + lmbda + 2.0.0 + runtime + + + org.ow2.asm + asm + 9.9.1 + runtime + + + space.vectrix.flare + flare + 2.0.1 + runtime + + + space.vectrix.flare + flare-fastutil + 2.0.1 + runtime + + + org.jline + jline-terminal-jansi + 3.30.6 + runtime + + + com.lmax + disruptor + 4.0.0 + runtime + + + diff --git a/local-repo/com/velocitypowered/velocity-proxy/4.1.2-SNAPSHOT/maven-metadata.xml b/local-repo/com/velocitypowered/velocity-proxy/4.1.2-SNAPSHOT/maven-metadata.xml new file mode 100644 index 00000000..ea80889c --- /dev/null +++ b/local-repo/com/velocitypowered/velocity-proxy/4.1.2-SNAPSHOT/maven-metadata.xml @@ -0,0 +1,42 @@ + + + com.velocitypowered + velocity-proxy + + 20260915173520 + + 20260915.173520 + 1 + + + + jar + 4.1.2-20260915.173520-1 + 20260915173520 + + + javadoc + jar + 4.1.2-20260915.173520-1 + 20260915173520 + + + pom + 4.1.2-20260915.173520-1 + 20260915173520 + + + sources + jar + 4.1.2-20260915.173520-1 + 20260915173520 + + + module + 4.1.2-20260915.173520-1 + 20260915173520 + + + + 4.1.2-SNAPSHOT + diff --git a/local-repo/com/velocitypowered/velocity-proxy/4.1.2-SNAPSHOT/velocity-proxy-4.1.2-20260915.173520-1.jar b/local-repo/com/velocitypowered/velocity-proxy/4.1.2-SNAPSHOT/velocity-proxy-4.1.2-20260915.173520-1.jar new file mode 100644 index 00000000..c6b5d664 Binary files /dev/null and b/local-repo/com/velocitypowered/velocity-proxy/4.1.2-SNAPSHOT/velocity-proxy-4.1.2-20260915.173520-1.jar differ diff --git a/local-repo/com/velocitypowered/velocity-proxy/4.1.2-SNAPSHOT/velocity-proxy-4.1.2-20260915.173520-1.module b/local-repo/com/velocitypowered/velocity-proxy/4.1.2-SNAPSHOT/velocity-proxy-4.1.2-20260915.173520-1.module new file mode 100644 index 00000000..433938f0 --- /dev/null +++ b/local-repo/com/velocitypowered/velocity-proxy/4.1.2-SNAPSHOT/velocity-proxy-4.1.2-20260915.173520-1.module @@ -0,0 +1,398 @@ +{ + "formatVersion": "1.1", + "component": { + "group": "com.velocitypowered", + "module": "velocity-proxy", + "version": "4.1.2-SNAPSHOT", + "attributes": { + "org.gradle.status": "integration" + } + }, + "createdBy": { + "gradle": { + "version": "9.6.1" + } + }, + "variants": [ + { + "name": "apiElements", + "attributes": { + "org.gradle.category": "library", + "org.gradle.dependency.bundling": "external", + "org.gradle.jvm.version": 25, + "org.gradle.libraryelements": "jar", + "org.gradle.usage": "java-api" + }, + "files": [ + { + "name": "velocity-proxy-4.1.2-SNAPSHOT.jar", + "url": "velocity-proxy-4.1.2-SNAPSHOT.jar", + "size": 931056, + "sha512": "279556f7b5bbdebb4e6a84c86599639001fb0cdd1343988fc2c8fa99c4621c05756d1ad850cc2be958d86985e0ffddd9f751e8222279e629e9fcfcbec6945a61", + "sha256": "a85b970676163841a2fa3c4bf4c2844b4627f40be252f625cbf50b44fca5a006", + "sha1": "7a14853816318ea22839fe7bc6e5f2594069434c", + "md5": "d4e592966f3b49d40d3fc39689ad7767" + } + ] + }, + { + "name": "runtimeElements", + "attributes": { + "org.gradle.category": "library", + "org.gradle.dependency.bundling": "external", + "org.gradle.jvm.version": 25, + "org.gradle.libraryelements": "jar", + "org.gradle.usage": "java-runtime" + }, + "dependencies": [ + { + "group": "com.velocitypowered", + "module": "velocity-api", + "version": { + "requires": "4.1.2-SNAPSHOT" + } + }, + { + "group": "com.velocitypowered", + "module": "velocity-native", + "version": { + "requires": "4.1.2-SNAPSHOT" + } + }, + { + "group": "org.apache.logging.log4j", + "module": "log4j-api", + "version": { + "requires": "2.26.1" + } + }, + { + "group": "org.apache.logging.log4j", + "module": "log4j-core", + "version": { + "requires": "2.26.1" + } + }, + { + "group": "org.apache.logging.log4j", + "module": "log4j-slf4j2-impl", + "version": { + "requires": "2.26.1" + } + }, + { + "group": "org.apache.logging.log4j", + "module": "log4j-iostreams", + "version": { + "requires": "2.26.1" + } + }, + { + "group": "org.apache.logging.log4j", + "module": "log4j-jul", + "version": { + "requires": "2.26.1" + } + }, + { + "group": "net.kyori", + "module": "ansi", + "version": { + "requires": "1.1.1" + } + }, + { + "group": "io.netty", + "module": "netty-codec", + "version": { + "requires": "4.2.18.Final" + } + }, + { + "group": "io.netty", + "module": "netty-codec-haproxy", + "version": { + "requires": "4.2.18.Final" + } + }, + { + "group": "io.netty", + "module": "netty-codec-http", + "version": { + "requires": "4.2.18.Final" + } + }, + { + "group": "io.netty", + "module": "netty-handler", + "version": { + "requires": "4.2.18.Final" + } + }, + { + "group": "io.netty", + "module": "netty-transport-native-epoll", + "version": { + "requires": "4.2.18.Final" + } + }, + { + "group": "io.netty", + "module": "netty-transport-native-epoll", + "version": { + "requires": "4.2.18.Final" + }, + "thirdPartyCompatibility": { + "artifactSelector": { + "name": "netty-transport-native-epoll", + "type": "jar", + "extension": "jar", + "classifier": "linux-x86_64" + } + } + }, + { + "group": "io.netty", + "module": "netty-transport-native-epoll", + "version": { + "requires": "4.2.18.Final" + }, + "thirdPartyCompatibility": { + "artifactSelector": { + "name": "netty-transport-native-epoll", + "type": "jar", + "extension": "jar", + "classifier": "linux-aarch_64" + } + } + }, + { + "group": "io.netty", + "module": "netty-transport-native-io_uring", + "version": { + "requires": "4.2.18.Final" + } + }, + { + "group": "io.netty", + "module": "netty-transport-native-io_uring", + "version": { + "requires": "4.2.18.Final" + }, + "thirdPartyCompatibility": { + "artifactSelector": { + "name": "netty-transport-native-io_uring", + "type": "jar", + "extension": "jar", + "classifier": "linux-x86_64" + } + } + }, + { + "group": "io.netty", + "module": "netty-transport-native-io_uring", + "version": { + "requires": "4.2.18.Final" + }, + "thirdPartyCompatibility": { + "artifactSelector": { + "name": "netty-transport-native-io_uring", + "type": "jar", + "extension": "jar", + "classifier": "linux-aarch_64" + } + } + }, + { + "group": "io.netty", + "module": "netty-transport-native-kqueue", + "version": { + "requires": "4.2.18.Final" + } + }, + { + "group": "io.netty", + "module": "netty-transport-native-kqueue", + "version": { + "requires": "4.2.18.Final" + }, + "thirdPartyCompatibility": { + "artifactSelector": { + "name": "netty-transport-native-kqueue", + "type": "jar", + "extension": "jar", + "classifier": "osx-x86_64" + } + } + }, + { + "group": "io.netty", + "module": "netty-transport-native-kqueue", + "version": { + "requires": "4.2.18.Final" + }, + "thirdPartyCompatibility": { + "artifactSelector": { + "name": "netty-transport-native-kqueue", + "type": "jar", + "extension": "jar", + "classifier": "osx-aarch_64" + } + } + }, + { + "group": "net.sf.jopt-simple", + "module": "jopt-simple", + "version": { + "requires": "5.0.4" + } + }, + { + "group": "net.minecrell", + "module": "terminalconsoleappender", + "version": { + "requires": "1.3.0" + } + }, + { + "group": "it.unimi.dsi", + "module": "fastutil", + "version": { + "requires": "8.5.19" + } + }, + { + "group": "net.kyori", + "module": "adventure-bom", + "version": { + "requires": "5.2.0" + }, + "attributes": { + "org.gradle.category": "platform" + } + }, + { + "group": "net.kyori", + "module": "adventure-text-serializer-json-legacy-impl", + "version": { + "requires": "5.2.0" + } + }, + { + "group": "com.spotify", + "module": "completable-futures", + "version": { + "requires": "0.3.6" + } + }, + { + "group": "com.electronwill.night-config", + "module": "toml", + "version": { + "requires": "3.9.0" + } + }, + { + "group": "org.bstats", + "module": "bstats-base", + "version": { + "requires": "3.2.1" + } + }, + { + "group": "org.lanternpowered", + "module": "lmbda", + "version": { + "requires": "3.0.0" + } + }, + { + "group": "org.ow2.asm", + "module": "asm", + "version": { + "requires": "9.10.1" + } + }, + { + "group": "space.vectrix.flare", + "module": "flare", + "version": { + "requires": "2.0.1" + } + }, + { + "group": "space.vectrix.flare", + "module": "flare-fastutil", + "version": { + "requires": "2.0.1" + } + }, + { + "group": "org.jline", + "module": "jline-terminal-jni", + "version": { + "requires": "4.3.1" + } + }, + { + "group": "com.lmax", + "module": "disruptor", + "version": { + "requires": "4.0.0" + } + } + ], + "files": [ + { + "name": "velocity-proxy-4.1.2-SNAPSHOT.jar", + "url": "velocity-proxy-4.1.2-SNAPSHOT.jar", + "size": 931056, + "sha512": "279556f7b5bbdebb4e6a84c86599639001fb0cdd1343988fc2c8fa99c4621c05756d1ad850cc2be958d86985e0ffddd9f751e8222279e629e9fcfcbec6945a61", + "sha256": "a85b970676163841a2fa3c4bf4c2844b4627f40be252f625cbf50b44fca5a006", + "sha1": "7a14853816318ea22839fe7bc6e5f2594069434c", + "md5": "d4e592966f3b49d40d3fc39689ad7767" + } + ] + }, + { + "name": "javadocElements", + "attributes": { + "org.gradle.category": "documentation", + "org.gradle.dependency.bundling": "external", + "org.gradle.docstype": "javadoc", + "org.gradle.usage": "java-runtime" + }, + "files": [ + { + "name": "velocity-proxy-4.1.2-SNAPSHOT-javadoc.jar", + "url": "velocity-proxy-4.1.2-SNAPSHOT-javadoc.jar", + "size": 6213635, + "sha512": "87de77f84dfa9a923906102dbcea0d818dfe3a43ab82dd8c95c89a3cad1ba12f506fa0dce3b9491ab3a0b4fc71b8bc6c2c07e441ea658dacdc70a6ccc4da39f9", + "sha256": "1976d3ff449ddff4455046c7b3aa2e5e930d811186ef8a701d465b2b328089ca", + "sha1": "853fcf43daad8a4650c499d736468b7fb0856550", + "md5": "64cb8da0d285ad276c9153eb1fae041f" + } + ] + }, + { + "name": "sourcesElements", + "attributes": { + "org.gradle.category": "documentation", + "org.gradle.dependency.bundling": "external", + "org.gradle.docstype": "sources", + "org.gradle.usage": "java-runtime" + }, + "files": [ + { + "name": "velocity-proxy-4.1.2-SNAPSHOT-sources.jar", + "url": "velocity-proxy-4.1.2-SNAPSHOT-sources.jar", + "size": 606259, + "sha512": "d74981a4ad7a76c554d899c5f0218301b578827e5b65c36b200e86e54953571aa7a4f503ccb2a65a114983392e579247425c721d20b349fc345dd6231a61208a", + "sha256": "259c49c473569b079d87b5106bbbfd68b765576156d9eececc0f67888e379226", + "sha1": "d8c97f22694e07f6f4bd06e660687adb0a974331", + "md5": "cdd899a8e7345d332823eeb875877949" + } + ] + } + ] +} diff --git a/local-repo/com/velocitypowered/velocity-proxy/4.1.2-SNAPSHOT/velocity-proxy-4.1.2-20260915.173520-1.pom b/local-repo/com/velocitypowered/velocity-proxy/4.1.2-SNAPSHOT/velocity-proxy-4.1.2-20260915.173520-1.pom new file mode 100644 index 00000000..5509a50f --- /dev/null +++ b/local-repo/com/velocitypowered/velocity-proxy/4.1.2-SNAPSHOT/velocity-proxy-4.1.2-20260915.173520-1.pom @@ -0,0 +1,244 @@ + + + + + + + + 4.0.0 + com.velocitypowered + velocity-proxy + 4.1.2-SNAPSHOT + Velocity + The modern, next-generation Minecraft server proxy + https://papermc.io/software/velocity + + scm:git:https://github.com/PaperMC/Velocity.git + scm:git:https://github.com/PaperMC/Velocity.git + https://github.com/PaperMC/Velocity + + + + + net.kyori + adventure-bom + 5.2.0 + pom + import + + + + + + com.velocitypowered + velocity-api + 4.1.2-SNAPSHOT + runtime + + + com.velocitypowered + velocity-native + 4.1.2-SNAPSHOT + runtime + + + org.apache.logging.log4j + log4j-api + 2.26.1 + runtime + + + org.apache.logging.log4j + log4j-core + 2.26.1 + runtime + + + org.apache.logging.log4j + log4j-slf4j2-impl + 2.26.1 + runtime + + + org.apache.logging.log4j + log4j-iostreams + 2.26.1 + runtime + + + org.apache.logging.log4j + log4j-jul + 2.26.1 + runtime + + + net.kyori + ansi + 1.1.1 + runtime + + + io.netty + netty-codec + 4.2.18.Final + runtime + + + io.netty + netty-codec-haproxy + 4.2.18.Final + runtime + + + io.netty + netty-codec-http + 4.2.18.Final + runtime + + + io.netty + netty-handler + 4.2.18.Final + runtime + + + io.netty + netty-transport-native-epoll + 4.2.18.Final + runtime + + + io.netty + netty-transport-native-epoll + 4.2.18.Final + linux-x86_64 + runtime + + + io.netty + netty-transport-native-epoll + 4.2.18.Final + linux-aarch_64 + runtime + + + io.netty + netty-transport-native-io_uring + 4.2.18.Final + runtime + + + io.netty + netty-transport-native-io_uring + 4.2.18.Final + linux-x86_64 + runtime + + + io.netty + netty-transport-native-io_uring + 4.2.18.Final + linux-aarch_64 + runtime + + + io.netty + netty-transport-native-kqueue + 4.2.18.Final + runtime + + + io.netty + netty-transport-native-kqueue + 4.2.18.Final + osx-x86_64 + runtime + + + io.netty + netty-transport-native-kqueue + 4.2.18.Final + osx-aarch_64 + runtime + + + net.sf.jopt-simple + jopt-simple + 5.0.4 + runtime + + + net.minecrell + terminalconsoleappender + 1.3.0 + runtime + + + it.unimi.dsi + fastutil + 8.5.19 + runtime + + + net.kyori + adventure-text-serializer-json-legacy-impl + 5.2.0 + runtime + + + com.spotify + completable-futures + 0.3.6 + runtime + + + com.electronwill.night-config + toml + 3.9.0 + runtime + + + org.bstats + bstats-base + 3.2.1 + runtime + + + org.lanternpowered + lmbda + 3.0.0 + runtime + + + org.ow2.asm + asm + 9.10.1 + runtime + + + space.vectrix.flare + flare + 2.0.1 + runtime + + + space.vectrix.flare + flare-fastutil + 2.0.1 + runtime + + + org.jline + jline-terminal-jni + 4.3.1 + runtime + + + com.lmax + disruptor + 4.0.0 + runtime + + + diff --git a/local-repo/com/velocitypowered/velocity-proxy/4.1.2-SNAPSHOT/velocity-proxy-4.1.2-SNAPSHOT.jar b/local-repo/com/velocitypowered/velocity-proxy/4.1.2-SNAPSHOT/velocity-proxy-4.1.2-SNAPSHOT.jar new file mode 100644 index 00000000..c6b5d664 Binary files /dev/null and b/local-repo/com/velocitypowered/velocity-proxy/4.1.2-SNAPSHOT/velocity-proxy-4.1.2-SNAPSHOT.jar differ diff --git a/local-repo/com/velocitypowered/velocity-proxy/4.1.2-SNAPSHOT/velocity-proxy-4.1.2-SNAPSHOT.pom b/local-repo/com/velocitypowered/velocity-proxy/4.1.2-SNAPSHOT/velocity-proxy-4.1.2-SNAPSHOT.pom new file mode 100644 index 00000000..5509a50f --- /dev/null +++ b/local-repo/com/velocitypowered/velocity-proxy/4.1.2-SNAPSHOT/velocity-proxy-4.1.2-SNAPSHOT.pom @@ -0,0 +1,244 @@ + + + + + + + + 4.0.0 + com.velocitypowered + velocity-proxy + 4.1.2-SNAPSHOT + Velocity + The modern, next-generation Minecraft server proxy + https://papermc.io/software/velocity + + scm:git:https://github.com/PaperMC/Velocity.git + scm:git:https://github.com/PaperMC/Velocity.git + https://github.com/PaperMC/Velocity + + + + + net.kyori + adventure-bom + 5.2.0 + pom + import + + + + + + com.velocitypowered + velocity-api + 4.1.2-SNAPSHOT + runtime + + + com.velocitypowered + velocity-native + 4.1.2-SNAPSHOT + runtime + + + org.apache.logging.log4j + log4j-api + 2.26.1 + runtime + + + org.apache.logging.log4j + log4j-core + 2.26.1 + runtime + + + org.apache.logging.log4j + log4j-slf4j2-impl + 2.26.1 + runtime + + + org.apache.logging.log4j + log4j-iostreams + 2.26.1 + runtime + + + org.apache.logging.log4j + log4j-jul + 2.26.1 + runtime + + + net.kyori + ansi + 1.1.1 + runtime + + + io.netty + netty-codec + 4.2.18.Final + runtime + + + io.netty + netty-codec-haproxy + 4.2.18.Final + runtime + + + io.netty + netty-codec-http + 4.2.18.Final + runtime + + + io.netty + netty-handler + 4.2.18.Final + runtime + + + io.netty + netty-transport-native-epoll + 4.2.18.Final + runtime + + + io.netty + netty-transport-native-epoll + 4.2.18.Final + linux-x86_64 + runtime + + + io.netty + netty-transport-native-epoll + 4.2.18.Final + linux-aarch_64 + runtime + + + io.netty + netty-transport-native-io_uring + 4.2.18.Final + runtime + + + io.netty + netty-transport-native-io_uring + 4.2.18.Final + linux-x86_64 + runtime + + + io.netty + netty-transport-native-io_uring + 4.2.18.Final + linux-aarch_64 + runtime + + + io.netty + netty-transport-native-kqueue + 4.2.18.Final + runtime + + + io.netty + netty-transport-native-kqueue + 4.2.18.Final + osx-x86_64 + runtime + + + io.netty + netty-transport-native-kqueue + 4.2.18.Final + osx-aarch_64 + runtime + + + net.sf.jopt-simple + jopt-simple + 5.0.4 + runtime + + + net.minecrell + terminalconsoleappender + 1.3.0 + runtime + + + it.unimi.dsi + fastutil + 8.5.19 + runtime + + + net.kyori + adventure-text-serializer-json-legacy-impl + 5.2.0 + runtime + + + com.spotify + completable-futures + 0.3.6 + runtime + + + com.electronwill.night-config + toml + 3.9.0 + runtime + + + org.bstats + bstats-base + 3.2.1 + runtime + + + org.lanternpowered + lmbda + 3.0.0 + runtime + + + org.ow2.asm + asm + 9.10.1 + runtime + + + space.vectrix.flare + flare + 2.0.1 + runtime + + + space.vectrix.flare + flare-fastutil + 2.0.1 + runtime + + + org.jline + jline-terminal-jni + 4.3.1 + runtime + + + com.lmax + disruptor + 4.0.0 + runtime + + + diff --git a/local-repo/net/elytrium/commons/config/1.2.3/config-1.2.3.jar b/local-repo/net/elytrium/commons/config/1.2.3/config-1.2.3.jar new file mode 100644 index 00000000..16e347dc Binary files /dev/null and b/local-repo/net/elytrium/commons/config/1.2.3/config-1.2.3.jar differ diff --git a/local-repo/net/elytrium/commons/config/1.2.3/config-1.2.3.module b/local-repo/net/elytrium/commons/config/1.2.3/config-1.2.3.module new file mode 100644 index 00000000..8c702acd --- /dev/null +++ b/local-repo/net/elytrium/commons/config/1.2.3/config-1.2.3.module @@ -0,0 +1,60 @@ +{ + "formatVersion": "1.1", + "component": { + "group": "net.elytrium.commons", + "module": "config", + "version": "1.2.3", + "attributes": { + "org.gradle.status": "release" + } + }, + "createdBy": { + "gradle": { + "version": "7.4.1" + } + }, + "variants": [ + { + "name": "apiElements", + "attributes": { + "org.gradle.category": "library", + "org.gradle.dependency.bundling": "external", + "org.gradle.jvm.version": 8, + "org.gradle.libraryelements": "jar", + "org.gradle.usage": "java-api" + }, + "files": [ + { + "name": "config-1.2.3.jar", + "url": "config-1.2.3.jar", + "size": 28372, + "sha512": "076561f3e65b1c4668d074bb7b876f33b4d3d636514e04d1a568b8fce74d8bcb619db0a6b571ae319aed259ae3b8f2a89b095aead55f3a6379ea13e56483d745", + "sha256": "14a6e2b5b55a596e6290b8b234ac3056f856916acc8a4c57c014fbe259118e6c", + "sha1": "94090a777cbf8c098028d4267cb4a3a1db55705c", + "md5": "d35b83a7875265d4afd723bd55633695" + } + ] + }, + { + "name": "runtimeElements", + "attributes": { + "org.gradle.category": "library", + "org.gradle.dependency.bundling": "external", + "org.gradle.jvm.version": 8, + "org.gradle.libraryelements": "jar", + "org.gradle.usage": "java-runtime" + }, + "files": [ + { + "name": "config-1.2.3.jar", + "url": "config-1.2.3.jar", + "size": 28372, + "sha512": "076561f3e65b1c4668d074bb7b876f33b4d3d636514e04d1a568b8fce74d8bcb619db0a6b571ae319aed259ae3b8f2a89b095aead55f3a6379ea13e56483d745", + "sha256": "14a6e2b5b55a596e6290b8b234ac3056f856916acc8a4c57c014fbe259118e6c", + "sha1": "94090a777cbf8c098028d4267cb4a3a1db55705c", + "md5": "d35b83a7875265d4afd723bd55633695" + } + ] + } + ] +} diff --git a/local-repo/net/elytrium/commons/config/1.2.3/config-1.2.3.pom b/local-repo/net/elytrium/commons/config/1.2.3/config-1.2.3.pom new file mode 100644 index 00000000..b6a4cd38 --- /dev/null +++ b/local-repo/net/elytrium/commons/config/1.2.3/config-1.2.3.pom @@ -0,0 +1,13 @@ + + + + + + + + 4.0.0 + net.elytrium.commons + config + 1.2.3 + diff --git a/local-repo/net/elytrium/commons/kyori/1.2.3/kyori-1.2.3.jar b/local-repo/net/elytrium/commons/kyori/1.2.3/kyori-1.2.3.jar new file mode 100644 index 00000000..14b6e369 Binary files /dev/null and b/local-repo/net/elytrium/commons/kyori/1.2.3/kyori-1.2.3.jar differ diff --git a/local-repo/net/elytrium/commons/kyori/1.2.3/kyori-1.2.3.module b/local-repo/net/elytrium/commons/kyori/1.2.3/kyori-1.2.3.module new file mode 100644 index 00000000..b50e64f7 --- /dev/null +++ b/local-repo/net/elytrium/commons/kyori/1.2.3/kyori-1.2.3.module @@ -0,0 +1,60 @@ +{ + "formatVersion": "1.1", + "component": { + "group": "net.elytrium.commons", + "module": "kyori", + "version": "1.2.3", + "attributes": { + "org.gradle.status": "release" + } + }, + "createdBy": { + "gradle": { + "version": "7.4.1" + } + }, + "variants": [ + { + "name": "apiElements", + "attributes": { + "org.gradle.category": "library", + "org.gradle.dependency.bundling": "external", + "org.gradle.jvm.version": 8, + "org.gradle.libraryelements": "jar", + "org.gradle.usage": "java-api" + }, + "files": [ + { + "name": "kyori-1.2.3.jar", + "url": "kyori-1.2.3.jar", + "size": 3480, + "sha512": "a8bb818c182ac7e03a01ddd433d10eac9a031d35c4a1be7e94b7c848141f7617472f8ae91629ba599cba410805043e7c7c98095ce07a22bf02dba6f940927572", + "sha256": "c981ccee5f6ec465b07da6f4bd4ea8515c18585d81b0a6cd1da3d458c579a13d", + "sha1": "6e4132b3cd317a0813e2926412dd5c6f6a6fb0e8", + "md5": "7b463a5c4359323b7cd79e388e316422" + } + ] + }, + { + "name": "runtimeElements", + "attributes": { + "org.gradle.category": "library", + "org.gradle.dependency.bundling": "external", + "org.gradle.jvm.version": 8, + "org.gradle.libraryelements": "jar", + "org.gradle.usage": "java-runtime" + }, + "files": [ + { + "name": "kyori-1.2.3.jar", + "url": "kyori-1.2.3.jar", + "size": 3480, + "sha512": "a8bb818c182ac7e03a01ddd433d10eac9a031d35c4a1be7e94b7c848141f7617472f8ae91629ba599cba410805043e7c7c98095ce07a22bf02dba6f940927572", + "sha256": "c981ccee5f6ec465b07da6f4bd4ea8515c18585d81b0a6cd1da3d458c579a13d", + "sha1": "6e4132b3cd317a0813e2926412dd5c6f6a6fb0e8", + "md5": "7b463a5c4359323b7cd79e388e316422" + } + ] + } + ] +} diff --git a/local-repo/net/elytrium/commons/kyori/1.2.3/kyori-1.2.3.pom b/local-repo/net/elytrium/commons/kyori/1.2.3/kyori-1.2.3.pom new file mode 100644 index 00000000..1c3b1d9f --- /dev/null +++ b/local-repo/net/elytrium/commons/kyori/1.2.3/kyori-1.2.3.pom @@ -0,0 +1,13 @@ + + + + + + + + 4.0.0 + net.elytrium.commons + kyori + 1.2.3 + diff --git a/local-repo/net/elytrium/commons/utils/1.2.0/utils-1.2.0.jar b/local-repo/net/elytrium/commons/utils/1.2.0/utils-1.2.0.jar new file mode 100644 index 00000000..03e16590 Binary files /dev/null and b/local-repo/net/elytrium/commons/utils/1.2.0/utils-1.2.0.jar differ diff --git a/local-repo/net/elytrium/commons/utils/1.2.0/utils-1.2.0.module b/local-repo/net/elytrium/commons/utils/1.2.0/utils-1.2.0.module new file mode 100644 index 00000000..4dbea4a3 --- /dev/null +++ b/local-repo/net/elytrium/commons/utils/1.2.0/utils-1.2.0.module @@ -0,0 +1,60 @@ +{ + "formatVersion": "1.1", + "component": { + "group": "net.elytrium.commons", + "module": "utils", + "version": "1.2.0", + "attributes": { + "org.gradle.status": "release" + } + }, + "createdBy": { + "gradle": { + "version": "7.4.1" + } + }, + "variants": [ + { + "name": "apiElements", + "attributes": { + "org.gradle.category": "library", + "org.gradle.dependency.bundling": "external", + "org.gradle.jvm.version": 8, + "org.gradle.libraryelements": "jar", + "org.gradle.usage": "java-api" + }, + "files": [ + { + "name": "utils-1.2.0.jar", + "url": "utils-1.2.0.jar", + "size": 3634, + "sha512": "c646816a381b78582b820716399d0f7588a0c0b85535d44ac772afa6453292d6e0aa577331f6c49ae20fb53fddc378e6439fdae954fddc9567354ac7f66db9ea", + "sha256": "d07b1fe519f443ef0e4fd3f343f0ff4c0679e7ff2c0116a6c0f61d48eee9c4d6", + "sha1": "c1d08701c148d39bf82e244eeb715d15b3e5174a", + "md5": "d4c39fd9a991e491c530506f6e9b2714" + } + ] + }, + { + "name": "runtimeElements", + "attributes": { + "org.gradle.category": "library", + "org.gradle.dependency.bundling": "external", + "org.gradle.jvm.version": 8, + "org.gradle.libraryelements": "jar", + "org.gradle.usage": "java-runtime" + }, + "files": [ + { + "name": "utils-1.2.0.jar", + "url": "utils-1.2.0.jar", + "size": 3634, + "sha512": "c646816a381b78582b820716399d0f7588a0c0b85535d44ac772afa6453292d6e0aa577331f6c49ae20fb53fddc378e6439fdae954fddc9567354ac7f66db9ea", + "sha256": "d07b1fe519f443ef0e4fd3f343f0ff4c0679e7ff2c0116a6c0f61d48eee9c4d6", + "sha1": "c1d08701c148d39bf82e244eeb715d15b3e5174a", + "md5": "d4c39fd9a991e491c530506f6e9b2714" + } + ] + } + ] +} diff --git a/local-repo/net/elytrium/commons/utils/1.2.0/utils-1.2.0.pom b/local-repo/net/elytrium/commons/utils/1.2.0/utils-1.2.0.pom new file mode 100644 index 00000000..46351eb0 --- /dev/null +++ b/local-repo/net/elytrium/commons/utils/1.2.0/utils-1.2.0.pom @@ -0,0 +1,13 @@ + + + + + + + + 4.0.0 + net.elytrium.commons + utils + 1.2.0 + diff --git a/local-repo/net/elytrium/commons/utils/1.2.3/utils-1.2.3.jar b/local-repo/net/elytrium/commons/utils/1.2.3/utils-1.2.3.jar new file mode 100644 index 00000000..14d19118 Binary files /dev/null and b/local-repo/net/elytrium/commons/utils/1.2.3/utils-1.2.3.jar differ diff --git a/local-repo/net/elytrium/commons/utils/1.2.3/utils-1.2.3.module b/local-repo/net/elytrium/commons/utils/1.2.3/utils-1.2.3.module new file mode 100644 index 00000000..8f0eaa14 --- /dev/null +++ b/local-repo/net/elytrium/commons/utils/1.2.3/utils-1.2.3.module @@ -0,0 +1,60 @@ +{ + "formatVersion": "1.1", + "component": { + "group": "net.elytrium.commons", + "module": "utils", + "version": "1.2.3", + "attributes": { + "org.gradle.status": "release" + } + }, + "createdBy": { + "gradle": { + "version": "7.4.1" + } + }, + "variants": [ + { + "name": "apiElements", + "attributes": { + "org.gradle.category": "library", + "org.gradle.dependency.bundling": "external", + "org.gradle.jvm.version": 8, + "org.gradle.libraryelements": "jar", + "org.gradle.usage": "java-api" + }, + "files": [ + { + "name": "utils-1.2.3.jar", + "url": "utils-1.2.3.jar", + "size": 3644, + "sha512": "66ae77b898dd7943e83e0abffc3d75e02d07f325545f25c8969def18c476291301e481d0c82a5f9015034bde0f26f31afb1979e9506b4e83b3eeb5a8690e990d", + "sha256": "f5a2c21956fb28d399c51306810d9a50be75730e2bd23e36af054155cd04c2d5", + "sha1": "57d3d29ba5d35404acf2126615d8647c1392d413", + "md5": "145b3ebfb70077ec5e0641a3df9f8afc" + } + ] + }, + { + "name": "runtimeElements", + "attributes": { + "org.gradle.category": "library", + "org.gradle.dependency.bundling": "external", + "org.gradle.jvm.version": 8, + "org.gradle.libraryelements": "jar", + "org.gradle.usage": "java-runtime" + }, + "files": [ + { + "name": "utils-1.2.3.jar", + "url": "utils-1.2.3.jar", + "size": 3644, + "sha512": "66ae77b898dd7943e83e0abffc3d75e02d07f325545f25c8969def18c476291301e481d0c82a5f9015034bde0f26f31afb1979e9506b4e83b3eeb5a8690e990d", + "sha256": "f5a2c21956fb28d399c51306810d9a50be75730e2bd23e36af054155cd04c2d5", + "sha1": "57d3d29ba5d35404acf2126615d8647c1392d413", + "md5": "145b3ebfb70077ec5e0641a3df9f8afc" + } + ] + } + ] +} diff --git a/local-repo/net/elytrium/commons/utils/1.2.3/utils-1.2.3.pom b/local-repo/net/elytrium/commons/utils/1.2.3/utils-1.2.3.pom new file mode 100644 index 00000000..6259383d --- /dev/null +++ b/local-repo/net/elytrium/commons/utils/1.2.3/utils-1.2.3.pom @@ -0,0 +1,13 @@ + + + + + + + + 4.0.0 + net.elytrium.commons + utils + 1.2.3 + diff --git a/local-repo/net/elytrium/commons/velocity/1.2.3/velocity-1.2.3.jar b/local-repo/net/elytrium/commons/velocity/1.2.3/velocity-1.2.3.jar new file mode 100644 index 00000000..69d9af49 Binary files /dev/null and b/local-repo/net/elytrium/commons/velocity/1.2.3/velocity-1.2.3.jar differ diff --git a/local-repo/net/elytrium/commons/velocity/1.2.3/velocity-1.2.3.module b/local-repo/net/elytrium/commons/velocity/1.2.3/velocity-1.2.3.module new file mode 100644 index 00000000..b66e552f --- /dev/null +++ b/local-repo/net/elytrium/commons/velocity/1.2.3/velocity-1.2.3.module @@ -0,0 +1,60 @@ +{ + "formatVersion": "1.1", + "component": { + "group": "net.elytrium.commons", + "module": "velocity", + "version": "1.2.3", + "attributes": { + "org.gradle.status": "release" + } + }, + "createdBy": { + "gradle": { + "version": "7.4.1" + } + }, + "variants": [ + { + "name": "apiElements", + "attributes": { + "org.gradle.category": "library", + "org.gradle.dependency.bundling": "external", + "org.gradle.jvm.version": 11, + "org.gradle.libraryelements": "jar", + "org.gradle.usage": "java-api" + }, + "files": [ + { + "name": "velocity-1.2.3.jar", + "url": "velocity-1.2.3.jar", + "size": 3004, + "sha512": "dd278e7af8ddd54be3b0fe981a91740a7447594e2c59b18456ada8f009fd5960407e8156f768c3528b70a64011a3c6d319b354b37d39a009c80442a01a20a107", + "sha256": "d60131c120398473fb497823e9ad1a255d4d835100ed2cb492fc14f1dd609a89", + "sha1": "2d7a799bf98b005c175f6a655f16fe986e0a7bec", + "md5": "8c0ca51fc1c307527a5f59a2228484b1" + } + ] + }, + { + "name": "runtimeElements", + "attributes": { + "org.gradle.category": "library", + "org.gradle.dependency.bundling": "external", + "org.gradle.jvm.version": 11, + "org.gradle.libraryelements": "jar", + "org.gradle.usage": "java-runtime" + }, + "files": [ + { + "name": "velocity-1.2.3.jar", + "url": "velocity-1.2.3.jar", + "size": 3004, + "sha512": "dd278e7af8ddd54be3b0fe981a91740a7447594e2c59b18456ada8f009fd5960407e8156f768c3528b70a64011a3c6d319b354b37d39a009c80442a01a20a107", + "sha256": "d60131c120398473fb497823e9ad1a255d4d835100ed2cb492fc14f1dd609a89", + "sha1": "2d7a799bf98b005c175f6a655f16fe986e0a7bec", + "md5": "8c0ca51fc1c307527a5f59a2228484b1" + } + ] + } + ] +} diff --git a/local-repo/net/elytrium/commons/velocity/1.2.3/velocity-1.2.3.pom b/local-repo/net/elytrium/commons/velocity/1.2.3/velocity-1.2.3.pom new file mode 100644 index 00000000..64942fa0 --- /dev/null +++ b/local-repo/net/elytrium/commons/velocity/1.2.3/velocity-1.2.3.pom @@ -0,0 +1,13 @@ + + + + + + + + 4.0.0 + net.elytrium.commons + velocity + 1.2.3 + diff --git a/local-repo/net/elytrium/fastprepare/1.0.13/fastprepare-1.0.13.jar b/local-repo/net/elytrium/fastprepare/1.0.13/fastprepare-1.0.13.jar new file mode 100644 index 00000000..5cfb8de5 Binary files /dev/null and b/local-repo/net/elytrium/fastprepare/1.0.13/fastprepare-1.0.13.jar differ diff --git a/local-repo/net/elytrium/fastprepare/1.0.13/fastprepare-1.0.13.module b/local-repo/net/elytrium/fastprepare/1.0.13/fastprepare-1.0.13.module new file mode 100644 index 00000000..5ec76f7a --- /dev/null +++ b/local-repo/net/elytrium/fastprepare/1.0.13/fastprepare-1.0.13.module @@ -0,0 +1,78 @@ +{ + "formatVersion": "1.1", + "component": { + "group": "net.elytrium", + "module": "fastprepare", + "version": "1.0.13", + "attributes": { + "org.gradle.status": "release" + } + }, + "createdBy": { + "gradle": { + "version": "8.3" + } + }, + "variants": [ + { + "name": "apiElements", + "attributes": { + "org.gradle.category": "library", + "org.gradle.dependency.bundling": "external", + "org.gradle.jvm.version": 11, + "org.gradle.libraryelements": "jar", + "org.gradle.usage": "java-api" + }, + "dependencies": [ + { + "group": "net.elytrium.commons", + "module": "utils", + "version": { + "requires": "1.2.0" + } + } + ], + "files": [ + { + "name": "fastprepare-1.0.13.jar", + "url": "fastprepare-1.0.13.jar", + "size": 17080, + "sha512": "9f4bce65de9286f2ffe3b1f277cca3e82708841dd5d2800d2e5fad4283e37c324deac8e0ad159a121f8623650e735891049661ccf58e6e7b67b37bdee7ec4314", + "sha256": "d9d7a316ae958b334f456a26d461e07308b702a4372541d83033a119f61dd4ea", + "sha1": "5cfae7beb47a6271207da92ca705f048a63c7a91", + "md5": "1c1ea14b35fcf16a715afcc682148f77" + } + ] + }, + { + "name": "runtimeElements", + "attributes": { + "org.gradle.category": "library", + "org.gradle.dependency.bundling": "external", + "org.gradle.jvm.version": 11, + "org.gradle.libraryelements": "jar", + "org.gradle.usage": "java-runtime" + }, + "dependencies": [ + { + "group": "net.elytrium.commons", + "module": "utils", + "version": { + "requires": "1.2.0" + } + } + ], + "files": [ + { + "name": "fastprepare-1.0.13.jar", + "url": "fastprepare-1.0.13.jar", + "size": 17080, + "sha512": "9f4bce65de9286f2ffe3b1f277cca3e82708841dd5d2800d2e5fad4283e37c324deac8e0ad159a121f8623650e735891049661ccf58e6e7b67b37bdee7ec4314", + "sha256": "d9d7a316ae958b334f456a26d461e07308b702a4372541d83033a119f61dd4ea", + "sha1": "5cfae7beb47a6271207da92ca705f048a63c7a91", + "md5": "1c1ea14b35fcf16a715afcc682148f77" + } + ] + } + ] +} diff --git a/local-repo/net/elytrium/fastprepare/1.0.13/fastprepare-1.0.13.pom b/local-repo/net/elytrium/fastprepare/1.0.13/fastprepare-1.0.13.pom new file mode 100644 index 00000000..05d23296 --- /dev/null +++ b/local-repo/net/elytrium/fastprepare/1.0.13/fastprepare-1.0.13.pom @@ -0,0 +1,21 @@ + + + + + + + + 4.0.0 + net.elytrium + fastprepare + 1.0.13 + + + net.elytrium.commons + utils + 1.2.0 + compile + + + diff --git a/plugin/src/main/java/net/elytrium/limboapi/LimboAPI.java b/plugin/src/main/java/net/elytrium/limboapi/LimboAPI.java index 3f1037fd..f25d17ca 100644 --- a/plugin/src/main/java/net/elytrium/limboapi/LimboAPI.java +++ b/plugin/src/main/java/net/elytrium/limboapi/LimboAPI.java @@ -302,6 +302,17 @@ public void reload() { eventManager.register(this, new DisconnectListener(this)); eventManager.register(this, new ReloadListener(this)); + // Without this, the pre-limbo profile request plugins (e.g. Floodgate) hoisted at boot by + // postProxyInitialization() are lost on every /velocity reload: unregisterListeners() above drops the + // old EventManagerHook (and with it, the reference to their handler), and the new EventManagerHook + // created above starts with empty handler state, so those plugins' GameProfileRequestEvent handlers + // never get re-hoisted and simply stop firing until the proxy is fully restarted. + try { + this.eventManagerHook.reloadHandlers(); + } catch (IllegalAccessException e) { + LOGGER.error("Failed to reload pre-limbo profile request plugin handlers", e); + } + LOGGER.info("Loaded!"); } diff --git a/plugin/src/main/java/net/elytrium/limboapi/Settings.java b/plugin/src/main/java/net/elytrium/limboapi/Settings.java index e69294a1..00065954 100644 --- a/plugin/src/main/java/net/elytrium/limboapi/Settings.java +++ b/plugin/src/main/java/net/elytrium/limboapi/Settings.java @@ -51,8 +51,8 @@ public static class MAIN { public int MAX_CHAT_MESSAGE_LENGTH = 256; public int MAX_BRAND_NAME_LENGTH = 64; public int MAX_UNKNOWN_PACKET_LENGTH = 2048; - public int MAX_SINGLE_GENERIC_PACKET_LENGTH = 4096; - public int MAX_MULTI_GENERIC_PACKET_LENGTH = 131072; + public int MAX_SINGLE_GENERIC_PACKET_LENGTH = 262144; + public int MAX_MULTI_GENERIC_PACKET_LENGTH = 1048576; @Comment({ "Default max packet length (in bytes) that will be proceeded, other packets will be dropped.", "Can be increased with Limbo#setMaxSuppressPacketLength" diff --git a/plugin/src/main/java/net/elytrium/limboapi/injection/event/EventManagerHook.java b/plugin/src/main/java/net/elytrium/limboapi/injection/event/EventManagerHook.java index 7d04fc95..34af77a1 100644 --- a/plugin/src/main/java/net/elytrium/limboapi/injection/event/EventManagerHook.java +++ b/plugin/src/main/java/net/elytrium/limboapi/injection/event/EventManagerHook.java @@ -26,6 +26,7 @@ import com.velocitypowered.api.plugin.PluginContainer; import com.velocitypowered.api.util.GameProfile; import com.velocitypowered.proxy.event.VelocityEventManager; +import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import java.lang.invoke.MethodHandle; import java.lang.invoke.MethodHandles; import java.lang.invoke.MethodType; @@ -36,8 +37,10 @@ import java.util.Arrays; import java.util.HashSet; import java.util.List; +import java.util.Locale; import java.util.Set; import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ConcurrentHashMap; import java.util.function.Function; import net.elytrium.commons.utils.reflection.ReflectionException; import net.elytrium.limboapi.LimboAPI; @@ -52,12 +55,13 @@ public class EventManagerHook { private static final MethodHandle FIRE_METHOD; private static final MethodHandle FUTURE_FIELD; + private static final Set PROCEEDED_PROFILES = ConcurrentHashMap.newKeySet(); private final Set proceededProfiles = new HashSet<>(); private final LimboAPI plugin; private final VelocityEventManager eventManager; - private Object handlerRegistrations; - private boolean hasHandlerRegistration; + private static Object handlerRegistrations; + private static boolean hasHandlerRegistration; public EventManagerHook(LimboAPI plugin, VelocityEventManager eventManager) { this.plugin = plugin; @@ -67,7 +71,16 @@ public EventManagerHook(LimboAPI plugin, VelocityEventManager eventManager) { @Subscribe(order = PostOrder.FIRST) public EventTask onGameProfileRequest(GameProfileRequestEvent event) { GameProfile originalProfile = event.getGameProfile(); - if (this.proceededProfiles.remove(originalProfile)) { + boolean proceeded = this.proceededProfiles.remove(originalProfile); + if (originalProfile != null) { + if (originalProfile.getName() != null && PROCEEDED_PROFILES.remove(originalProfile.getName().toLowerCase(Locale.ROOT))) { + proceeded = true; + } + if (originalProfile.getId() != null && PROCEEDED_PROFILES.remove(originalProfile.getId().toString())) { + proceeded = true; + } + } + if (proceeded) { return null; } else { CompletableFuture fireFuture = new CompletableFuture<>(); @@ -82,9 +95,9 @@ public EventTask onGameProfileRequest(GameProfileRequestEvent event) { } }); - if (this.hasHandlerRegistration) { + if (hasHandlerRegistration) { try { - FIRE_METHOD.invoke(this.eventManager, fireFuture, event, 0, false, this.handlerRegistrations); + FIRE_METHOD.invoke(this.eventManager, fireFuture, event, 0, false, handlerRegistrations); } catch (Throwable e) { fireFuture.complete(event); throw new ReflectionException(e); @@ -127,18 +140,30 @@ public EventTask onKickedFromServer(KickedFromServerEvent event) { public void proceedProfile(GameProfile profile) { this.proceededProfiles.add(profile); + if (profile != null) { + if (profile.getName() != null) { + PROCEEDED_PROFILES.add(profile.getName().toLowerCase(Locale.ROOT)); + } + if (profile.getId() != null) { + PROCEEDED_PROFILES.add(profile.getId().toString()); + } + } } @SuppressWarnings("rawtypes") + @SuppressFBWarnings("ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD") public void reloadHandlers() throws IllegalAccessException { ListMultimap, ?> handlersMap = (ListMultimap, ?>) HANDLERS_BY_TYPE_FIELD.get(this.eventManager); List disabledHandlers = handlersMap.get(GameProfileRequestEvent.class); List preEvents = new ArrayList<>(); List newHandlers = new ArrayList<>(disabledHandlers); - if (this.handlerRegistrations != null) { - for (int i = 0; i < Array.getLength(this.handlerRegistrations); ++i) { - preEvents.add(Array.get(this.handlerRegistrations, i)); + if (handlerRegistrations != null) { + for (int i = 0; i < Array.getLength(handlerRegistrations); ++i) { + Object existing = Array.get(handlerRegistrations, i); + if (!preEvents.contains(existing)) { + preEvents.add(existing); + } } } @@ -146,9 +171,18 @@ public void reloadHandlers() throws IllegalAccessException { for (Object handler : disabledHandlers) { PluginContainer pluginContainer = (PluginContainer) PLUGIN_FIELD.invoke(handler); String id = pluginContainer.getDescription().getId(); - if (Settings.IMP.MAIN.PRE_LIMBO_PROFILE_REQUEST_PLUGINS.contains(id)) { + boolean matches = false; + for (String target : Settings.IMP.MAIN.PRE_LIMBO_PROFILE_REQUEST_PLUGINS) { + if (target.equalsIgnoreCase(id)) { + matches = true; + break; + } + } + if (matches) { LimboAPI.getLogger().info("Hooking all GameProfileRequestEvent events from {} ", id); - preEvents.add(handler); + if (!preEvents.contains(handler)) { + preEvents.add(handler); + } newHandlers.remove(handler); } } @@ -157,13 +191,27 @@ public void reloadHandlers() throws IllegalAccessException { } handlersMap.replaceValues(GameProfileRequestEvent.class, newHandlers); - this.handlerRegistrations = Array.newInstance(HANDLER_REGISTRATION_CLASS, preEvents.size()); + handlerRegistrations = Array.newInstance(HANDLER_REGISTRATION_CLASS, preEvents.size()); for (int i = 0; i < preEvents.size(); ++i) { - Array.set(this.handlerRegistrations, i, preEvents.get(i)); + Array.set(handlerRegistrations, i, preEvents.get(i)); } - this.hasHandlerRegistration = !preEvents.isEmpty(); + hasHandlerRegistration = !preEvents.isEmpty(); + + try { + Field cacheField = VelocityEventManager.class.getDeclaredField("handlersCache"); + cacheField.setAccessible(true); + Object cache = cacheField.get(this.eventManager); + if (cache != null) { + Method invalidateAll = cache.getClass().getMethod("invalidateAll"); + invalidateAll.invoke(cache); + } + } catch (NoSuchFieldException ignored) { + // handlersCache may not exist in all Velocity versions + } catch (Throwable e) { + LimboAPI.getLogger().warn("Failed to invalidate Velocity event handlers cache", e); + } } static { diff --git a/plugin/src/main/java/net/elytrium/limboapi/injection/login/LoginTasksQueue.java b/plugin/src/main/java/net/elytrium/limboapi/injection/login/LoginTasksQueue.java index 748c8d12..1b4c0d46 100644 --- a/plugin/src/main/java/net/elytrium/limboapi/injection/login/LoginTasksQueue.java +++ b/plugin/src/main/java/net/elytrium/limboapi/injection/login/LoginTasksQueue.java @@ -74,6 +74,7 @@ import java.util.function.BiConsumer; import net.elytrium.commons.utils.reflection.ReflectionException; import net.elytrium.limboapi.LimboAPI; +import net.elytrium.limboapi.Settings; import net.elytrium.limboapi.injection.login.confirmation.LoginConfirmHandler; import net.elytrium.limboapi.server.LimboSessionHandlerImpl; import net.elytrium.limboapi.utils.LambdaUtil; @@ -124,6 +125,10 @@ public void next() { private void finish() { this.plugin.removeLoginQueue(this.player); + if (Settings.IMP.MAIN.LOGGING_ENABLED) { + LimboAPI.getLogger().info("Finishing login tasks queue for player {}", this.player.getUsername()); + } + EventManager eventManager = this.server.getEventManager(); MinecraftConnection connection = this.player.getConnection(); Logger logger = LimboAPI.getLogger(); @@ -241,6 +246,10 @@ private void initialize(MinecraftConnection connection) throws Throwable { @SuppressFBWarnings("NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE") private void connectToServer(Logger logger, ConnectedPlayer player, MinecraftConnection connection) { + if (Settings.IMP.MAIN.LOGGING_ENABLED) { + LimboAPI.getLogger().info("Connecting player {} to server (connection state: {})", player.getUsername(), connection.getState()); + } + if (connection.getProtocolVersion().compareTo(ProtocolVersion.MINECRAFT_1_20_2) < 0) { try { connection.setActiveSessionHandler(connection.getState(), @@ -249,6 +258,9 @@ private void connectToServer(Logger logger, ConnectedPlayer player, MinecraftCon throw new ReflectionException(e); } } else if (connection.getState() == StateRegistry.PLAY) { + if (Settings.IMP.MAIN.LOGGING_ENABLED) { + LimboAPI.getLogger().info("Player {} in PLAY state, triggering disconnectToConfig before server connect", player.getUsername()); + } // Synchronize with the client to ensure that it will not corrupt CONFIG state with PLAY packets ((LimboSessionHandlerImpl) connection.getActiveSessionHandler()) .disconnectToConfig(() -> this.connectToServer(logger, player, connection)); diff --git a/plugin/src/main/java/net/elytrium/limboapi/server/LimboPlayerImpl.java b/plugin/src/main/java/net/elytrium/limboapi/server/LimboPlayerImpl.java index 2cb754d6..7dd47018 100644 --- a/plugin/src/main/java/net/elytrium/limboapi/server/LimboPlayerImpl.java +++ b/plugin/src/main/java/net/elytrium/limboapi/server/LimboPlayerImpl.java @@ -260,6 +260,9 @@ public void disconnect() { } } }); + } else if (Settings.IMP.MAIN.LOGGING_ENABLED) { + LimboAPI.getLogger().warn("Cannot disconnect player {} because active session handler is {} instead of {}", + this.player, this.connection.getActiveSessionHandler(), this.sessionHandler); } }); } @@ -284,6 +287,9 @@ public void disconnect(RegisteredServer server) { this.sendToRegisteredServer(server); } }); + } else if (Settings.IMP.MAIN.LOGGING_ENABLED) { + LimboAPI.getLogger().warn("Cannot disconnect player {} to server {} because active session handler is {} instead of {}", + this.player, server.getServerInfo().getName(), this.connection.getActiveSessionHandler(), this.sessionHandler); } }); } diff --git a/plugin/src/main/java/net/elytrium/limboapi/server/LimboSessionHandlerImpl.java b/plugin/src/main/java/net/elytrium/limboapi/server/LimboSessionHandlerImpl.java index 61e76037..82fcdf16 100644 --- a/plugin/src/main/java/net/elytrium/limboapi/server/LimboSessionHandlerImpl.java +++ b/plugin/src/main/java/net/elytrium/limboapi/server/LimboSessionHandlerImpl.java @@ -184,6 +184,10 @@ public void disconnectToConfig(Runnable runnable) { this.switching = true; this.loaded = false; + if (Settings.IMP.MAIN.LOGGING_ENABLED) { + LimboAPI.getLogger().info("Disconnecting {} to CONFIG state (switching=true)", this.player); + } + if (this.player.isOnlineMode() && this.player.getProtocolVersion().lessThan(ProtocolVersion.MINECRAFT_1_21_2) && this.joinGameTriggered) { // There is a race condition in the client then it reconnects too quickly (https://bugs.mojang.com/browse/MC-272506) if (!this.chatSession.isDone() && this.chatSessionTimeoutTask == null) { @@ -192,10 +196,12 @@ public void disconnectToConfig(Runnable runnable) { } this.chatSession.thenRunAsync(() -> { this.player.getConnection().write(StartUpdatePacket.INSTANCE); + this.player.getConnection().flush(); this.configTransition.thenRun(this::disconnected).thenRun(runnable); }, this.player.getConnection().eventLoop()); } else { this.player.getConnection().write(StartUpdatePacket.INSTANCE); + this.player.getConnection().flush(); this.configTransition.thenRun(this::disconnected).thenRun(runnable); } } @@ -209,6 +215,9 @@ public boolean handle(FinishedUpdatePacket packet) { if (!this.loaded && !this.disconnecting) { this.limbo.spawnPlayerLocal(this.callback.getClass(), this, this.player, this.player.getConnection()); } else if (this.switching) { + if (Settings.IMP.MAIN.LOGGING_ENABLED) { + LimboAPI.getLogger().info("{} finished update and confirmed transition to CONFIG state.", this.player); + } this.switching = false; this.configTransition.complete(this); } else { diff --git a/settings.gradle.kts b/settings.gradle.kts index 0e35a202..90b760fc 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1,14 +1,21 @@ dependencyResolutionManagement { repositories { mavenCentral() - maven { - name = "elytrium-repo" - url = uri("https://maven.elytrium.net/repo/") - } maven { name = "papermc-repo" url = uri("https://repo.papermc.io/repository/maven-public/") } + maven { + name = "local-repo" + url = uri("${rootDir}/local-repo") + } + maven { + name = "elytrium-repo" + url = uri("https://maven.elytrium.net/repo/") + content { + includeGroupByRegex("net\\.elytrium.*") + } + } } }