Class PlayerJsonDataStore

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

public class PlayerJsonDataStore extends Object implements FileDataStore, org.bukkit.event.Listener
The default data store for PlayerData provided by BurchAPI
  • Field Details

  • Constructor Details

    • PlayerJsonDataStore

      public PlayerJsonDataStore(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
    • 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
    • asyncPreLogin

      public void asyncPreLogin(org.bukkit.event.player.AsyncPlayerPreLoginEvent event)