|
#moved
At least post in the private server section rofl.
As for the question...
#1: Write a method to look up IP by player name (if they are online. If not you may want a "last ip" field in your accounts database so you can ip ban people who are not currently online)
#2: Make a database or text file to hold all banned ips
#3: Make a list inside the source to hold this list of banned ips
#4: Make a load method to load the external textfile/database of banned ips into your internal list
#5: When receiving a connection, check if the ip is allowed. If not then disconnect them.
#6: Make a command that accepts a player name, calls the pull ip method (checks if it returns anything) and adds to the banned list and saves it to database.
DONE
|