package com.tisawesomeness.minecord.command.player;

import com.tisawesomeness.minecord.command.Command;
import com.tisawesomeness.minecord.command.Module;

public abstract class AbstractPlayerCommand extends Command {
    @Override
    public final Module getModule() {
        return Module.PLAYER;
    }
}

package com.tisawesomeness.minecord.command.player;

import com.tisawesomeness.minecord.command.Command;
import com.tisawesomeness.minecord.command.CommandContext;
import com.tisawesomeness.minecord.command.Module;

import lombok.extern.slf4j.Slf4j;

import java.io.IOException;

@Slf4j
public abstract class AbstractPlayerCommand extends Command {
    @Override
    public final Module getModule() {
        return Module.PLAYER;
    }

    protected static void handleIOE(Throwable ex, CommandContext ctx, String errorMessage) {
        if (ex instanceof IOException) {
            log.error(errorMessage, ex);
            ctx.err(ctx.getLang().i18n("mc.external.mojang.error"));
            return;
        }
        throw new RuntimeException(ex);
    }

}

Patch last commit