Package com.burchard36.api.data.json
Class PlayerJsonDataStore
java.lang.Object
com.burchard36.api.data.json.PlayerJsonDataStore
- All Implemented Interfaces:
DataStore,FileDataStore,org.bukkit.event.Listener
The default data store for PlayerData provided by BurchAPI
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BurchAPIprotected org.bukkit.scheduler.BukkitTaskprotected HashMap<UUID,JsonPlayerDataFile>protected Class<? extends JsonPlayerDataFile>protected PluginJsonWriter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidasyncPreLogin(org.bukkit.event.player.AsyncPlayerPreLoginEvent event)org.bukkit.scheduler.BukkitTaskList<Class<? extends JsonDataFile>>List of classes you want a DataStore to automatically load on startupvoidvoidonEnable()When the data store first gets initializedvoidonReload()When a reload call is called on the data store
-
Field Details
-
api
-
writer
-
autoSaveTask
protected org.bukkit.scheduler.BukkitTask autoSaveTask -
cache
-
dataClass
-
-
Constructor Details
-
PlayerJsonDataStore
-
-
Method Details
-
onEnable
public void onEnable()Description copied from interface:DataStoreWhen the data store first gets initialized -
onReload
public void onReload()Description copied from interface:DataStoreWhen a reload call is called on the data store -
onDisable
public void onDisable() -
dataFiles
Description copied from interface:FileDataStoreList of classes you want a DataStore to automatically load on startup- Specified by:
dataFilesin interfaceFileDataStore- Returns:
-
autoSaveTask
public org.bukkit.scheduler.BukkitTask autoSaveTask()- Specified by:
autoSaveTaskin interfaceFileDataStore
-
asyncPreLogin
public void asyncPreLogin(org.bukkit.event.player.AsyncPlayerPreLoginEvent event)
-