Add mod state in console
This commit is contained in:
@@ -21,13 +21,14 @@ Double-click `compile.bat` atau jalankan:
|
||||
.\compile.bat
|
||||
```
|
||||
|
||||
Atau langsung:
|
||||
Linux/macOS:
|
||||
|
||||
```powershell
|
||||
.\compile.ps1
|
||||
```bash
|
||||
chmod +x compile.sh release.sh
|
||||
./compile.sh
|
||||
```
|
||||
|
||||
Kedua script membaca `mod_version` dan `minecraft_version` langsung dari `gradle.properties`. Header build akan menampilkan versi yang sedang di-compile, misalnya:
|
||||
`compile.bat` dan `compile.sh` membaca `mod_version` dan `minecraft_version` langsung dari `gradle.properties`. Setelah `BUILD SUCCESS`, script akan menanyakan apakah source ingin di-commit dan di-push ke Git/Gitea. Header build akan menampilkan versi yang sedang di-compile, misalnya:
|
||||
|
||||
```text
|
||||
============================================
|
||||
@@ -46,6 +47,39 @@ build/libs/lobby-systems-1.2.0.jar
|
||||
|
||||
`*-sources.jar` hanya source archive dan tidak perlu dipasang ke server.
|
||||
|
||||
|
||||
## Membuat Gitea Release
|
||||
|
||||
Gunakan `release.bat` di Windows atau `./release.sh` di Linux/macOS. Release script akan:
|
||||
|
||||
1. menjalankan build melalui mode `--build-only`;
|
||||
2. memastikan source sudah di-commit/push;
|
||||
3. membuat/push tag `v<mod_version>`;
|
||||
4. membuat Gitea Release melalui API;
|
||||
5. mengupload `build/libs/lobby-systems-<version>.jar` sebagai release asset.
|
||||
|
||||
Default repository release:
|
||||
|
||||
```text
|
||||
https://git.darto.id/dartokloning/lobby-systems
|
||||
```
|
||||
|
||||
API release membutuhkan Gitea Personal Access Token. Jangan simpan token di repository. Anda dapat memasukkan token ketika script meminta, atau menyediakan environment variable `GITEA_TOKEN`.
|
||||
|
||||
## Console state logging
|
||||
|
||||
State penting Lobby Systems memakai separator agar mudah terlihat di server console, antara lain startup, config load, player-position store ready, portal load, reload, player join/disconnect, portal create/delete, dan teleport. Contoh:
|
||||
|
||||
```text
|
||||
============================================
|
||||
Lobby Systems - READY
|
||||
Version: 1.2.0
|
||||
Minecraft: 26.2
|
||||
Config directory: config/lobby
|
||||
WorldEdit: available
|
||||
============================================
|
||||
```
|
||||
|
||||
## Struktur konfigurasi v1.2.0
|
||||
|
||||
```text
|
||||
|
||||
Reference in New Issue
Block a user