BanManagerProxy

Description

API for managing player bans.

Methods

bool Ban(string psid, string sDuration)

  • Description: Bans the user for the specified duration. If no duration is supplied the ban will be permanent. Note that this merely adds the user to the ban database, if the user is connected you'll want to additionally kick him. Duration needs to be in the format XdXhXmXs. (days, hours, minutes, seonds)

bool IsBanned(string psid)


bool Unban(string psid)

  • Description: Returns true if the user was actually unbanned.

string GetBanDuration(string psid)

  • Description: Note: this will throw if the user is not banned. Returned value is in format XdXhXmXs.