PasswordProtect
PasswordProtect - Protect your server with a password
Version v3.1.0
Description
This CraftBukkit plugin aims to offer a simple server password which is the same for all users.
THIS IS NOT A PLUGIN FOR A USER SPECIFIC PASSWORD
Without logging in the user is jailed in a pre defined cuboid and ported back once he leaves the jail area.
You can define jail areas for each world and configure which actions like block breaking, chatting or flying should be disabled.
There is an additional ability to allow certain commands or to auto-kick or auto-ban a user after X failed attempts.
This plugin is a rebirth of PasswordProtect
Additionally I migrated some features of mPasswordProtector into PasswordProtect (auto kick and ban).
Features
- Cancel different interaction events like
- Pickup items
- Drop items
- Break blocks
- Hit mobs or players
- Chat
- Triggering of mobs
- Interaction with items
- Using a portal
- Drops on death
- Flying
- Auto kick and auto ban (even the IP) after configurable amount of tries
- Blindness and slowness for the player if wanted
- Jail area - the player is teleported back if he leaves the area - can be turned off with disableJailArea
- Per world jail area!
- Safe hashing of password, choose between SHA, SHA-256, SHA-512, MD5 & more
- Custom commands are allowed to execute (like /rules)
- Bypass command via permission
- Broadcast a message on kick/ban
- Teleport the player back to the previous location (location on logout)
- Localization to edit the messages
- Permissions & Commands for an easy administration
Third party features, all of them can be disabled
Please take a look at the detailed information about bStats below!
- bStats for usage statistics
- Auto Updater (connecting to https://dev.bukkit.org for updating checking)
Config
# For help please refer to https://dev.bukkit.org/projects/passwordprotect # Which hash should be used? Example: SHA-256 or SHA-512 hash: SHA-512 # Are ops forced, to enter the password, too? opsRequirePassword: true # Should the jail area be disabled? disableJailArea: false # Should the password be stored in clean (plain) text? cleanPassword: false password: '' passwordClean: ''
autoUpdater: true # What events should be prevented? prevent: movement: true interaction: true interactionMobs: true itemPickup: true itemDrop: true portal: true blockPlace: true blockBreak: true # Players won't be triggered by mobs anymore triggering: true attacks: true damage: true chat: true # After how many attempts should a player be kicked or banned wrongAttempts: kick: 3 ban: 5 banIP: true # Broadcast messages when a player is kicked or banned? broadcast: kick: true ban: true # Make the players slow and add darkness effects? darkness: true slowness: true # These commands are available, even without logging in allowedCommands: - help - rules - motd # Teleport back to the location they left? teleportBack: true # Show the message that a password is required loginMessage: true
Commands & Permissions
If the config value permission is set to false, all people can use the commands!
If no permission system is found, all commands are for OPs only! Of course the console can use the commands, too!
Node: passwordprotect.nopassword
Description: Bypass the login password
/password
Node: passwordprotect.getpassword
Description: Allows you to get the password
/setpassword <password>
Node: passwordprotect.setpassword
Description: Allows you to set the password
/setjaillocation <radius>
Aliases: /setjail, /setjailarea, /setpasswordjail
Node: passwordprotect.setjailarea
Description: Allows you to set the jail area
/login <password>
Node: No permission node
Description: Used to login.
Of course you can use passwordprotect.*
But passwordprotect.nopassword is excluded!
Downloads/Source Code/Dev Builds
Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk.
(Latest dev builds/bleeding edge builds) - - Dev builds from Jenkins
(Source code hosted on GitHub) - - Source Code
Future Plans (a.k.a. ToDo):
- Whitelist instead of permissions
- Password only required once
- IP whitelist
Known Bugs
- None at the moment
Changelog
Version 3.1.0
- Fixes a bug where the opsRequirePassword flag did not work correctly
- Fixes a bug where the prevention flags did not work correctly
- Adds an optional auto updater feature
- Updates bStats dependency
Version 3.0.1
- Lower API version back to 1.13
- Fixes a bug that prevented banning from working correctly
- Fixes a bug that did not display the jailed message (thanks @dtmarius)
- Fixes a bug that nopassword permission required the player to be an OP (thanks @dtmarius)
- Fixes a bug that OpsRequirePassword was not working correctly (thanks @dtmarius)
- Various code improvements and refactorings
Credits
@DisabledHamster for his original plugin! :)
@muHum for mPasswordProtector
Banner
Feel free to use this banner!! :)
Statistics (from bStats)
Donations
I'm very happy about any donation.
Support me & buy me some beer, this makes me happy and keeps me interested in this plugin.
Donation chain: -> I receive some money -> Buy coffee -> Work longer -> Faster Updates -> Your benefit!
There is a button on top of this page (right to the different tabs)
I'm accepting bitcoins, too! :)
1NnrRgdy7CfiYN63vKHiypSi3MSctCP55C
License
This plugin is released under the MIT license!
Information about the data usage collection bStats
Disabling bStats
The file ./plugins/bStats/config.yml
contains an option to opt-out.
The following data is read and sent to https://bstats.org and can be seen under https://bstats.org/plugin/bukkit/PasswordProtect
- Your server's randomly generated UUID
- The amount of players on your server
- The online mode of your server
- The bukkit version of your server
- The java version of your system (e.g. Java 8)
- The name of your OS (e.g. Windows)
- The version of your OS
- The architecture of your OS (e.g. amd64)
- The system cores of your OS (e.g. 8)
- bStats-supported plugins
- Plugin version of bStats-supported plugins
Thanks for creating and sharing this plugin.
I have verified that PasswordProtect 1.1.3 works on CraftBukkit 1.3.2-R0.1 with Windows 7 64-bit and Ubuntu Server 12.04 64-bit on Java 1.7u7 64-bit. Was also using bPermissions 2.9.23
No console errors and all functions worked as expected.
Thanks, LHammonds
I could not make that work. CrazyLogin also uses "/login" and setting an alias for your /login does still does not allow both to work. The initial /login will be for this plugin...but CrazyLogin also wants data to be passed through /login. So when I tried to use /login, your plugin intercepted it and said "You are already logged in!" I even setup an alias called clogin for that plugin and included it in its "whitelist" of commands that can be issued but could not make it work.
Any other ideas?
Thanks, LHammonds
@LHammonds
You can add an alias yourself.
Open the .jar (e.g. with 7Zip -> Right Click -> Open as archive or something like this) and edit the plugin.yml:
See my difference? I added the "aliases" section. Than save the plugin.yml and copy it back into the .jar - your alias will work!
This is an excellent doorway to provide a server-level access password. Thanks for sharing.
Is there any way we can change the "login" command to something else like "serverpass", "worldpass", "allowentry", etc. so it will not conflict with other player-level password mods such as CrazyLogin?
Thanks, LHammonds
@Bathynomus
Hmm good point, let me see what I can do!
Is it possible to make world specific passwords? I'm running multi world server and I want to protect one of the worlds with password.
@Paranoism
What do you mean exactly with this?
Look at the localization.yml you can change any of the texts!
Nice, nice. How about adding a small feature that tells them a custom message when they get the password wrong, when they first join, and etc?
@deleted_148960
Yes. Submitted the file.
Dropbox and github are up to date with 1.1.2 (for MC 1.3.1)
Love this mod, thanks so much for maintaining it. Is the dropbox version compatible with 1.3.1?
@Grilor
Update is submitted within the next 30 minutes.
Check out the dropbox link for a quicker 1.3.1 update :)
Thx for the feedback!
will you be updating this to work with 1.3.1? I hope so i like this plugin. works great on my server. thanks and keep up the great work
is there going to be an update for 1.3.1? i likes this for my family server thanks
@Arachan
https://dl.dropbox.com/u/26476995/FixIt.jar
Download and start it. On every start/reload it will clear all effects of the online players.
On every player join it will clear the effect, too.
Additionally you can run /fix anytime to clear the effect of all online players.
(Sorry I'm unable to remove the effects for player who are offline!)
@xGh0sTkiLLeRx
Am I correct in thinking that each player with the issue will have to join the server and log in to remove the effects? Because that would be a bit annoying, I was just briefly trying the plugin and so none of them really know how to login etc.
Could I delete their player files? Or would that be overkill? :)
If it's not too much trouble could you make the fix that'll clear the effects?
Thanks a lot, arachan.
@Arachan
Yeah this is because the blindness/slowness is saved to the players file.
You have 3 choices
Hello,
I seem to have a problem... I removed this plugin from my /plugins directory while my server was down, and now when I run the server everyone is stuck in the jail with the blindness and slowness, even though the plugin shouldn't be active. Any ideas of how to fix?
Thanks, arachan.
@Ghukek
Well basically not a bad idea.
Put I'm not sure how to promote a user.
I could write my own rank system/plugin -> too much work.
Or I can hook into PEX groups/rank plugins.
Would require some work for me to gather the API methods (if available)...
I'd like to suggest that you have it auto-promote people who put in the password. I'm using this on my server to help decrease moderator workload. Before this plugin, a default was not able to leave the spawn jail until they had read the rules and then messaged a mod with the password as instructed to them in the rules. Now they just have to do /login password and they're good. I've allowed them to warp, so now defaults can leave the spawn after they put in the password, but they still have to ask to become a member. I currently have it so they are supposed to ask for member after they warp out of the spawn jail, but it'd be nice if that were a feature.
I'm probably going to get sign promote or some plugin to assist me in this until this feature is added.
@xGh0sTkiLLeRx
...Well im too... :P
Yes, it need PEX because its have a ranking system (And I think PEX is the best for this).
It have a Passwordlist-function and a MCBANS feature too... :D
If you want you can test it... I looking at yours... :D