SetUnbanTime: Difference between revisions
Jump to navigation
Jump to search
m (Removed {{Needs_Example}}) |
m (fix oop) |
||
(One intermediate revision by one other user not shown) | |||
Line 9: | Line 9: | ||
bool setUnbanTime( ban theBan, int theTime ) | bool setUnbanTime( ban theBan, int theTime ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{OOP||[[ban]]:setUnbanTime|unbanTime|getUnbanTime}} | |||
===Required Arguments=== | ===Required Arguments=== |
Latest revision as of 14:39, 7 August 2016
This function sets a new unban time of a given ban using unix timestamp (seconds since Jan 01 1970).
Syntax
bool setUnbanTime( ban theBan, int theTime )
OOP Syntax Help! I don't understand this!
- Method: ban:setUnbanTime(...)
- Variable: .unbanTime
- Counterpart: getUnbanTime
Required Arguments
- theBan: The ban of which to change the unban time of
- theTime: the new unban time
Returns
Returns true if changed successfully, false otherwise.
Example
addCommandHandler("banMe", function (player) local ban = banPlayer(player) setUnbanTime(ban, 500) end )