@@ -0,0 +1,2216 @@
+package com.publicuhc.ultrahardcore.commands;%0A%0Aimport com.publicuhc.pluginframework.commands.annotation.CommandMethod;%0Aimport com.publicuhc.pluginframework.commands.annotation.RouteInfo;%0Aimport com.publicuhc.pluginframework.commands.requests.CommandRequest;%0Aimport com.publicuhc.pluginframework.commands.routes.RouteBuilder;%0Aimport com.publicuhc.pluginframework.configuration.Configurator;%0Aimport com.publicuhc.pluginframework.shaded.inject.Inject;%0Aimport com.publicuhc.pluginframework.translate.Translate;%0Aimport com.publicuhc.ultrahardcore.features.FeatureManager;%0Aimport com.publicuhc.ultrahardcore.features.IFeature;%0Aimport com.publicuhc.ultrahardcore.pluginfeatures.goldenheads.GoldenHeadsFeature;%0A%0Apublic class GoldenHeadCommand extends SimpleCommand %7B%0A%0A    public static final String HEAD_COMMAND_PERMISSION = %22UHC.goldenhead.command%22;%0A%0A    private final FeatureManager m_featureManager;%0A%0A    /**%0A     * @param configManager the config manager%0A     * @param translate     the translator%0A     */%0A    @Inject%0A    protected GoldenHeadCommand(Configurator configManager, Translate translate, FeatureManager featureManager) %7B%0A        super(configManager, translate);%0A        m_featureManager = featureManager;%0A    %7D%0A%0A    @CommandMethod%0A    public void changeHeadHealingAmountCommand(CommandRequest request) %7B%0A        if(!request.isArgInt(0)) %7B%0A            request.sendMessage(translate(%22headheal.not_int%22, request.getLocale()));%0A            return;%0A        %7D%0A        int amount = request.getInt(0);%0A%0A        IFeature feature = m_featureManager.getFeatureByID(%22GoldenHeads%22);%0A        if(!(feature instanceof GoldenHeadsFeature)) %7B%0A            request.sendMessage(translate(%22headheal.feature_not_found%22, request.getLocale()));%0A            return;%0A        %7D%0A        GoldenHeadsFeature gheadFeature = (GoldenHeadsFeature) feature;%0A        gheadFeature.setAmountExtra(amount);%0A%0A        request.sendMessage(translate(%22headheal.updated%22, request.getLocale()));%0A    %7D%0A%0A    @RouteInfo%0A    public void changeHeadHealingAmountCommandDetails(RouteBuilder builder) %7B%0A        builder.restrictPermission(HEAD_COMMAND_PERMISSION)%0A                .restrictArgumentCount(1, -1)%0A                .restrictCommand(%22headheal%22);%0A    %7D%0A%7D%0A

implement command