Wait for Citizens to load its stored NPCs before migration
This commit is contained in:
parent
13a8f23247
commit
64248beb1e
1 changed files with 145 additions and 6 deletions
|
|
@ -41,7 +41,7 @@ public final class DuneLobby extends JavaPlugin implements Listener, CommandExec
|
|||
@Override public boolean shouldGenerateStructures() { return false; }
|
||||
}
|
||||
@Override public void onEnable() {
|
||||
saveDefaultConfig(); roleKey=new NamespacedKey(this,"role"); com.dunerealms.npc.CitizensBridge.start(this,roleKey);
|
||||
saveDefaultConfig(); roleKey=new NamespacedKey(this,"role"); com.dunerealms.npc.CitizensBridge.start(this, () -> { if(lobby!=null)ensureNpcs(); }, roleKey);
|
||||
getCommand("lobby").setExecutor(this); getCommand("dunelobby").setExecutor(this);
|
||||
Bukkit.getPluginManager().registerEvents(this,this);
|
||||
Bukkit.getMessenger().registerOutgoingPluginChannel(this,"BungeeCord");
|
||||
|
|
|
|||
Loading…
Reference in a new issue

Staff