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
Amazing plugin exactly what I needed for my BungeeCord server! 5/5!!!
But it would be really great if you added a feature: If the person is kicked from one of the bungeecord servers the player will be redirected back to the main hub server AKA fallback server.
Love this plugin hope you are still developing it.
Regards Xartiz!
Are you still maintaining this plugin?
Could you add per user passwords?
So when they user logs in for the first time, they're presented with the ServerPassword prompt as you're doing now (serverpw). Then once a success, force them to set their own password which is stored in a file and acts as a flag that they've set their own password. (either username or UUID, but for the example I'm using username)
UsersWithPass:
Peter01: Password!1
Paul2: QwERTY
Mary007: MyPsWd
When they log in the next time, you check the UsersWithPass section first for that username or UUID, and if it's found you validate that password, if not you go back to serverpw.
Also, add a new command spchpass: to allow the user to change their password.
Think something like that (doesn't have to be exact, just ideas) could work?
-Rich
Use UUID instead of username is possible?
@Bobert1742
Thank you.
Able are both ways (I think so), but I have to look over it :)
If I find enough time I'll do both, but first the second part (should be easier, we'll see ;))
A very nice plugin.
Might it be able to make the interaction events configurable.? I mean so you can choose what people can do without typing in the password but still after a given time they get kicked.
I ask this because today i got caught in a nether portal and couldn't type in the password because you can't open the chat or any GUI in the process of teleporting but still you won't get teleported.
Or would it be easier to move players out of portals automatically when they log in and stand in a portal?
@Ajaxan Thank you :)
This plugin works exactly the way it should and is easy to configure! I highly recommend it if you simply wish to make players enter a password before being able to play on a server.
@dmncpham
ok, I think I'll make it, but in a seperated plugin!
@unconvincible
Yes, that would be great if possible!
@dmncpham
You mean something like this?
- You join on a server, enter your E-Mail (or whatever)
- And get an E-Mail with the verification code (you get the code from my plugin?)
- And this code you have to enter on your server?
Hi, do you think you can add the option for multiple passwords? I'm trying to make my server so that each user has to enter a verification code from their emails to get in. Thanks!
@luckcolors
Hi, thanks :) I'll have a look, but I think that you can't see it if someone enter the password.
EDIT: I have looked and nobody could see the password if you type it!
Please use the latest version. If it's not working and everyone could see the password, then please tell me on which version your server is running and which plugins you use.
Sincerely, unconvincible
Hey there! i really like your plugin but pls fix the problem that when i input the password everybody can see it!
@FlOppythp
I don't know what's your problem.
For me everything is working fine!
1. The config file is working fine, you also could modify it manually!
2. If you type the password it won't be shown in chat!
Please tell me which plugins you use.
Sincerely,
unconvincible
@FlOppythp
I don't know what's your problem. For me and some other guys everything is working fine.
Maybe you have to explain it more.
Ok ty !
@Finelarme2
Hi,
the ban feature is in Version 1.2.
But it needs approval, I think you could download it friday or saturday.
I love that security plugin. I test that on my 1.6.2 MCPC+ server.
Edit : Work perfectly :). Ty dude. Btw, where is the "ban" data ?
@FlOppythp
Hi,
which Version you are using?
Please update to the newest one!
Version 1.1 is already released.
If you have an old Version, please delete the old config if you want to update, otherwise it's not working.
Sincerely,
unconvincible
@derknoche
Ok, I could do it ;)
But, if you now type a wrong password you got kicked and I think if I make this feature it's better if you stay on the server until you typed the password (or if you typed 5 times the wrong password).