Session management API for anti-cheat system
This API provides endpoints for creating and retrieving anti-cheat session information.
https://diamac.lol/application/json (for JSON responses)Creates a new anti-cheat session and returns a unique session ID.
| Parameter | Type | Required | Description |
|---|---|---|---|
jobid |
string | Yes | Job identifier for the anti-cheat session |
200 OK - Returns session ID in plain text
Calculates movement velocity per user and detects potential cheating. Returns "kick" if velocity exceeds 3 studs/second, "ok" otherwise.
| Parameter | Type | Required | Description |
|---|---|---|---|
sessionid |
string | Yes | Session ID from create session endpoint |
currentposition |
string | Yes | Current position coordinates as "X,Y,Z" or "X Y Z" |
userid |
string | Yes | Unique user identifier to track individual players |
200 OK - Returns "ok" or "kick" in plain text
Returns "kick" if velocity > 3 studs/second and distance ≥ 4 studs
Retrieves detailed information about a specific session.
| Parameter | Type | Required | Description |
|---|---|---|---|
sessionid |
string | Yes | Session ID returned from create session endpoint |
200 OK - Returns session information as JSON
| Status Code | Description | Response Body |
|---|---|---|
| 400 | Bad Request - Missing or invalid parameters | {"error": "parameter is required"} |
| 404 | Not Found - Session not found | {"error": "Session not found"} |
| 500 | Internal Server Error | {"error": "Internal server error"} |