Skip to content

Commit

Permalink
Changed load order again
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFP committed Feb 17, 2021
1 parent b5af17c commit 104d55c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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());
}

Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 104d55c

Please sign in to comment.