Skip to main content

BanPlayer

Bans the player from joining the current server.

C#​

void NAPI.Player.BanPlayer(Player player, string reason = "");

Parameters​

  • player: parameter input should be in Player type
  • reason: optional parameter, input should be in string type

Example​

// Code here...