Rich Ban Module using Roblox's Ban API

Download

Roblox: https://create.roblox.com/store/asset/18222722799/Moderation
GitHub: GitHub - RAMPAGELLC/richban: Rich API Ban module for Roblox's ban API.

About

A cool module utilizing roblox’s new ban api. Written by @crn_tl and @vq9o.

Documentation

--[[
➜ ModerationModule:PermbanPlayerAsync()
	player: player: Player; or players as userID : {number}
	displayreason: reason displayed to the player on ban screen
	modnotice: notes for the ban from the moderator. private and only viewable by staff
	ApplyToUniverse: applies to universe or place specific {boolean}
	
		returns: boolean (true, false)
	
➜ ModerationModule:TempbanPlayerAsync()
	player: player: Player; or players as userID : {number}
	duration: string like 1d, 4d, 1y or numbers in seconds
	displayreason: reason displayed to the player on ban screen
	modnotice: notes for the ban from the moderator. private and only viewable by staff
	ApplyToUniverse: applies to universe or place specific {boolean}
	
		returns: boolean (true, false)

➜ ModerationModule:UnbanPlayerAsync()
	player: player userid or players userids
	ApplyToUniverse: applies to universe or place specific {boolean}
	
		returns: boolean (true, false)
	
➜ ModerationModule:GetPlayerBanAsync()
	player: player userid or players userids
	
		returns: table {}
]]
2 Likes

Looks nice! Question though, have you experienced a “bug” where alt accounts can still join the game even when the main account is banned. I’ve tried it on myself and I was able to join back on an alt. Or maybe Roblox thinks it’s not an alt?

Wow this is so helpful and amazing!

isn’t this just the already existing ban API with extra steps

Exactly. I’ve already seen something like this that came out after they made the announcement and it was deleted after I called them out.

1 Like

the ban service is not live yet.

If it isn’t, why can I ban myself from the game and it worked?

1 Like

It should be live by now, as others are able to ban themselves.

It’s a useful module in my opinion allowing you to transfer over to this new ban system. It also generates the timestamps automatically.