Class LifeData

java.lang.Object
me.manossef.semihardcore.data.LifeData

public class LifeData extends Object
Stores the internal life data for the plugin. The plugin creates an instance of this class when it's enabled, but does not allow any outside classes to access it to prevent fatal errors. Creating any new instances of this class has no effect on the plugin. Therefore, this class should be of no interest to any add-ons.
  • Constructor Details

  • Method Details

    • saveToFile

      public void saveToFile(org.bukkit.configuration.file.FileConfiguration livesFile, org.bukkit.configuration.file.FileConfiguration deadPlayersFile)
      Saves the life data to the lives.yml and deadPlayers.yml files.
      Parameters:
      livesFile - the lives.yml file configuration
      deadPlayersFile - the deadPlayers.yml file configuration
    • getLives

      public int getLives(UUID uuid)
    • hasLives

      public boolean hasLives(UUID uuid)
    • setLives

      public void setLives(UUID uuid, int lives)
    • isDead

      public boolean isDead(UUID uuid)
    • setDead

      public void setDead(UUID uuid)
    • setAlive

      public void setAlive(UUID uuid)