add reload configuration

This commit is contained in:
Darto KLoning
2026-09-28 08:41:03 +07:00
parent 5a2d63c282
commit 2342c07072
7 changed files with 135 additions and 5 deletions
+9
View File
@@ -8,3 +8,12 @@ This branch is Fabric-only and intentionally separates authority:
Minecraft 26.2 uses the unobfuscated Mojang/official names and Java 25. This port therefore does not reuse the old Yarn-named common/client GUI classes from 0.2.2. Client rendering lives only in `src/client`, while server/gameplay code lives in `src/main`.
Run `compiler.bat` on Windows or `./compiler.sh` on Linux/macOS. The script checks whether the existing JAR contains the same `mod_version+mc<minecraft_version>` as `gradle.properties`; matching builds offer Push/Recompile/Quit. After a successful build it offers Git push and retries failed pushes in groups of three.
## Commands (v0.3.2)
`/idt reload`
- Client player (non-operator): reloads only `item-despawn-timer-client.json`.
- Client player (operator/moderator): reloads the client config and requests a server-config reload. The server validates permission before accepting the request.
- Dedicated-server console: reloads only `item-despawn-timer-server.json`.
- The server-side `/idt reload` node requires Minecraft moderator/operator permission, so it is not advertised by the server command tree to ordinary players. The client-side command remains available because ordinary players are allowed to reload their own presentation config.