ReloadBans: Difference between revisions
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
==Example== | ==Example== | ||
This example add "reloadban" to reload the server ban list file. | This example add command "reloadban" to reload the server ban list file. | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
function ReBan (player) | function ReBan (player) |
Revision as of 17:25, 24 April 2012
This function will reload the server ban list file.
Syntax
bool reloadBans ()
Returns
Returns true if the ban list was reloaded successfully, false otherwise.
Example
This example add command "reloadban" to reload the server ban list file.
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)
Requirements
This template will be deleted.