[DeathBans]
DeathBans
Notice
Currently, I feel as if deathbans is in a 'finished' state, if anyone has anything they would like to see added I will add it if I believe it is worth adding, please remember I am not always free as I am a developer for MineSuperior HCF (CursedHCF), which is taking up most of my free time, again sorry for the lack of updates, however I will repeat myself again - I believe this plugin is in a finished state.
Description
Ever wanted a HCF Server but didn't know how to code? Did you look up deathbans plugins to no avail because they were all outdated? I created this plugin for just those reasons, Currently DeathBans has a simple to use API but is fully functional without knowledge of coding, DeathBans also runs off of a UUID banning system so if you have a long ban time, players cannot bypass that via name changes - Also handles a simple 'lives' system.
Commands
Command | Description | Permission | |
---|---|---|---|
/DeathBans unban | Unbans a player | deathbans.admin | |
/DeathBans editlives | Adds/Takes lives to/from a player | deathbans.admin | |
/DeathBans check | Checks if a player is banned | deathbans.admin | |
/DeathBans exempt | Adds a player to the exemption list | deathbans.admin | |
/DeathBans unexempt | Removes a player from the exemption list | deathbans.admin | |
/DeathBans lives | Checks a players lives | None | |
/DeathBans revive | Revives a player at the cost of 1 of your lives | None |
Configuration
Only copy & paste if your config does not generate correctly.
ban-reason: '&cYou are still deathbanned for &e%remaining%' kick-reason: '&cYou have died, and are now DeathBanned!' ban-length: 90 timeframe: minute lightning-strike: true delay-ban: false prefix: '&f[&cDeathBans&f]' denied-worlds: - 'DENIED_WORLD' perms: diamond: lessened-banlength: 60 timeframe: minute gold: lessened-banlength: 45 timeframe: minute iron: lessened-banlength: 30 timeframe: minute
Permissions
Since people seem to be having troubles with permissions, here is how to use them.
Inside of your config you should have something like this:
perms: diamond: lessened-banlength: 60 timeframe: minute gold: lessened-banlength: 45 timeframe: minute iron: lessened-banlength: 30 timeframe: minute
In this case, 'diamond' is the name of the permission node, prefaced with 'deathbans.' so the entire permission node for diamond would be
'deathbans.diamond', due to lessened-banlength set to 60 and the timeframe set to minutes, it removes a total of 60 minutes from the ban time when a player is given deathbans.diamond as a permission node.
Message Variables
Only current Message Variable is %remaining% in ban-message, which shows the remaining time on the ban.
TODO
- #1 - DeathBans API - Finish the DeathBans API
- #2 - Add bungeecord support - Add bungee support for bans.
HI!it is a very useful plugin.but it have some problem in my server.went the player was banned,i can't unban the player,is this a bug?version3.9.2
good!
Im getting 2 deathmessages
Can you fix it please?
I am having a similar issue...All the configs are empty. :( Really need a plugin like this, so it would be awesome if you could fix it soon!!! :)
@Sallevin
Interesting, I haven't seen an issue like that yet.. however i'm not at my house right now, and don't plan to be fixing anything bukkit-wise for the next 3 days (the time i'm gonna be gone for) if you can wait till then, I will update this and make sure it does generate a config.
Hi, your Plugin is exactly what I am looking for. Unfortunately it doesn't load ANY config when installed. So I copied your example from here, but the plugin overwrites it all the time with the default settings... :(
@blaxout1213
That is on your end, my plugin only supports giving a player lives, however if you have anyone currently developing plugins for you im sure they could manage to add that.
@OriginalSlime
More or less, the permissions are pretty self explanatory, but I can explain them again.
iron: - This is the name of the permission, the perm node would be `deathbans.iron`
lessened-banlength: 30 - This is the lessened time for bans, in this case it is 30 less
timeframe: minute - This specifies the timeframe for the lessened ban length, so this would mean that deathbans.iron would give a lessened ban length of 30 minutes.
Would it be possible to have the lives reset every X hours/days/weeks ?
can you please make permissions easier to use or explain me how to use i set all the ranks and it doesnt work does it work with group manager?
Thought I should throw this out there, since my name in game is no longer 'walterrocks91' my new IGN is 'EclipsePvP', just so you know ;)
Released a new version of deathbans (First one in a while!), complete revamp of the commands system, which now allows plugin developers to run commands straight through deathbans by creating a class that extends DBCommand or creating a new DBCommand object, and registering it with Commands.register(command); and for all of you non-plugin developers, I added per-world management of bans, so you can disable bans in selected worlds.
@thekerbey
I can easily add that if you would like, you will have to give me a bit though seeing as its 3am for me so I won't be doing that right now :P
Is there a way for this plugin to work with multiverse? I have a guest world, and i would like to only make it so that only guests in guests world get banned or temp banned for dying.
*Note* Currently deathbans has a config setting to delay the ban, if having 'EventException's from any plugin, try to enable delay-ban and it COULD fix it, as deathbans kicks the player before any other plugin can do something with them, and in turn could make another plugin give a EventException. Thanks <3
[IMPORTANT] Fixed a bug when reloading / restarting the server, ban timer's & unbanning would completely stop working. Also added case insensitivity to anything that requires another players name.
Just uploaded a new version of DeathBans, contains Donor Permissions completely configurable to your liking, you can have 10 donor permissions, or you can have 10000 if you want to spend the time making all of them, please remember ALL donor permissions are prefixed with 'deathbans.' so do NOT add anything like 'myawesomeserver.diamondrankisop.mlg420blazeit' as it can, and will mess up the config. Thanks!
@Retsiem
Sent a pm to you with some contact info
@walterrocks91
Ah, well when I removed your plugin I killed my other account on my test server and I respawned without my items. Any way you can give me some contact information so we can communicate easier? Thanks!
EDIT: It's only items on my hotbar that are being saved and armor possibly
@Retsiem
This is not a bug as it is nothing to do with my plugin, that would be part of the 'PlayerDeathEvent' drops system, which I have done nothing to alter within DeathBans. It is most likely a bug with another plugin on your server.
Edit: Also, DeathBans v4.0 (Revamped) is still not on bukkit which I find quite strange, normally it takes them a few minutes, but this time has taken multiple hours.