mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-06 07:43:36 +00:00
fancynpcs, fancyholograms: Add isLoaded methods (#107)
This commit is contained in:
@@ -26,6 +26,8 @@ public interface NpcManager {
|
||||
|
||||
void loadNpcs();
|
||||
|
||||
boolean isLoaded();
|
||||
|
||||
void reloadNpcs();
|
||||
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user