-
Notifications
You must be signed in to change notification settings - Fork 5
112 lines (93 loc) · 3.52 KB
/
Copy pathbuild.yml
File metadata and controls
112 lines (93 loc) · 3.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
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
- Playtime-based claim limits (more playtime = more claims)
- Trust system with 4 permission levels
- Full block protection for claimed areas
### Commands
| Command | Description |
|---------|-------------|
| `/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 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