package com.publicuhc.uhcaddons.teammanager;

import com.google.common.collect.Lists;
import com.publicuhc.uhcaddons.teammanager.torefactor.TeamCommands;
import com.publicuhc.ultrahardcore.UltraHardcore;
import com.publicuhc.ultrahardcore.api.Command;
import com.publicuhc.ultrahardcore.api.UHCAddonConfiguration;
import com.publicuhc.ultrahardcore.api.UHCFeature;
import com.publicuhc.ultrahardcore.framework.shaded.inject.Module;
import com.publicuhc.ultrahardcore.framework.shaded.inject.multibindings.Multibinder;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

import java.util.List;

public class TeamManagerPlugin extends JavaPlugin implements UHCAddonConfiguration
{

    @Override
    public void onEnable()
    {
        UltraHardcore uhc = (UltraHardcore) Bukkit.getPluginManager().getPlugin("UltraHardcore");

        List<Module> modules = Lists.newArrayList((Module) new TeamManagerModule());

        uhc.registerAddon(this, this, modules);
    }

    @Override
    public void configureCommands(Multibinder<Command> commandMultibinder)
    {
        commandMultibinder.addBinding().to(TeamCommands.class);
    }

    @Override
    public void configureFeatures(Multibinder<UHCFeature> uhcFeatureMultibinder)
    {
        //no features enabled
    }
}

@@ -126,31 +126,18 @@
 ger.
-torefactor.TeamC
+c
 ommands
+.*
 ;%0Aim
@@ -1102,16 +1102,18 @@
 ng().to(
+No
 TeamComm
@@ -1115,17 +1115,560 @@
 mCommand
-s
+.class);%0A        commandMultibinder.addBinding().to(PmTeamCommand.class);%0A        commandMultibinder.addBinding().to(RandomTeamsCommand.class);%0A        commandMultibinder.addBinding().to(TeamCreateCommand.class);%0A        commandMultibinder.addBinding().to(TeamDeleteCommand.class);%0A        commandMultibinder.addBinding().to(TeamJoinCommand.class);%0A        commandMultibinder.addBinding().to(TeamLeaveCommand.class);%0A        commandMultibinder.addBinding().to(TeamRequestsCommand.class);%0A        commandMultibinder.addBinding().to(TeamupCommand
 .class);

load all of the commands