Plugin Info (Installation and Use below): ServerPass is a plugin to provide password protection for your minecraft server.
My friends and I recently started a SMP through Apex and encountered an issue with players we didn't know joining and messing with stuff. We didn't want to create a whitelist due to the hassle with additional friends joining, and so I created ServerPass, an alternative to whitelisting which only requires giving players a password rather than manually adding each one to a whitelist.
Installation: 1. ServerPass can be drag-and-dropped into the plugins folder of any spigot-compatible server.
2. Consider implementing a temporary whitelist at this point, as the first player to join your server after installing ServerPass will set the passcode.
3. Relaunch your server.
4. Join your server and follow the prompts in chat to set your server's passcode.
Note: Any players who join before the password is set will be prompted to set the password. This may make it difficult to set the password if you do not restrict players joining to just 1 person.
Usage: After setting a password, the player that set the password will be added to the list of approved players.
After the password is set, any player not on the list of approved players will be immobilized in spectator to prevent griefing, and will be prompted to supply the server password. If they successfully supply the password they will be added to the list of approved players, and returned to survival mode. If they supply an incorrect password, they will be banned from the server to prevent attempts to brute-force the password.
If you ever need to change the password, you will need to delete "ServerPass.txt" in your server's plugins folder. Note: this will also remove your list of approved players.
Approved players are not added to a vanilla whitelist, they are simply no longer bothered by this plugin. Banned players
are banned by the vanilla mechanic, and disabling the plugin will not pardon them.
Suggestions: Suggestions are welcome! I created this resource to be functional and provide basic security for your server without making a true whitelist. The fact that I spent about an hour on it means that it lacks some polish and configurability that it could have if interest is shown in further development.
Bug reports are also highly appreciated!
Please make any suggestions, bug reports, or reviews in the comment section of this resource page.