If you would like to enable whitelist on your Minecraft server, run the following command into console:
/whitelist on
Any players attempting to join the server will be unable to join.
Please Note: any players currently on the server will not get kicked out, but if they leave they will not be able to rejoin unless they are whitelisted.
So how do we add players to the whitelist?
/whitelist add <player>
Repeat the command above as many times as necessary until you have whitelisted all your players.