mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-24 01:58:16 +01:00
Implement new API
This commit is contained in:
parent
a21d16c581
commit
71b8744060
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user