ReloadBans: Difference between revisions
Jump to navigation
Jump to search
(oop) |
Fernando187 (talk | contribs) (Remove obsolete Requirements section) |
||
Line 25: | Line 25: | ||
addCommandHandler("reloadban",ReBan) | addCommandHandler("reloadban",ReBan) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See Also== | ==See Also== | ||
{{Admin functions}} | {{Admin functions}} |
Latest revision as of 17:01, 7 November 2024
This function will reload the server ban list file.
Syntax
bool reloadBans()
OOP Syntax Help! I don't understand this!
- Method: Ban.reload(...)
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)
See Also
- addBan
- banPlayer
- getBanAdmin
- getBanIP
- getBanNick
- getBanReason
- getBanSerial
- getBanTime
- getBanUsername
- getBans
- getUnbanTime
- isBan
- kickPlayer
- setBanAdmin
- setBanNick
- setBanReason
- setUnbanTime
- reloadBans
- removeBan