Skip to content

reloadBans

Server-side

This function will reload the server ban list file.

OOP Syntax Help! I don't understand this!

  • Method:Ban.reload(...)

Syntax

bool reloadBans ( )

Returns

Returns true if the ban list was reloaded successfully, false otherwise.

  • bool: result

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)
end
end
addCommandHandler("reloadban",ReBan)