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

    • LifeData

      public LifeData(Map<UUID,Integer> lives, int livesLimit)
  • Method Details

    • saveToFile

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

      public int getLives(UUID uuid)
    • hasLives

      public boolean hasLives(UUID uuid)
    • setLives

      public int setLives(UUID uuid, int lives)