Skip to main content

Player::ban

This function bans the player from your server.

Note: The ban reason doesn't display for the player, you need to use something else to display it for the player. Also, all bans that use this function are cleared once the server restarts. You need to save the bans yourself if you want them to stay after restarting your server.

Syntax

``` player.ban(reason) ```

Parameters

  • reason:

Example

Creates a ban command.

See Also