getBan
exports["RiP-Admin"]:getBan(banId)
This function returns a specific ban by it's id
Arguments
Name | Type | Optional | Explenation |
---|---|---|---|
banId | Integer | No | unique ban id |
Returned Table
Name | Type | Explenation |
---|---|---|
identifier | String | player identifier |
reason1 | String | official reason |
reason2 | String | private reason |
duration | Integer | ban duration timestamp |
date | Integer | ban timestamp |
active | Boolean | is ban still active |
staff.identifier | String | staff member identifier |
Example
local ban = exports["RiP-Admin"]:getBan(999999)
if ban then
print("Unofficial ban reason:", ban.reason2)
else
print("Ban not found")
end