Disconnects an online player.
| Name | Type | Description |
|---|---|---|
reason | string, optional | Shown to the player on the disconnect screen. |
Nothing.
on('chat', function(e)
if e.message:lower() == "hack" then
e.player:kick("Hacking is not allowed.")
e:cancel()
end
end)