ServerPassword
ServerPassword - Simply protect your server with a password
ServerPassword Version 1.2 [1.7.2]
Description
ServerPassword is my first public plugin.
It simply protects your server with a password.
I have coded this plugin for Development Build 1.7.2-R0.3 (#2982). Maybe it also works for earlier releases, I haven't tested it.
If you enter the server, you are forced to enter a password. If you enter a wrong password, you are going to be kicked (or banned, depends on configuration).
Without entering the password you got kicked after 60 seconds (default value).
Comes with a config file, permission and commands. Information about this you find below.
Features
- Cancel different interaction events
- Drop items
- Pickup items
- Health regain
- Food level change
- Inventory clicks
- Damage
- Potion splash
- Move
- Break block
- Place block
- Enter a command
- Chatting
- Drop items
- autokick after X seconds or
- ban after X times the incorrect password
- Commands for an easy administration
Config
File: config.yml
# Configuration file for ServerPassword! # Here you set the server password! password: serverpw # A player gets this message when he entered a wrong password! kickmessage: The password was incorrect! # After this time(in seconds), a player will be kicked when he hasn't entered the password autokickTime: 60 # ...and gets this message! autokickMessage: Yon don't entered any password! # Set this to true, if you want that players get banned after they typed in the incorrect password X times (false = players got kicked, true = players got banned) banfeature: false # You'll get this message, if you get banned banmessage: You got banned, because you typed too often the incorrect password! # How often players can type the incorrect password until they get banned limit: 5
Userlist
File: userlist.yml
# Example for the userlist.yml # All users in this list don't have to type the password! Users: - player1 - player2 - and so on...
You could add/remove players manually or automaticly via command (/sp add or /sp remove)
Commands
Main commands: /sp or /serverpassword
Command | Description | |
---|---|---|
/sp changepw <old password> <new password> | Changes the server password | |
/sp pass <username> | Pass players through the password protection | |
/sp add <username> | Add players to the userlist | |
/sp remove <username> | Remove players from the userlist |
Permission(s)
serverpassword.command -> With this permissions you could use all commands!
ToDo
adding config file to change the password
adding a config file to change the kickmessage
adding a command to change the password while the server is running
remove permission "uncon.nopassword" and add a userlistseperate the userlist in a fileadding a command to add/remove player from the userlistautokick after X minutes (if password wasn't entered)
- adding feature for time ban after X kicks (if enabled in config)
adding command to pass players through the password protection
- Suggestion? -> Comment or PM
User Suggestions
Username | Suggestion (accepted) | |
---|---|---|
derknoche |
KnownBugs
Plugin stops working after /reload command(on reload all players get through password protection)
Changelog
Version 1.2 [14.01.2014]
- release Version 1.2 [Release]
- added ban feature (requested by derknoche)
- bugfixes
- added ban feature (requested by derknoche)
Version 1.1 [12.01.2014]
- release Version 1.1 [Release]
- renamed permission to "serverpassword.command"
- added autokick feature
- some improvements
- renamed permission to "serverpassword.command"
Version 1.0 [10.01.2014]
- release Version 1.0 [Release]
- added config file for changing the password
- added a config file for changing the kickmessage
- added a command for changing the password while the server is running
- removed permission "uncon.nopassword" and added a userlist
- seperated the userlist in a file
- added a command for adding/removing player from the userlist
- added command for passing players through the password protection
- bugfixes
- some improvements
- added config file for changing the password
Version 0.1 [06.01.2014]
- release Version 0.1 [Beta]
Contact
unconvincible
Main language: german
Sub language: english
You want to talk to me (only german)? PM me!
Donate
You like my work and want to support me?
Then click the DONATE-Button in the upper right corner :)
Sincerely,
unconvincible
I like the idea of this plugin! And how it works! Maybe you can add a feature, where you'll get banned if you typed in the wrong password X times (5 times or so)
@FlOppythp
I also searched for a server password plugin. I only found some alternatives, but I expected something else. So I decided to make my own ;)
If you (or someone else) have some suggestions, tell it me.
@jithins
I don't know what you mean!
Pictures? For what? Their is nothing I have to show.
Just read what the plugin does.
Sincerely,
unconvincible
pictures? plus ppl can whitelist server