Skip to content

function removeBan (server-side)

Available since version: 0.3.0

Note

All properties should be of primitive types and are optional, but you still need to provide at least one of them.

Note

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

Note

The meta table is used for storing custom data.

This function will remove ban(s) which meet specific condition from the server.

Declaration

int removeBan({serial, mac, ip, name, reason, timestamp, meta={}} info, bool single = false)

Parameters

  • {serial, mac, ip, name, reason, timestamp, meta={}} info: the ban properties.
  • bool single: true when you want to remove only one entry, otherwise false.

Returns int

the number of bans that were removed.