Skip to main content

Sanctions API

The second part of server-side integration is preparing endpoints for Sanctions API. Through this functionality, SARD may call game-server to send information about kicking or banning particular player.

Sanctions process

Kick is a simpliest form of action which should abrupt player's session, we expect game server to have functionality to disconnect a player when SARD makes a request to the provided endpoint.

Ban represent a restriction on user's access to the game, which takes some set (or infinite) amount of time. When banned user tries to connect to SARD their session is terminated.

Kick and Ban functions are our usual response to:

  • Validation process failure
  • Cheat detection
  • SARD anti-cheat being disabled mid-session You have an ability to setup sanctions behaviour freely from admin panel to determine which sanction particular actions results in.

Sanctions implementation

We expect game-server to have 2 endpoints prepared:

  • <url>/kick expecting:
    • Authorization token you provide to us being put in requst header
    • Following data being provided:
      • username as string
      • reason as a string
  • <url>/ban expecting:
    • Authorization token you provide to us being put in requst header
    • Following data being provided:
      • username as string
      • reason as a string
      • days as int represting how many days ban will last

Admin panel sanctions parameter placement