package com.publicuhc.ultrahardcore.commands;

import com.publicuhc.pluginframework.shaded.inject.Inject;
import com.publicuhc.configuration.ConfigManager;

public class SimpleCommand {

    private final ConfigManager m_configManager;

    /**
     * @param configManager the config manager
     */
    @Inject
    protected SimpleCommand(ConfigManager configManager){
        m_configManager = configManager;
    }

    /**
     * @return the config manager
     */
    public ConfigManager getConfigManager(){
        return m_configManager;
    }

    /**
     * @param key the key to search for
     * @return the translated message
     */
    public String translate(String key){
        return m_configManager.getMessage(key);
    }
}

package com.publicuhc.ultrahardcore.commands;

import com.publicuhc.pluginframework.configuration.Configurator;
import com.publicuhc.pluginframework.shaded.inject.Inject;
import com.publicuhc.pluginframework.translate.Translate;

public class SimpleCommand {

    private final Configurator m_configManager;
    private final Translate m_translate;

    /**
     * @param configManager the config manager
     * @param translate the translator
     */
    @Inject
    protected SimpleCommand(Configurator configManager, Translate translate){
        m_configManager = configManager;
        m_translate = translate;
    }

    /**
     * @return the config manager
     */
    public Configurator getConfigurator(){
        return m_configManager;
    }

    /**
     * @return the translator
     */
    public Translate getTranslator() {
        return m_translate;
    }
}

make simplecommand need a configurator and translator