Second Chance 2.5_02

Help your friends get back up on their feet!

  1. blaxout1213
    Native Minecraft Version:
    1.16
    Tested Minecraft Versions:
    • 1.16
    • 1.17
    Second chance gives your friends (and enemies) a second chance before they finally go down.

    Upon taking a hit that would normally mean your end, you are instead locked in place unable to move or break blocks (Incapacitated). Your health is refilled and begins ticking downwards, also you are still vulnerable to attacks. If anyone comes up and right clicks on you, you are revived to 3 hearts with a cool-down timer to prevent this from happening again.

    There was a youtube video showing this off, but its been taken down at this point, so I'll probably have to make one myself. Coming soon™

    Any questions/comments/concerns/hatemail can be sent through discord for a more immediate response. Feel free to send me a message, I will get to you a lot faster than through spigot.

    dimwit10⁵#8052


    Feature
    • Revive your fallen friends with a single right click
    Config file
    The config is heavily commented, and should be easy enough to understand. I'll post the config here anyways so you can see what is configurable
    Code (YAML):
    #Please note, there are no failsafes in the code, if you configure something that doesnt make sense, strange things will happen.
    #Common formula variables
    # r = number of times revived.
    # m = max health of the player
    # h = lowest health of the player had while downed.
    # c = current health.
    # f = current player fire ticks. 20 = 1 second of the player being on fire.
    GeneralOptions
    :
     #If a players current health is under this when attacked, they'll instantly die instead of being downed.
      #-20 means a player at 20 health needs 40 damage in one hit to instantly die, while -5 only needs 25
      OverKill
    : -20
      #Should leftover damage bleed through to downed health? The damage dealt to downed health is modified by the bleedthrough multiplier
      BleedThrough
    : true
      #Should we make a small ding noise to the killer when a player bleeds out?
      DingWhenBledout
    : true
      #Should we allow beacons to apply their regeneration effect to downed players?
      BeaconRegen
    : true
    DownedOptions
    :
     #How fast should players walk while down, this doesnt affect swimming speed.
      CrawlSpeed
    : 0.07
      #Should players aquire the glowing potion effect?
      Glow
    : true
      #Seconds of resistance 5 to apply to players as they get downed. This makes them impervious to all damage for the duration. 0.0 Disables
      Resistance
    : 3.1
      #Should the regeneration buff be removed when down? Note: This doesn't affect regeneration being removed when damaged while down, just the hit downing the player
      RemoveRegeneration
    : true
      #Should players be invisible to monsters while down?
      MobInvisibility
    : false
      #How many blocks should we check for players around before considering someone totally alone? Should they be alone, players cannot go down. 0 means infiinte range. It's probably a good idea to keep this the same as the range in messages.
      TotallyAloneRange
    : 0.0
      Burnouts
    :
       #This is an option which does several things when true. First, it makes all downed players immune to lava/fire direct damage. However, if the player is on fire when they take bleedout damage, their max health is reduced by the below formula. This lost HP can only be restored by a fully charged beacon set to regeneration.
        #Downed players on fire will not stop burning naturally, they must be extinguished by water, or by a revive.
        AllowBurnOuts
    : false
        #I don't have it complicated, this will remove a full heart for each bleedout tick by default. Players can be burned down to a minimum of 1 HP.
        BurnoutDamageFormula
    : "-2"
      #Multiplier applied to damage to/from a downed player. A multiplier of 0 cancels the attack entirely.
      Damage
    :
        Outgoing
    : 0.0
        #This only multiplies damage coming from other entities, environmental damage is unaffected.
        Incoming
    : 0.33
        #This multiplies damage done to downed health as part of the initial downing blow. Does nothing if bleedthrogh is off
        Bleedthrough
    : 1.0
    ReviveOptions
    :
     #Should the revived player recieve absorption so they're not immediately downed again (aka sandbagged)
      Absorption
    :
        Enabled
    : true
        Length
    : 7
        #Strength of the absorption Note: potion power starts at 0, setting this to 1 applies Absorption II
        Power
    : 1
      #Should players be revived by thrown instant health potions? This can allow self revives if true
      ThrowRevive
    : false
      #Should a kill revive a player?
      KillRevive
    : false
      #Should a revive extinguish fire?
      ReviveExtinguish
    : true
      #How likely is a player to revive themselves? This is a percentage, with 1.0 being 100%
      SelfReviveChance
    : 0.05
      #Settings relating to teams
      Teams
    :
       #Should we care at all about teams?
        RespectTeams
    : false
        #How to handle teamless players. This has several options.
        #ALL: Teamless players belong to all teams, and can revive/be revived by anyone.
        #OWN: Teamless players belong to a team of their own, and can revive/be revived by other teamless players only.
        #NONE: Teamless players belong to no team, and cannot revive/be revived.
        IndependentBehavior
    : ALL
      #Options on how much health to give after a successful revive
      HealthFormula
    : "0.1*m"
      #Should we delay the revive in some way?
      Delay
    :
       #This has several options:
        #REGENERATION: Applies regeneration to the target, allowing them to heal and reviving them when theyre at full health
        #TIME: Applies regeneration to the target, reviving them when the regeneration buff expires naturally.
        #NONE: Instantly revives the target
        #With any option, the regeneration buff is removed when a downed player is damaged.
        Type
    : REGENERATION
        #For TIME setting, how long will the revive take, for REGENERATION setting, how long will the regeneration last.
        TimeFormula
    : "20"
        #For REGENERATION setting, how strong will the buff be?
        Power
    : 1
    CooldownOptions
    :
      Cooldown
    :
       #Should a cooldown be enforced, stopping players from going down again within a certain amount of minutes?
        Enabled
    : false
        #For how many minutes?
        Time
    : 2.0
        #Should the cooldown be cancelled when you heal?
        CanceledByHeal
    : false
      #How long should we wait before a down is forgiven (in minutes)
      DownResetTime
    : 15.0
    BleedingOptions
    :
      Health
    :
       #How much health should a freshly downed player recieve?
        DownedHealthFormula
    : "1*m"
        #How long do we wait between damage ticks?
        Decay
    : 3
        #The damage formula of how much damage to deal with each bleedout tick. Supports a number of variables.
        DamageFormula
    : "1 + (1*r)"

    Death messages and titles are configurable too, just in a seperate file

    Code (YAML):
    #Should announcements be sent to players
    Announcements
    :
      Enabled
    : true
      #Should the custom bleedout messages be used if a player ticks out while down?
      BleedOutMessagesEnabled
    : true
      #Should the Message -> Death text be used?
      DeathAnnounce
    : false
      #How far to send messages/titles
      Range
    : 256
      #Should we use titles? If false, will use standard player chat.
      Title
    :
        Enabled
    : false
        #Fade in / sustain / fade out times, in seconds
        FadeIn
    : 0.5
        Time
    : 5
        FadeOut
    : 0.5
      Messages
    :
     #Customizable messages for everything $ represents the section symbol, allowing for colors
      #If a message starts with %, it will need a pair of ' surrounding it
        Downed
    : $4%p has been incapacitated!
        Revived
    : $1%p has been revived!
        SelfRevive
    : $1%p is too stubborn to die!
        Death
    : $8No one revived %p.
        ReviveIncoming
    : You will be revived in %s seconds
        ReviveHeal
    : You will be revived when you reach full health
        ReviveCancelled
    : Damage taken, revive has been cancelled
        ReviveOther
    : '%p is being revived!'
        #Custom messages for when a player dies to a bleedout tick, these will replace the default messages
        BleedOut
    :
          CONTACT
    : '%p bled out after hugging a cactus.'
          DRAGON_BREATH
    : '%p bled out after being burnt by the dragon.'
          DROWNING
    : '%p has really bad memes'
          ENTITY_ATTACK
    : '%p bled out after being attacked.'
          EXPLODE
    : '%p bled out after an explosion.'
          FALL
    : '%p bled out after falling.'
          FALLING_BLOCK
    : '%p bled out after being crushed.'
          FIRE
    : '%p finally burned away.'
          FLY_INTO_WALL
    : '%p bled out after smashing a wall.'
          HOT_FLOOR
    : '%p bled out after stepping on magma.'
          LAVA
    : '%p finally burned away after a lava encounter.'
          LIGHTNING
    : '%p bled out after being struck by lightning.'
          MAGIC
    : '%p bled out after magic happened.'
          POISON
    : '%p succomed to the poison.'
          PROJECTILE
    : '%p bled out after being shot.'
          STARVATION
    : '%p finally starved.'
          SUFFOCATION
    : '%p couldn''t expel the blocks from their lungs.'
          SUICIDE
    : '%p finally ended it.'
          THORNS
    : '%p bled out after hitting thorny armor.'
          VOID
    : '%p had the void stare back at it.'
          WITHER
    : '%p finally withered away.'
          UNKNOWN
    : '%p bled out.'
          Killer
    : '%k finally killed %p.'
     
    Oh, and let's not forget permissions! There's only a couple, as follows.

    Code (Text):
    secondchance.down:
        description: Allows a player to go down
        default: true
     secondchance.revive:
        description: Allows a player to revive another through right click
        default: true
    Ethon6 likes this.

