Hi there, Im looking for a plugin where we can set a time in which the person is banned for when he dies (I have found lots of plugins like this but most of them are outdated) and aswell where you can set different ban time for different ranks, (I use groupmanager), for example if someone of the rank "Member" dies he gets banned for 6 hours but if a player with the rank "Trusted" dies he gets banned for 5 hours... Anyways have a good day and thank you for your attention, rodboy
Try one of the plugins that already exist. Not specifically noting it doesn't mean it doesn't work on the latest version of CB.
Not really helpful if you aren't a developer rodboy http://dev.bukkit.org/bukkit-plugins/apocban/ or http://dev.bukkit.org/bukkit-plugins/deathkick/
Hey, Thank you for the reply, I have tried some but none of them have the feature which will let me add different times for different ranks, thanks for the help! Ill keep on trying... Gonna try this later when I have time! thanks for the help! EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Minecraft "server.properties" Change: hardcore-mode=true People will not have access to join the server if they later die.
I can do this but , timtower what is the simplest way to do a countdown that goes threw shutdowns ?? for the temp ban
JoTyler You could connect to an MySQL database to track the cound down. But that will require a site like Multicraft.
I hope this helps: Download: http://itsteddy.co.uk/downloads/Death_Ban.jar Source: https://gist.github.com/TeddyTheTeddy/8081128 Video: (A view on how it was coded ) Permissions: deathban.ignore - Default: op deathban.banLength.1 deathban.banLength.2 deathban.banLength.3 deathban.banLength.4 deathban.banLength.5 deathban.banLength.6 deathban.banLength.7 deathban.banLength.8 deathban.banLength.9 deathban.banLength.10 deathban.banLength.11 deathban.banLength.12 - Default: everyone If a player has none of these permissions they will be banned permanently, also they are in hours.
If you look it has been tested slightly but it could have bugs. I do supply source code so if I cant fix it because of time I have you can ask someone else JoTyler I know it could have been done better and simpler, now, but when I was coding I assumed my code was better than what it is
TeddyTheTeddy ok , so you not gonna fix it now ? I mean I can't get to a comp anytime soon so I can't code this until Sunday but still ....
More of a comment, one developer to another, as to a simpler alternative to SQL, rather than actual instruction on how to do it. It's pretty useless unless you've got some Java experience already. PrintWriter/FileWriter StringTokenizer BufferedReader
pokepal101 timtower. Pokepal I know how do it but I don't 100% understand how it works and Tim I would NEVER use MySQL ... Lol , I would run a runnable to remove a set amount from a list or the players data useing the idea of pulling into an array list then checking on login if you are in the list then kick for ban
When players are killed, add them to an ArrayList, then when the plugin is disabled remove them from the ArrayList. In the the repeatingTask have a IF statement that checks if they are in the ArrayList if they are not set a variable in the config under their name as an integer of the amount of ticks they have left in ban mode. Also put their name in another config list. When the plugin is started up, get the players that are in the list and start up their timers again.