Skip to content

function ban (server-side)

Available since version: 0.0.4


The reason string can't be longer than 255 characters.

This function will ban the player on the server.


void ban(int id, int minutes, string reason)


  • int id: the player id.
  • int minutes: the time how long ban will take in minutes. Passing 0 will cause the player to have permanent ban.
  • string reason: the reason why player was banned.