Skip to content

Commit

Permalink
Rename AAACommandManager to AttributeCommands
Browse files Browse the repository at this point in the history
  • Loading branch information
ustc-zzzz committed Aug 17, 2019
1 parent bf9f438 commit f7c5b31
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
13 changes: 7 additions & 6 deletions src/main/java/io/izzel/aaa/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import com.google.inject.Inject;
import com.google.inject.Injector;
import io.izzel.aaa.command.AAACommandManager;
import io.izzel.aaa.command.AttributeCommands;
import io.izzel.aaa.listener.ArrowListener;
import io.izzel.aaa.listener.AttackListener;
import io.izzel.aaa.listener.MiscListener;
Expand All @@ -16,22 +16,23 @@

@Plugin(id = "amberadvancedattributes", description = "An AmberAdvancedAttributes item attribute plugin.")
public class Main {
private final AAACommandManager commandManager;
private final AttributeServiceImpl service;
private final AttributeCommands commands;
private final EventManager eventManager;
private final Injector injector;


@Inject
public Main(AttributeServiceImpl serviceImpl, AAACommandManager commandManagerImpl, EventManager e, Injector i) {
this.commandManager = commandManagerImpl;
this.service = serviceImpl;
public Main(AttributeServiceImpl service, AttributeCommands commands, EventManager e, Injector i) {
this.commands = commands;
this.service = service;
this.eventManager = e;
this.injector = i;
}

@Listener
public void on(GameInitializationEvent event) {
this.commandManager.init();
this.commands.init();
this.service.init();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
* @author ustc_zzzz
*/
@Singleton
public class AAACommandManager {
public class AttributeCommands {
private static final Text LORE_SEPARATOR = Text.of();

private final Provider<Main> pluginProvider;
Expand All @@ -52,7 +52,7 @@ public class AAACommandManager {
private final AmberLocale locale;

@Inject
public AAACommandManager(Provider<Main> plugin, CommandManager c, EventManager e, AmberLocale locale) {
public AttributeCommands(Provider<Main> plugin, CommandManager c, EventManager e, AmberLocale locale) {
this.pluginProvider = plugin;
this.commandManager = c;
this.eventManager = e;
Expand Down

0 comments on commit f7c5b31

Please sign in to comment.