Update Teleport API to use createForPlayer() #12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Release | |
| on: | |
| push: | |
| branches: [ master, main ] | |
| pull_request: | |
| branches: [ master, main ] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Java 25 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '25-ea' | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Build with Maven | |
| run: mvn clean package | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: EasyHome | |
| path: target/EasyHome-*.jar | |
| release: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Download artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: EasyHome | |
| path: ./dist | |
| - name: Get short SHA | |
| id: sha | |
| run: echo "SHORT_SHA=${GITHUB_SHA::7}" >> $GITHUB_OUTPUT | |
| - name: Get current date | |
| id: date | |
| run: echo "DATE=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT | |
| - name: Set version | |
| id: version | |
| run: echo "VERSION=v1.0.${{ github.run_number }}" >> $GITHUB_OUTPUT | |
| - name: Rename JAR | |
| run: mv dist/EasyHome-*.jar dist/EasyHome-${{ steps.version.outputs.VERSION }}.jar | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: ${{ steps.version.outputs.VERSION }} | |
| name: EasyHome ${{ steps.version.outputs.VERSION }} | |
| body: | | |
| ## EasyHome ${{ steps.version.outputs.VERSION }} | |
| **Commit:** `${{ steps.sha.outputs.SHORT_SHA }}` | |
| **Date:** ${{ steps.date.outputs.DATE }} | |
| ### Installation | |
| 1. Download `EasyHome-${{ steps.version.outputs.VERSION }}.jar` | |
| 2. Place in your Hytale server's `mods/` folder | |
| 3. Restart the server | |
| ### Features | |
| - Multiple named homes (base, mine, farm, etc.) | |
| - Configurable home limits | |
| - Configurable teleport delay | |
| - Permission-based limits for different groups | |
| ### Commands | |
| | Command | Description | | |
| |---------|-------------| | |
| | `/sethome [name]` | Save current location | | |
| | `/home [name]` | Teleport to a home | | |
| | `/homes` | List all your homes | | |
| | `/delhome <name>` | Delete a home | | |
| ### Admin Commands | |
| | Command | Description | | |
| |---------|-------------| | |
| | `/easyhome admin config` | Show settings | | |
| | `/easyhome admin set default 3` | Everyone gets 3 homes | | |
| | `/easyhome admin set max 25` | Max homes allowed | | |
| | `/easyhome admin set warmup 0` | Instant teleport | | |
| ### Quick Setup | |
| ``` | |
| perm group add Adventure homes.use | |
| perm group add admin homes.admin | |
| /easyhome admin set default 3 | |
| ``` | |
| files: dist/EasyHome-${{ steps.version.outputs.VERSION }}.jar | |
| prerelease: false | |
| make_latest: true |