HomeJavaModsLife Steal | SMP | Player Lives
Life Steal | SMP | Player Lives
Player Lives
Simple plugin for punishing your players for dying!

Description

With this plugin you can introduce lives on your server!
Someone died? He now lost a life!

[​IMG]

Someone depleted all lives? Now he will be banned! For few hours or forever! Players can renew their lives with eating given materials. You can define which material how many lives will restore.
Everything is simply configurable in 3 files

Custom life items

Now you can add custom items that can give you lives!

[​IMG]

Life Steal

You can enable life steal in config.yml!

Different lives

You can set how lives should be displayed. As variable or as hearts above player experience bar.

Different punishments


[​IMG]

Try it now!

Installation

Commands
Permission
Placeholders
Custom Events
SoftDepend
config.yml
Spoiler: config.yml
Code (YAML):

#=========================================
#=========== General settings ============
#=========================================

#Starting amount of player lifes
defaultLivesAmount
: 3

#If lifesType is set to 'HEARTS' this will count as 10 hearts
maxLives
: 10

#Amount of lives resurrected player will have after resurrection
livesAfterPunishment
: 1

#How lives should be displayed
#HEARTS - Lives will be used as hearts in player gui (above experience bar)
#VARIABLE - Lives will be used as variable that can be accessed trough command /lives
livesType
: VARIABLE

#Max amount
#If you want to set max lives per permission change 'maxLivesPermissionBased' to true and then
#configure maxLivesPermissions
maxLivesPermissionBased
: false

#Remember to write from highest to lowest number
#If player won't have any of these permissions standard 'maxLives' value will be used
maxLivesPermissions
:
  10
: playerlives.maxlives.10
  5
: playerlives.maxlives.5
  1
: playerlives.maxlives.1

#=========================================
#=========== Punishment settings =========
#=========================================

#Type of punishment after losing all of lives
#EXILE - Prevents player from joining server
#COMMAND - Preconfigured command is executed
#DROP_ITEMS - Drops all player items
#MONEY - Takes some  money
#NONE - Nothing
deathPunishment
: EXILE

#=========================================
#============ Exile punishment ===========
#=========================================

#Should player be banned from server forever
permanentDeath
: false

#Death time in hours
deathTime
: 2

#Should players be able to resurrect another player
resurrectionEnabled
: true

#Amount of lives needed for resurrections
resurrectionCost
: 1

#=========================================
#========== Command punishment ===========
#=========================================

#Command executed after losing all lives
#You can set multiple commands
punishmentCommands
:
 - "broadcast %player% just lost all lives!"

#=========================================
#========= Drop items punishment =========
#=========================================

#Should items be dropped to world or just inventory be cleared
dropToWorld
: true

#=========================================
#=========== Money punishment ============
#=========================================

#Vault and economy plugin must be installed to use this punishment

#Amount that will be taken from player after losing all livse
moneyToTake
: 500.0

#Punishment that will be used if player don't have enough money
notEnoughMoneyPunishment
: EXILE

#=========================================
#============= Life steal ================
#=========================================

#Should life steal be enabled
lifeStealEnabled
: true

#=========================================
#============= Buying lives ==============
#=========================================

#Should players be able to buy additional live for money
buyableLives
: true

#Cost of life
#that sounds weird D:
lifeCost
: 500

#=========================================
#============= Gaining lives =============
#=========================================

#Allow players to eat items to gain a life
eatingEnabled
: true

#Items that will give player lives
#Here diamond will restore 1 life and diamond block 3 lives
eatableItems
:
  DIAMOND
: 1
  DIAMOND_BLOCK
: 3

#Remember to write 'ID' of your item form customItems.yml
eatableCustomItems
:
  customHeart
: 1

#=====================================
 

lang.yml
Spoiler: lang.yml
Code (YAML):

lang
:
  PREFIX
: "&7[&aPlayerLives&7] &r"
  ADD_SINGLE_LIFE
: "&aYou just got another life!"
  ADD_MULTIPLE_LIVES
: "&aYou just got &7%amount% &alives!"
  ADD_LIVE_SUCCESS
: "&aSuccessfully added &e%amount% &alives to %name%!"
  MAX_LIVES
: "&cYou have reached maximum amount of lives!"
  TAKE_SINGLE_LIFE
: "&cYou just lost a life!"
  TAKE_MULTIPLE_LIVES
: "&cYou just lost &7%amount% &clives!"
  TAKE_LIVE_SUCCESS
: "&aSuccessfully took &e%amount% &alives from %name%!"
  SET_LIVES
: "&aYour lives have been set to %amount%!"
  SET_LIVES_OTHER
: "&aLives of %name% have been set to %amount%"
  CURRENT_LIVES
: "&aYou currently have &e%amount% &alives!"
  CURRENT_LIVES_OTHER
: "&e%name% &acurrently have &e%amount% &alives!"
  PERMISSION_DENIED
: "&cPermission denied!"
  PLAYER_NOT_FOUND
: "&cPlayer not found!"
  DEATH_INFO
: "&cYou are dead!"
  RESURRECT_SUCCESSFUL
: "&aPlayer %name% is now alive!"
  RESURRECT_NOT_ENOUGH_LIVES
: "&aYou don't have enough lives to resurrect someone!"
  RESURRECT_ALREADY_ALIVE
: "&cThis players is already alive!"
  RESURRECT_DISABLED
: "&cResurrection is currently disabled!"
  LIFE_BOUGHT
: "&aYou just bought a life!"
  NOT_ENOUGH_MONEY
: "&cYou don't have enough money!"
  BUYING_LIVES_DISABLED
: "&cThis option is currently disabled!"
 

customItems.yml
Spoiler: customItems.yml
Code (YAML):
customItems:
  firstCustomItem
:
    ID
: "customHeart"
    crafting
:
     - AIR:DIAMOND:AIR
      - DIAMOND:REDSTONE:DIAMOND
      - AIR:DIAMOND:AIR
    result
:
      material
: REDSTONE_BLOCK
      name
: "&c&lCustom heart!"
      amount
: 1
      lore
:
       - "&eUse it to gain another life!"

Please don't write errors and bugs in reviews. If you have any idea how to improve this plugin or having trouble with something just write here :D

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Life Steal | SMP | Player Lives is a free Minecraft Java mod. Compatible with Minecraft 1.13, 1.14, 1.15, 1.16 and newer. Downloaded 2,612 times (via Spigot). Download it and open it directly in the game.

Explore more