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
the plugins looks really good and really promising but is there an feature that kicks player after few secs like the original plugin did?
In reply to bl423_gamer:
You mean kicking a player that log's in and is AFK? Kicking upon entering the wrong password is supported.
Hi, is there going to be a 1.18 versión of this plugin?. If not what problem could it be to install the 1.16 versión in my 1.18 server. Thanks
In reply to Ivan0vichk:
It should work totally fine, it's using safe API's that have not changed in years :)
... if it does not work, please report any bugs you encounter.
Hey, just installed it on my server and it works great! But I was wondering if it's possible to set multiple passwords, thanks!
In reply to thegizmoman:
Multiple accepted passwords or one password per user?
In reply to xghostkillerx:
multiple ones
Great plugin, it works, i only found one issue: if you disconnect while riding a strider, the next time you connect to the server, after the login, the player will teleported to the strider but you are no longer riding it = i lost my whole inventory in lava
In reply to NatoFolgorato:
That's a really special edge case. I'll try to test this :)
Can i disable the ban option.
In reply to mickeydarrenlau:
For now not, but you could set the ban limit to something like 999 - this would probably be sufficient. I'll take a note to add a ban-enabled flag though.
How do I change a password for a user that forgot it after they set it
In reply to KerverozOne:
This is not a plugin for a user specific password. It's one password for the entire server.
Hi, that is a awsome plugin, but there is a problem that made me unstall it, you gotta create a "/trustpeople *nick* " that will make, this trust people not get on the jail, and just play
In reply to poke_esnevon:
Just grant the nopassword permission to your trusted players?!
Great plugin!
However, I'm having an issue where players with the "passwordprotect.nopassword" permission still need to enter the password if they don't have OP privileges.
In reply to rusty_ccv:
Thanks, I'll take a look.
I don't know if this is possible, but can you make the plugin read the Whitelist and exempt players on there from having to log in? I've got players that I don't know well enough to op but are regular enough that I don't mind having to unpassword, and permissions really confuse me
The plugin is FANTASTIC btw!
In reply to Forge_User_27054177:
I've added this to the to-do list.
Are you supposed to spawn at the server default spawn point after a first time login? I keep spawning at random locations..