Ban on Death

Discussion in 'Archived: Plugin Requests' started by rodboy, Dec 15, 2013.

  1. Offline

    rodboy

    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
     
  2. Offline

    jorisk322

    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.
     
  3. Offline

    DoctorDark

  4. Offline

    timtower Administrator Administrator Moderator

    Garris0n likes this.
  5. Offline

    rodboy

    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.
     
    Last edited by a moderator: Jun 5, 2016
  6. Offline

    Mathias Eklund

    UltraHardcore is a fun plugin.
     
  7. Offline

    xNamesi

    Minecraft "server.properties"

    Change:
    hardcore-mode=true

    People will not have access to join the server if they later die.
     
  8. Offline

    timtower Administrator Administrator Moderator

    Isn't a tempban though
     
  9. Offline

    JoTyler

    I can do this but , timtower what is the simplest way to do a countdown that goes threw shutdowns ?? for the temp ban
     
  10. Offline

    xNamesi

    JoTyler You could connect to an MySQL database to track the cound down. But that will require a site like Multicraft.
     
  11. Offline

    TeddyTheTeddy

    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.
     
  12. Offline

    JoTyler

  13. Offline

    AndyMcB1

    Have you tested it??
     
  14. Offline

    TeddyTheTeddy

    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
     
  15. Offline

    JoTyler

    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 ....
     
  16. Offline

    ImJebus

    rodboy I have a plugin but the timer is only set for 60 seconds also with a bypass permission.
     
  17. Offline

    pokepal101

    Or, you know, flat files?
    Code:
    pw.println(p.getName() + ";" + System.currentTimeMillis());
     
  18. Offline

    TeddyTheTeddy


    I dont have the time atm to fix anything, sorry
     
  19. Offline

    JoTyler

  20. Offline

    pokepal101

  21. Offline

    timtower Administrator Administrator Moderator

    And the use of MySQL is kinda useless for such small things
     
  22. Offline

    JoTyler

    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
     
    timtower likes this.
  23. Offline

    Fluxanoia

    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.
     

Share This Page