Translations:Implementation and Events/162/en
From DragonMineZ Wiki
- Check
ModList.get().isLoaded("dragonminez")once and cache the result. - Keep every DMZ import inside classes that are only touched after that check (event listeners for DMZ events included: register them manually, and only when DMZ is loaded).
- Guard every call that touches DMZ behind that flag, with a safe fallback or default when it is
false. - Log a clear info or warning message either way, so server owners can tell at a glance whether the integration is active.