Skip to content

Commit

Permalink
✨ Update main class.
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurr0 committed Sep 30, 2021
1 parent 147b9e5 commit 440779f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/pl/minecodes/mineeconomy/EconomyPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ public void onEnable() {
.registerInjectable(this.getLogger());

this.loadConfiguration();
this.injector.registerInjectable(configuration);
this.injector.registerInjectable(messages);

this.profileService = this.injector.createInstance(ProfileService.class);
this.injector.registerInjectable(profileService);
Expand All @@ -60,8 +62,6 @@ private void loadConfiguration() {
ConfigurationFactory configurationFactory = new ConfigurationFactory(this.getDataFolder());
configuration = configurationFactory.produce(Configuration.class, "configuration.yml");
messages = configurationFactory.produce(Messages.class, "messages.yml");
this.injector.registerInjectable(configuration);
this.injector.registerInjectable(messages);
}

private void registerCommands() {
Expand Down

0 comments on commit 440779f

Please sign in to comment.