class PlayerCommand implements ExecutableCommand {

    @Override
    public void executeCommand(CommandSender sender, List<String> arguments) {
        if (sender instanceof Player) {
            runCommand((Player) sender, arguments);
        } else {
            String alternative = getAlternativeCommand();
            if (alternative != null) {
                sender.sendMessage("Player only! Please use " + alternative + " instead.");
            } else {
                sender.sendMessage("This command is only for players.");
            }
        }
    }

}