Thanks Matim, i made this one and it works
package handlers.voicedcommandhandlers;
import com.l2jserver.gameserver.handler.IVoicedCommandHandler;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.actor.stat.PcStat;
public class IncreaseVitality implements IVoicedCommandHandler
{
private static final String[] VOICED_COMMANDS = {"vitality_max"};
public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
{
if (command.equalsIgnoreCase("vitality_max"))
{
activeChar.destroyItemByItemId("Consume", 57, 100000000, activeChar, true);
activeChar.setVitalityPoints(PcStat.MAX_VITALITY_POINTS, true);
}
return true;
}
public String[] getVoicedCommandList()
{
return VOICED_COMMANDS;
}
}