Life Steal | SMP | Player Lives icon

Life Steal | SMP | Player Lives -----

Manage lives of players on your server!



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

  • You can specify punishment that will be done after losing all lives
  • Exile - Player will be exiled from server for given amount of time or for ever
  • Command - Commands will be executed byDrop items - Player will lose all items
  • Money - Player will be taken from player account
  • None - Nothing :D

[​IMG]

Try it now!

Installation

  • Place .jar file in plugins folder
  • Restart server
  • Configure everything how you want
Commands
  • /lives - Command for checking and managing player lives
  • /resurrect - Command for resurrecting players
  • /buylife - Command to buy life using server economy
Permission
  • playerlives.check.self - Permission to check your own lives
  • playerlives.check.other - Permission to check other's lives
  • playerlives.add - Permission to add player lives
  • playerlives.take - Permission to take player lives
  • playerlives.set - Permission to set player lives
  • playerlives.reload - Permission to reload plugin (config.yml and lang.yml)
  • playerlives.resurrect - Permission to resurrect other players
  • playerlives.forceresurrect - Permission to resurrect other players bypassing lives limits
  • playerlives.buylife - Permission to /buylife command
  • playerlives.giveheart - Permission to give eatable item
Placeholders
  • %playerlives_currentAmount%
Custom Events
  • LifeAddEvent - Triggers when player gets another life
  • LifeSetEvent - Triggers when someone sets player life to given amount
  • LifeTakeEvent - Triggers when player loses a life
  • LivesEndEvent - Triggers when player runs out of lives
SoftDepend
  • Vault
  • PlaceholderAPI
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
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
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
Resource Information
Author:
----------
Total Downloads: 2,511
First Release: Dec 21, 2021
Last Update: Jan 23, 2022
Category: ---------------
All-Time Rating:
9 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings