diff --git a/eco-util/src/main/java/com/willfp/eco/util/plugin/AbstractEcoPlugin.java b/eco-util/src/main/java/com/willfp/eco/util/plugin/AbstractEcoPlugin.java index be88514dc..03a9d9943 100644 --- a/eco-util/src/main/java/com/willfp/eco/util/plugin/AbstractEcoPlugin.java +++ b/eco-util/src/main/java/com/willfp/eco/util/plugin/AbstractEcoPlugin.java @@ -159,7 +159,7 @@ public abstract class AbstractEcoPlugin extends JavaPlugin { * The display module for the plugin. */ @Getter - private final DisplayModule displayModule; + private DisplayModule displayModule; /** * If the server is running an outdated version of the plugin. @@ -199,8 +199,6 @@ protected AbstractEcoPlugin(@NotNull final String pluginName, this.langYml = new Lang(this); this.configYml = new Config(this); - this.displayModule = createDisplayModule(); - LOADED_ECO_PLUGINS.add(this.getName().toLowerCase()); } @@ -301,6 +299,8 @@ public final void onLoad() { * Default code to be executed after the server is up. */ public final void afterLoad() { + this.displayModule = createDisplayModule(); + this.getPacketAdapters().forEach(abstractPacketAdapter -> { if (abstractPacketAdapter.isPostLoad()) { abstractPacketAdapter.register();