mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-23 02:55:45 +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