Skip to main content

getBan

exports["RiP-Admin"]:getBan(banId) 

This function returns a specific ban by it's id

Arguments

NameTypeOptionalExplenation
banIdIntegerNounique ban id

Returned Table

NameTypeExplenation
identifierStringplayer identifier
reason1Stringofficial reason
reason2Stringprivate reason
durationIntegerban duration timestamp
dateIntegerban timestamp
activeBooleanis ban still active
staff.identifierStringstaff 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