All docs
LifeSteal Core DocumentsConfig and Lang files
LifeSteal Core

Config and Lang files

After your plugin has been setup, you will see a new folder: /mods/core.tc_LifestealCore click on it, and you will see a bunch of .json files.

The 2 you should be the most interested in are the config.json and the lang.json you can customize them however you'd like!

config.json

Spoiler — click to reveal

Spoiler — click to reveal

{
  "WithdrawHeartItemId": "Lifesteal_Heart", // The heart item that is given when for the withdraw command, use a multipier of 1 heart!!
  "HeartHealthValue": 10, // Default heart health value (This is what the withdraw will use)
  "MaxHealth": 300, // The maximum health a player can have
  "BeaconItemIds": [ // The list of beacon items (They most be listed here to work!)
    "Lifesteal_Revive_Beacon"
  ],
  "BeaconActiveParticle": "ReviveBeacon_Reviving", // The particle that would be spawned when the beacon is active (reviving), recommended a particle with a lifetime of 3 seconds
  "AutoReviveAfterHours": -1, // Auto revive a player after X hours, -1 for never
  "AutoRemoveBeaconOnRevive": false // Auto destroy the beacon after its done reviving
}

lang.json

Spoiler — click to reveal

Spoiler — click to reveal

{
  "HeartConsumed": "<color:green>You have consumed a heart! You now have {health} health.</color>", // When a player consumes an heart
  "ExceededMaxWithdraw": "<color:red>You don't have enough health to withdraw this much hearts! ({max})</color>", // When a player tried to withdraw more hearts than he can
  "ExceededHealthLimit": "<color:red>You have the maximum amount of health!</color>", // When a player tried to consume an heart while having the maximum health possible
  "Withdraw": "<color:green>You have withdrawn {amount} hearts!</color> | <color:red>You lost {lost} health.</color>", // When a player withdraws hearts
  "Kick": "<color:red>You lost all your health! Someone need to revive you!</color>", // The kick message when the player can't join anymore
  "RevivedPlayer": "<color:green>You have revived {target}!</color>", // When a player revives a player
  "RevivingPlayer": "<color:green>You started reviving {target}!</color>", // When a player starts reviving a player
  "AlreadyRevivingError": "<color:green>This beacon is reviving {reviving}, {timeLeft} minutes left!</color>", // When a player interacts with an active beacon
  "LeaderboardsListTitle": "<color:gold>Available Leaderboards:</color>", // The title of the leaderboard list command result
  "LeaderboardChatFormat": "<color:green>- {name}</color>", // The leaderboard result format of the leaderboard list command
  "LeaderboardDoesntExistsError": "<color:red>Leaderboard {tried} doesn't exists!</color>" // When a player tries to open a leaderboard that doesn't exists
}