[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.
Nice plugin, but could you add a default amount of lives for every player in the config settings, and maybe some custom messages to configure for the player to see when they are out of lives and try to connect. On my bungeecord server I'm testing right now it simply says "You have died" and I'd like to be able to direct them to my donor shop to buy more lives if they want to. In fact a message in-game with the new 1.8 large style text on the screen would be great to tell a player how many lives they have left or something like "this is your last life you will be banned on your next death" and again it would be great if these can be customized by the server admin in the config. I hope you will consider these additions. Thanks for the great plugin, and keep up the good work.
@walterrocks91
Thank you!
@DakAttack8
With the newest update I am putting out now, it includes a timeframe option in the config, which you can set to SECOND, MINUTE, HOUR, or DAY which will in turn change how the bantime option plays out, so bantime would be 1 hour, if your bantime variable was 1 and your timeframe was HOUR.
About to post 2 new DeathBans files, please reset your config.yml for deathbans so that it will get updated if you are using an older version.
@SecretAltXXXxxx
Then just do that, don't mean to seem rude but if you really wanted the source code right away you should have done that, right away :p
@walterrocks91
we can just rip it with a decompiler, why bother even waiting.
@SecretAltXXXxxx
I will supply the source code if multiple people ask for it, as it is the same code for both 1.7 & 1.8 :p, just wait for more to ask :)
@DakAttack8
Currently it is just in seconds, I think you can get the fact that there are 60 seconds in 1 minute, although if multiple people want me to add a seconds/minutes/hours/days etc. timeframe that is configurable, I can do that.
Can you add a deathban timeframe, meaning we can ban them for 1 minute.
Please can you supply me 1.7 source :D Great plugin seems.
@Mattimussi
There is a way to set the ban length in the config, or at least should be.. is it not there?
Edit: also, thank you! this is my first upload to bukkit and it's gotten great support so far!
Great plugin, thank you!
Is there any way to set the ban-length?
@bigtuzi
Right away! working on it now :)
Edit: Released a new 1.8 & 1.7 version with configurable starting lives :) just wait for the bukkit staff to accept it!
Please add the starting number of lives into the config.Thanks!
@DakAttack8
Will do, working on it now!
Also, I plan to release versions for both 1.7 & 1.8 because of how unstable 1.8 is right now.
Edit: Just uploaded the file, please wait until they accept it :)
Please update to 1.8 thanks!