Class JsonDataStore

java.lang.Object
com.burchard36.api.data.json.JsonDataStore
All Implemented Interfaces:
DataStore, FileDataStore, org.bukkit.event.Listener

public class JsonDataStore extends Object implements FileDataStore, org.bukkit.event.Listener
  • Field Details

  • Constructor Details

    • JsonDataStore

      public JsonDataStore(BurchAPI api)
  • Method Details

    • onEnable

      public void onEnable()
      Description copied from interface: DataStore
      When the data store first gets initialized
      Specified by:
      onEnable in interface DataStore
    • onReload

      public void onReload()
      Description copied from interface: DataStore
      When a reload call is called on the data store
      Specified by:
      onReload in interface DataStore
    • onDisable

      public void onDisable()
      Specified by:
      onDisable in interface DataStore
    • asFile

      protected String asFile(UUID uuid)
    • dataFiles

      public List<Class<? extends JsonDataFile>> dataFiles()
      Description copied from interface: FileDataStore
      List of classes you want a DataStore to automatically load on startup
      Specified by:
      dataFiles in interface FileDataStore
      Returns:
    • autoSaveTask

      public org.bukkit.scheduler.BukkitTask autoSaveTask()
      Specified by:
      autoSaveTask in interface FileDataStore