ive been making a moderation system for my game and i created a system that gives the moderator a players full ban history. everything works except for the fact that i cant seem to get a boolean for whether or not the player is currently banned.
i looked on the devforum for a while but i couldnt find anything useful so im making this post
local isbannedtext = "(player is currently not banned)"
local plrisbanned = false
--(theres a variable called "history" for GetBanHistoryAsync)
if plrisbanned then
isbannedtext = "(player is currently banned)"
end
Ban history shows whether or not the action was a ban or an unban. The latest ban status in the history will determine whether or not the user is currently banned
You will most likely have to add the seconds onto the date and time to figure out the unban date and time. After you get the unban date and time you can check the current date and time to see if it’s greater which means they’re unbanned