Class IOManager

java.lang.Object
com.sucy.skill.data.io.IOManager
Direct Known Subclasses:
ConfigIO, SQLIO

public abstract class IOManager extends Object
Base class for managers that handle saving and loading player data
  • Field Details

    • api

      protected final SkillAPI api
      API reference
  • Method Details

    • loadAll

      public abstract HashMap<String,PlayerAccounts> loadAll()
      Loads player data for all online players
      Returns:
      loaded player data
    • loadData

      public abstract PlayerAccounts loadData(org.bukkit.OfflinePlayer player)
      Loads data for the player
      Parameters:
      player - player to load for
      Returns:
      loaded player data
    • saveData

      public abstract void saveData(PlayerAccounts data)
      Saves the player's data
      Parameters:
      data - data to save
    • saveAll

      public void saveAll()
      Saves all player data
    • load

      protected PlayerAccounts load(org.bukkit.OfflinePlayer player, mc.promcteam.engine.mccore.config.parse.DataSection file)
      Loads data from the DataSection for the given player
      Parameters:
      player - player to load for
      file - DataSection containing the account info
      Returns:
      the loaded player account data
    • save

      protected mc.promcteam.engine.mccore.config.parse.DataSection save(PlayerAccounts data)