feat: 2.3.2
This commit is contained in:
+6
-16
@@ -4,7 +4,7 @@ This guide explains how to deploy the admin module to your Nakama server.
|
||||
|
||||
## Files
|
||||
|
||||
- `tekton_admin.ts` - TypeScript server runtime module
|
||||
- `core.js` — Admin, user management, leaderboard, daily rewards, inbox, auth, shop catalog, purchases, and economy RPCs
|
||||
|
||||
## Prerequisites
|
||||
|
||||
@@ -23,12 +23,7 @@ This guide explains how to deploy the admin module to your Nakama server.
|
||||
2. **Compile TypeScript to JavaScript:**
|
||||
```bash
|
||||
cd server/nakama
|
||||
tsc tekton_admin.ts --outDir dist --lib ES2020 --types nakama-runtime
|
||||
```
|
||||
|
||||
3. **Copy to Nakama modules directory:**
|
||||
```bash
|
||||
cp dist/tekton_admin.js /path/to/nakama/data/modules/
|
||||
cp core.js /path/to/nakama/data/modules/
|
||||
```
|
||||
|
||||
4. **Restart Nakama server**
|
||||
@@ -43,15 +38,11 @@ In your `nakama.yml` or `nakama-docker.yml`:
|
||||
|
||||
```yaml
|
||||
runtime:
|
||||
js_entrypoint: "tekton_admin.js"
|
||||
path: /nakama/data/modules
|
||||
```
|
||||
|
||||
Or for multiple modules:
|
||||
|
||||
```yaml
|
||||
runtime:
|
||||
js_entrypoint: "index.js"
|
||||
```
|
||||
`core.js` has an `InitModule` function.
|
||||
Nakama auto-discovers and calls it — no `js_entrypoint` needed.
|
||||
|
||||
## Role System
|
||||
|
||||
@@ -109,8 +100,7 @@ curl -X PUT "http://localhost:7350/v2/console/account/{user_id}" \
|
||||
## Troubleshooting
|
||||
|
||||
### RPC Not Found
|
||||
- Check module is loaded: `nakama --help` or check logs
|
||||
- Verify js_entrypoint in config
|
||||
- Check modules are loaded: look for "Tekton core module loaded" in logs
|
||||
|
||||
### Permission Denied
|
||||
- Check user has correct role in metadata
|
||||
|
||||
Reference in New Issue
Block a user