fancynpcs, fancyholograms: Add isLoaded methods (#107)

This commit is contained in:
LeonJS_
2025-09-14 09:59:19 +02:00
committed by GitHub
parent 3b216d450b
commit 46c88da9a8
4 changed files with 14 additions and 0 deletions

View File

@@ -26,6 +26,8 @@ public interface NpcManager {
void loadNpcs();
boolean isLoaded();
void reloadNpcs();
}

View File

@@ -440,6 +440,11 @@ public class NpcManagerImpl implements NpcManager {
this.setLoaded();
}
@Override
public boolean isLoaded() {
return isLoaded;
}
private void setLoaded() {
isLoaded = true;
new NpcsLoadedEvent().callEvent();