modl.gg

Preview Punishment

Preview a punishment's calculated severity and points before issuing.

GET /v1/minecraft/punishments/preview

Preview the calculated severity, offense level, and points for a punishment before issuing it. This allows staff to see what the outcome of a punishment would be based on the player's history and the server's configured point thresholds.

Authentication

Requires the X-API-Key header with your server's API key.

Request

Headers

HeaderTypeRequiredDescription
X-API-KeystringYesYour server's API key.

Query Parameters

ParameterTypeRequiredDescription
playerUuidstringYesThe UUID of the player to preview the punishment for.
typeOrdinalintegerYesThe punishment type ordinal (0-14).
GET /v1/minecraft/punishments/preview?playerUuid=069a79f4-44e9-4726-a5be-fca90e38aaf5&typeOrdinal=7

Response

200 OK

Response
{
  "status": 200,
  "success": true,
  "socialStatus": "Tier 1",
  "gameplayStatus": "Tier 2",
  "socialPoints": 3,
  "gameplayPoints": 8,
  "offenseLevel": "low",
  "singleSeverity": {
    "action": "ban",
    "duration": 604800000
  },
  "lenient": {
    "action": "ban",
    "duration": 259200000
  },
  "regular": {
    "action": "ban",
    "duration": 604800000
  },
  "aggravated": {
    "action": "ban",
    "duration": 1209600000
  }
}
FieldTypeDescription
statusintegerHTTP status code.
successbooleanWhether the preview was generated successfully.
socialStatusstringThe player's current social offender tier.
gameplayStatusstringThe player's current gameplay offender tier.
socialPointsintegerThe player's accumulated social offense points.
gameplayPointsintegerThe player's accumulated gameplay offense points.
offenseLevelstringThe calculated offense level (e.g., "low", "medium", "high").
singleSeverityobjectThe default punishment outcome.
lenientobjectThe punishment outcome if lenient severity is selected.
regularobjectThe punishment outcome if regular severity is selected.
aggravatedobjectThe punishment outcome if aggravated severity is selected.

Error Responses

Status CodeDescription
400Missing or invalid query parameters.
401Missing or invalid API key.
404Player not found.

On this page