Program: 172825
Project: 172825
Buggy source:
@Override public CommandResult execute(CommandSource source,CommandContext context) throws CommandException {
  Optional<Player> optionalInvitedPlayer=context.<Player>getOne("String_Node_Str");
  if (optionalInvitedPlayer.isPresent()) {
    if (source instanceof Player) {
      Player senderPlayer=(Player)source;
      Player invitedPlayer=optionalInvitedPlayer.get();
      Optional<Faction> optionalSenderFaction=FactionLogic.getFactionByPlayerUUID(senderPlayer.getUniqueId());
      if (optionalSenderFaction.isPresent()) {
        Faction senderFaction=optionalSenderFaction.get();
        if (MainLogic.isPlayerLimit()) {
          int playerCount=0;
          playerCount+=senderFaction.Leader.equals("String_Node_Str") ? 0 : 1;
          playerCount+=senderFaction.Officers.isEmpty() ? 0 : senderFaction.Officers.size();
          playerCount+=senderFaction.Members.isEmpty() ? 0 : senderFaction.Members.size();
          if (playerCount >= MainLogic.getPlayerLimit()) {
            senderPlayer.sendMessage(Text.of(PluginInfo.ErrorPrefix,TextColors.RED,PluginMessages.YOU_CANT_INVITE_MORE_PLAYERS_TO_YOUR_FACTION + "String_Node_Str" + PluginMessages.FACTIONS_PLAYER_LIMIT_HAS_BEEN_REACHED));
            return CommandResult.success();
          }
        }
        if (FactionLogic.getFactionName(invitedPlayer.getUniqueId()) == null) {
          try {
            Invite invite=new Invite(senderFaction.Name,invitedPlayer.getUniqueId());
            EagleFactions.InviteList.add(invite);
            invitedPlayer.sendMessage(Text.of(PluginInfo.PluginPrefix,TextColors.GREEN,PluginMessages.FACTION + "String_Node_Str",TextColors.GOLD,senderFaction.Name,TextColors.GREEN,"String_Node_Str" + PluginMessages.HAS_SENT_YOU_AN_INVITE + "String_Node_Str"+ PluginMessages.YOU_HAVE_TWO_MINUTES_TO_ACCEPT_IT+ "String_Node_Str"+ PluginMessages.TYPE+ "String_Node_Str",TextColors.GOLD,"String_Node_Str" + senderFaction.Name,TextColors.WHITE,"String_Node_Str" + PluginMessages.TO_JOIN));
            senderPlayer.sendMessage(Text.of(PluginInfo.PluginPrefix,TextColors.GREEN,PluginMessages.YOU_INVITED + "String_Node_Str",TextColors.GOLD,invitedPlayer.getName(),TextColors.GREEN,"String_Node_Str" + PluginMessages.TO_YOUR_FACTION));
            Task.Builder taskBuilder=Sponge.getScheduler().createTaskBuilder();
            taskBuilder.execute(new Runnable(){
              @Override public void run(){
                if (EagleFactions.InviteList.contains(invite) && EagleFactions.InviteList != null) {
                  EagleFactions.InviteList.remove(invite);
                }
              }
            }
).delay(2,TimeUnit.MINUTES).name("String_Node_Str").submit(EagleFactions.getEagleFactions());
            return CommandResult.success();
          }
 catch (          Exception exception) {
            exception.printStackTrace();
          }
        }
 else {
          source.sendMessage(Text.of(PluginInfo.ErrorPrefix,TextColors.RED,PluginMessages.PLAYER_IS_ALREADY_IN_A_FACTION));
        }
      }
 else {
        source.sendMessage(Text.of(PluginInfo.ErrorPrefix,TextColors.RED,PluginMessages.YOU_MUST_BE_IN_FACTION_IN_ORDER_TO_USE_THIS_COMMAND));
      }
    }
 else {
      source.sendMessage(Text.of(PluginInfo.ErrorPrefix,TextColors.RED,PluginMessages.ONLY_IN_GAME_PLAYERS_CAN_USE_THIS_COMMAND));
    }
  }
 else {
    source.sendMessage(Text.of(PluginInfo.ErrorPrefix,TextColors.RED,PluginMessages.WRONG_COMMAND_ARGUMENTS));
    source.sendMessage(Text.of(TextColors.RED,PluginMessages.USAGE + "String_Node_Str"));
  }
  return CommandResult.success();
}

