Implement new API

This commit is contained in:
fullwall 2019-01-18 01:55:31 +08:00
parent a21d16c581
commit 71b8744060

View File

@ -379,6 +379,15 @@ public class Citizens extends JavaPlugin implements CitizensPlugin {
}, delay, delay);
}
@Override
public void setDefaultNPCDataStore(NPCDataStore store) {
saves.storeAll(npcRegistry);
saves.saveToDiskImmediate();
despawnNPCs();
this.saves = store;
this.npcRegistry = new CitizensNPCRegistry(saves);
}
private void setupEconomy() {
try {
RegisteredServiceProvider<Economy> provider = Bukkit.getServicesManager().getRegistration(Economy.class);