Auth-limbo + login-restore fix for Paper 1.21+. Bypasses the AuthMe `teleportOnLogin` race (PaperMC/Paper#4085) by listening at MONITOR priority, reading the player's saved quit-location from AuthMe's SQLite DB, pinning the destination chunk via addPluginChunkTicket, then chaining getChunkAtAsyncUrgently and teleportAsync. Bundles a void auth_limbo world via custom ChunkGenerator so the plugin removes the need for Multiverse-Core for offline-mode auth flows.
44 lines
1 KiB
YAML
44 lines
1 KiB
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up JDK 21 (Temurin)
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: temurin
|
|
java-version: '21'
|
|
cache: maven
|
|
|
|
# See .github/workflows/build.yml for context on this secret.
|
|
- name: Fetch AuthMe jar
|
|
env:
|
|
AUTHME_JAR_URL: ${{ secrets.AUTHME_JAR_URL }}
|
|
run: |
|
|
if [ -z "$AUTHME_JAR_URL" ]; then
|
|
echo "::error::AUTHME_JAR_URL secret is not set. See lib/README.md."
|
|
exit 1
|
|
fi
|
|
curl -fsSL "$AUTHME_JAR_URL" -o lib/AuthMe-5.6.0-FORK-Universal.jar
|
|
|
|
- name: Build with Maven
|
|
run: mvn -B -ntp package
|
|
|
|
- name: Create GitHub release
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
files: target/RackedLimbo-*.jar
|
|
generate_release_notes: true
|
|
fail_on_unmatched_files: true
|