Fixed version (ground truth):
@Override public CommandResult execute(CommandSource source,CommandContext context) throws CommandException {
  Optional<Player> optionalInvitedPlayer=context.<Player>getOne("String_Node_Str");
  if (optionalInvitedPlayer.isPresent()) {
    if (source instanceof Player) {
      Player senderPlayer=(Player)source;
      Player invitedPlayer=optionalInvitedPlayer.get();
      Optional<Faction> optionalSenderFaction=FactionLogic.getFactionByPlayerUUID(senderPlayer.getUniqueId());
      if (optionalSenderFaction.isPresent()) {
        Faction senderFaction=optionalSenderFaction.get();
        if (MainLogic.isPlayerLimit()) {
          int playerCount=0;
          playerCount+=senderFaction.Leader.equals("String_Node_Str") ? 0 : 1;
          playerCount+=senderFaction.Officers.isEmpty() ? 0 : senderFaction.Officers.size();
          playerCount+=senderFaction.Members.isEmpty() ? 0 : senderFaction.Members.size();
          if (playerCount >= MainLogic.getPlayerLimit()) {
            senderPlayer.sendMessage(Text.of(PluginInfo.ErrorPrefix,TextColors.RED,PluginMessages.YOU_CANT_INVITE_MORE_PLAYERS_TO_YOUR_FACTION + "String_Node_Str" + PluginMessages.FACTIONS_PLAYER_LIMIT_HAS_BEEN_REACHED));
            return CommandResult.success();
          }
        }
        if (FactionLogic.getFactionName(invitedPlayer.getUniqueId()).equals("String_Node_Str")) {
          try {
            Invite invite=new Invite(senderFaction.Name,invitedPlayer.getUniqueId());
            EagleFactions.InviteList.add(invite);
            invitedPlayer.sendMessage(Text.of(PluginInfo.PluginPrefix,TextColors.GREEN,PluginMessages.FACTION + "String_Node_Str",TextColors.GOLD,senderFaction.Name,TextColors.GREEN,"String_Node_Str" + PluginMessages.HAS_SENT_YOU_AN_INVITE + "String_Node_Str"+ PluginMessages.YOU_HAVE_TWO_MINUTES_TO_ACCEPT_IT+ "String_Node_Str"+ PluginMessages.TYPE+ "String_Node_Str",TextColors.GOLD,"String_Node_Str" + senderFaction.Name,TextColors.WHITE,"String_Node_Str" + PluginMessages.TO_JOIN));
            senderPlayer.sendMessage(Text.of(PluginInfo.PluginPrefix,TextColors.GREEN,PluginMessages.YOU_INVITED + "String_Node_Str",TextColors.GOLD,invitedPlayer.getName(),TextColors.GREEN,"String_Node_Str" + PluginMessages.TO_YOUR_FACTION));
            Task.Builder taskBuilder=Sponge.getScheduler().createTaskBuilder();
            taskBuilder.execute(new Runnable(){
              @Override public void run(){
                if (EagleFactions.InviteList.contains(invite) && EagleFactions.InviteList != null) {
                  EagleFactions.InviteList.remove(invite);
                }
              }
            }
).delay(2,TimeUnit.MINUTES).name("String_Node_Str").submit(EagleFactions.getEagleFactions());
            return CommandResult.success();
          }
 catch (          Exception exception) {
            exception.printStackTrace();
          }
        }
 else {
          source.sendMessage(Text.of(PluginInfo.ErrorPrefix,TextColors.RED,PluginMessages.PLAYER_IS_ALREADY_IN_A_FACTION));
        }
      }
 else {
        source.sendMessage(Text.of(PluginInfo.ErrorPrefix,TextColors.RED,PluginMessages.YOU_MUST_BE_IN_FACTION_IN_ORDER_TO_USE_THIS_COMMAND));
      }
    }
 else {
      source.sendMessage(Text.of(PluginInfo.ErrorPrefix,TextColors.RED,PluginMessages.ONLY_IN_GAME_PLAYERS_CAN_USE_THIS_COMMAND));
    }
  }
 else {
    source.sendMessage(Text.of(PluginInfo.ErrorPrefix,TextColors.RED,PluginMessages.WRONG_COMMAND_ARGUMENTS));
    source.sendMessage(Text.of(TextColors.RED,PluginMessages.USAGE + "String_Node_Str"));
  }
  return CommandResult.success();
}