I know how to make a command to ban someone, however I dont know how to make a ban system.
The ban system I am making will have
A GUI which shows the list of banned players
A detailed overview GUI which shows why the user gets banned and who banned the user & also show the information of the user such as username, profile photo and user id. They can be unbanned via the gui
I have no clue on what script and what service do I use for the above and would appriciate any help.
I also wanted to make a custom ban message which is as follows:
It’s pretty simple. When you ban someone, add their details to a database (i.e. userid, banned by, reason, date banned on). Then, when someone joins check the database and if their userid matches one of the entries, kick them from the game. As for displaying everyone who has been banned, just loop through the database and clone a template for every entry, editing the display name and username. You should also create some string values in the template to store the reason and banned by, and when the template is clicked on, change the text of the textboxes to the right to the content of the string values. This is obviously simplified but is the basic gist of things. Good luck.
Never save usernames like this. Save the user ID. There is a way to get player usernames from user ID’s, and since usernames can change it is not a good way to store player-specific data.