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);
    }
}

@@ -40,16 +40,81 @@
 mands;%0A%0A
+import com.publicuhc.pluginframework.configuration.Configurator;%0A
 import c
@@ -189,35 +189,43 @@
 uhc.
-configuration.ConfigManager
+pluginframework.translate.Translate
 ;%0A%0Ap
@@ -277,22 +277,21 @@
 l Config
-Manage
+urato
 r m_conf
@@ -300,16 +300,57 @@
 Manager;
+%0A    private final Translate m_translate;
 %0A%0A    /*
@@ -390,32 +390,71 @@
  config manager%0A
+     * @param translate the translator%0A
      */%0A    @Inj
@@ -491,22 +491,21 @@
 d(Config
-Manage
+urato
 r config
@@ -511,16 +511,37 @@
 gManager
+, Translate translate
 )%7B%0A     
@@ -568,32 +568,65 @@
  configManager;%0A
+        m_translate = translate;%0A
     %7D%0A%0A    /**%0A 
@@ -683,22 +683,21 @@
 c Config
-Manage
+urato
 r getCon
@@ -699,22 +699,21 @@
 etConfig
-Manage
+urato
 r()%7B%0A   
@@ -760,48 +760,8 @@
 /**%0A
-     * @param key the key to search for%0A
     
@@ -787,18 +787,10 @@
 slat
-ed message
+or
 %0A   
@@ -809,84 +809,62 @@
 lic 
-String translate(String key)%7B%0A        return m_configManager.getMessage(key)
+Translate getTranslator() %7B%0A        return m_translate
 ;%0A  

make simplecommand need a configurator and translator