ReloadBans: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
|||
Line 5: | Line 5: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
bool reloadBans () | bool reloadBans() | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 29: | Line 29: | ||
==See Also== | ==See Also== | ||
{{Admin functions}} | {{Admin functions}} | ||
Revision as of 22:35, 27 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.
See Also
- addBan
- banPlayer
- getBanAdmin
- getBanIP
- getBanNick
- getBanReason
- getBanSerial
- getBanTime
- getBanUsername
- getBans
- getUnbanTime
- isBan
- kickPlayer
- setBanAdmin
- setBanNick
- setBanReason
- setUnbanTime
- reloadBans
- removeBan