Fix trusted players not rendering on map overlay #27
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: EasyClaims | |
| path: target/EasyClaims-*.jar | |
| release: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main') | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Download artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: EasyClaims | |
| 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/EasyClaims-*.jar dist/EasyClaims-${{ steps.version.outputs.VERSION }}.jar | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: ${{ steps.version.outputs.VERSION }} | |
| name: EasyClaims ${{ steps.version.outputs.VERSION }} | |
| body: | | |
| ## EasyClaims ${{ steps.version.outputs.VERSION }} | |
| **Commit:** `${{ steps.sha.outputs.SHORT_SHA }}` | |
| **Date:** ${{ steps.date.outputs.DATE }} | |
| ### Installation | |
| 1. Download `EasyClaims-${{ steps.version.outputs.VERSION }}.jar` | |
| 2. Place in your Hytale server's `mods/` folder | |
| 3. Restart the server | |
| ### Features | |
| - Chunk-based land claiming with visual map integration | |
| - In-game GUI for managing claims and trusted players | |
| - Playtime-based claim limits (more playtime = more claims) | |
| - Trust system with 4 permission levels | |
| - Full block protection for claimed areas | |
| ### Commands | |
| | Command | Description | | |
| |---------|-------------| | |
| | `/easyclaims gui` | Open claim map GUI | | |
| | `/easyclaims settings` | Open settings GUI to manage trusted players | | |
| | `/easyclaims claim` | Claim the chunk you're standing in | | |
| | `/easyclaims unclaim` | Unclaim current chunk | | |
| | `/easyclaims list` | List all your claims | | |
| | `/easyclaims trust <player> [level]` | Trust a player (levels: use, container, workstation, build) | | |
| | `/easyclaims untrust <player>` | Remove trust | | |
| | `/easyclaims trustlist` | List trusted players | | |
| | `/easyclaims playtime` | Show your playtime and claim slots | | |
| ### Admin Commands | |
| | Command | Description | | |
| |---------|-------------| | |
| | `/easyclaims admin gui` | Open claim manager GUI (admin mode) | | |
| | `/easyclaims admin config` | Show current server settings | | |
| | `/easyclaims admin set starting <n>` | Set starting claims for new players | | |
| | `/easyclaims admin set perhour <n>` | Set claims earned per hour played | | |
| | `/easyclaims admin set max <n>` | Set maximum claims allowed | | |
| | `/easyclaims admin reload` | Reload config from file | | |
| ### Permissions | |
| ``` | |
| perm group add Adventure easyclaims.use | |
| perm group add admin easyclaims.admin | |
| ``` | |
| files: dist/EasyClaims-${{ steps.version.outputs.VERSION }}.jar | |
| prerelease: false | |
| make_latest: true |