Recent Reviews

  1. Gustavo_Player
    Gustavo_Player
    5/5,
    Version: 2.5_02
    I'm still using this plugin! :3
  2. 1BitElectricFolf
    1BitElectricFolf
    5/5,
    Version: 2.5_01
    This is a very nice plugin as i've been looking for something like this for a while. I do want to make a suggestion: Is it possible to make the downed user use the crawl animation?
    1. blaxout1213
      Author's Response
      While I think it is technically possible, it wouldnt be very pleasant, and would cause a ton of updating on my end, as it's not in the Spigot API. Until it does get added in, we'll have to do with the sneaking animation.

      As soon as it is though, you can bet ill be sniffing it out to put in.
  3. Minestick
    Minestick
    5/5,
    Version: 2.5
    Not only the plugin is suitable for PvP servers, the features were optimized to be lovable on SMP as well! It encourages players go on their adventure with a friend rather than play the game alone as if it was single-player. I'd very much recommend it to any types of server!
  4. jfdkjfakdkm
    jfdkjfakdkm
    5/5,
    Version: 2.2
    Very nice plugin, but players who are down can still harm other players, you can fix that please
  5. CleCharge9731
    CleCharge9731
    5/5,
    Version: 2.2
    Please add permissions, thanks
    ---------------------------------------------------------
  6. Tommy_Vic
    Tommy_Vic
    5/5,
    Version: 2.2
    Amazing plugin
    But please add team to it or player will revive then knock the victim again and again
    This plugin can not work with out team
  7. SmileyyyFaceee
    SmileyyyFaceee
    5/5,
    Version: 2.2
    Plugin works nicely on my server. Worked personally with the dev. Total cuck, but totally capable at doing what needs to be done.
  8. qsefthuopq
    qsefthuopq
    5/5,
    Version: 2.2
    I Tested it that it worked fine in 1.12.2 and got errors in 1.10.2 .
  9. Gustavo_Player
    Gustavo_Player
    5/5,
    Version: 2.1
    Works in 1.12.2? *thinking*
    1. blaxout1213
      Author's Response
      It should, nothing 1.13 exclusive has been added
  10. firebastard
    firebastard
    4/5,
    Version: v1.5
    Not bad, but I like the idea of the old cooldown system, and that option is broken in the current build.