Handle player data
This page is about how to handle player data while enabling or disabling a staff mod.
Introduction
How to create it ?
Predefined data classes
Create your data handler
List<DataHandler<Player>> data = Arrays.asList(
new InventoryDataHandler(),
new PotionDataHandler(),
new GameModeDataHandler(),
new HealthDataHandler(),
new FoodDataHandler()
);
PlayerDataHandler dataHandler = new PlayerDataHandler(data);Create your own data class
Last updated
Was this helpful?