Package me.manossef.semihardcore.data
Class LifeData
java.lang.Object
me.manossef.semihardcore.data.LifeData
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
boolean
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.void
void
void
-
Constructor Details
-
LifeData
-
-
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 configurationdeadPlayersFile
- the deadPlayers.yml file configuration
-
getLives
-
hasLives
-
setLives
-
isDead
-
setDead
-
setAlive
-