25.10.2018, 06:55
In your MySQL table, create a column with data type timestamp, and when you ban some player, calculate the days using the days seconds * days banned.
When a player that is banned joins, check if their ban expired or not, if its not then kick them with the reason and the unban date, if it expired then remove the ban from the table and let them join..
When a player that is banned joins, check if their ban expired or not, if its not then kick them with the reason and the unban date, if it expired then remove the ban from the table and let them join..