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 BurchAPI
protected org.bukkit.scheduler.BukkitTask
protected HashMap<UUID,JsonPlayerDataFile>
protected Class<? extends JsonPlayerDataFile>
protected PluginJsonWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
asyncPreLogin(org.bukkit.event.player.AsyncPlayerPreLoginEvent event)
org.bukkit.scheduler.BukkitTask
List<Class<? extends JsonDataFile>>
List of classes you want a DataStore to automatically load on startupvoid
void
onEnable()
When the data store first gets initializedvoid
onReload()
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:DataStore
When the data store first gets initialized -
onReload
public void onReload()Description copied from interface:DataStore
When a reload call is called on the data store -
onDisable
public void onDisable() -
dataFiles
Description copied from interface:FileDataStore
List of classes you want a DataStore to automatically load on startup- Specified by:
dataFiles
in interfaceFileDataStore
- Returns:
-
autoSaveTask
public org.bukkit.scheduler.BukkitTask autoSaveTask()- Specified by:
autoSaveTask
in interfaceFileDataStore
-
asyncPreLogin
public void asyncPreLogin(org.bukkit.event.player.AsyncPlayerPreLoginEvent event)
-