Translations:Implementation and Events/162/en

From DragonMineZ Wiki
Revision as of 05:26, 13 October 2026 by FuzzyBot (talk | contribs) (Importing a new version from external source)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
  1. Check ModList.get().isLoaded("dragonminez") once and cache the result.
  2. 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).
  3. Guard every call that touches DMZ behind that flag, with a safe fallback or default when it is false.
  4. Log a clear info or warning message either way, so server owners can tell at a glance whether the integration is active.