reloadBans
Client-side
Server-side
Shared
This function will reload the server ban list file.
OOP Syntax Help! I don't understand this!
- Method: Ban.reload(...)
Syntax
bool reloadBans ( )
Returns
- bool: result
Returns true if the ban list was reloaded successfully, false otherwise.
Code Examples
server
This example add command reloadban
to reload the server ban list file.
local function ReBan(player) if (reloadBans()) then outputChatBox("Bans has been reloaded successfully.",player) else outputChatBox("Failed to Reload Bans.",player) endendaddCommandHandler("reloadban",ReBan)