package uk.co.eluinhost.ultrahardcore.features;

import uk.co.eluinhost.features.Feature;

public class UHCFeature extends Feature {

    public static final String BASE_PERMISSION = "UHC.";
    public static final String BASE_CONFIG = "features.";

    /**
     * Construct a new feature
     *
     * @param featureID   the feature ID to use
     * @param description the description for the feature
     */
    protected UHCFeature(String featureID, String description) {
        super(featureID, description);
    }

    /**
     * @return base config node for this feature with trailing .
     */
    public String getBaseConfig(){
        return BASE_CONFIG+getFeatureID()+".";
    }
}

@@ -42,16 +42,68 @@
 tures;%0A%0A
+import uk.co.eluinhost.configuration.ConfigManager;%0A
 import u
@@ -135,16 +135,16 @@
 eature;%0A
-
 %0Apublic 
@@ -295,16 +295,84 @@
 res.%22;%0A%0A
+    private ConfigManager m_manager = ConfigManager.getInstance();%0A%0A
     /**%0A
@@ -750,16 +750,16 @@
 nfig()%7B%0A
-
         
@@ -802,11 +802,195 @@
 %22;%0A    %7D
+%0A%0A    /**%0A     * @param key the key to search for%0A     * @return the translated message%0A     */%0A    public String translate(String key)%7B%0A        return m_manager.getMessage(key);%0A    %7D
 %0A%7D%0A

add the translate functionality to the feature class