Program: 172835
Project: 172835
Buggy source:
@Override public CommandResult execute(CommandSource source,CommandContext context) throws CommandException {
  if (source instanceof Player) {
    Player player=(Player)source;
    Text notCapturedMark=Text.of(TextColors.GRAY,"String_Node_Str");
    Text factionMark=Text.of(TextColors.GREEN,"String_Node_Str");
    Text allianceMark=Text.of(TextColors.AQUA,"String_Node_Str");
    Text enemyMark=Text.of(TextColors.RED,"String_Node_Str");
    Text normalFactionMark=Text.of(TextColors.WHITE,"String_Node_Str");
    Text playerLocationMark=Text.of(TextColors.GOLD,"String_Node_Str");
    Vector3i playerPosition=player.getLocation().getChunkPosition();
    List<Text> map=new ArrayList<>();
    String normalFactions="String_Node_Str";
    String allianceFactions="String_Node_Str";
    String enemyFactions="String_Node_Str";
    String playerFaction="String_Node_Str";
    int mapWidth=20;
    int mapHeight=8;
    int halfMapWidth=mapWidth / 2;
    int halfMapHeight=mapHeight / 2;
    for (int row=-halfMapHeight; row <= halfMapHeight; row++) {
      Text.Builder textBuilder=Text.builder();
      for (int column=-halfMapWidth; column <= halfMapWidth; column++) {
        if (row == 0 && column == 0) {
          textBuilder.append(playerLocationMark);
          continue;
        }
        Vector3i chunk=playerPosition.add(column,0,row);
        if (FactionLogic.isClaimed(chunk)) {
          String factionName=FactionLogic.getFactionNameByChunk(chunk);
          String playerFactionName=FactionLogic.getFactionName(player.getUniqueId());
          if (playerFactionName != null) {
            if (factionName.equals(playerFactionName)) {
              textBuilder.append(factionMark);
              playerFaction=factionName;
            }
 else             if (FactionLogic.getAlliances(playerFactionName).contains(factionName)) {
              textBuilder.append(allianceMark);
              if (!allianceFactions.contains(factionName))               allianceFactions+=factionName + "String_Node_Str";
            }
 else             if (FactionLogic.getEnemies(playerFactionName).contains(factionName)) {
              textBuilder.append(enemyMark);
              if (!enemyFactions.contains(factionName))               enemyFactions+=factionName + "String_Node_Str";
            }
 else {
              if (factionName.equals("String_Node_Str"))               textBuilder.append(Text.of(TextColors.AQUA,"String_Node_Str"));
 else               if (factionName.equals("String_Node_Str"))               textBuilder.append(Text.of(TextColors.DARK_RED,"String_Node_Str"));
 else               textBuilder.append(normalFactionMark);
              if (!normalFactions.contains(factionName))               normalFactions+=factionName + "String_Node_Str";
            }
          }
 else {
            if (factionName.equals("String_Node_Str"))             textBuilder.append(Text.of(TextColors.AQUA,"String_Node_Str"));
 else             if (factionName.equals("String_Node_Str"))             textBuilder.append(Text.of(TextColors.DARK_RED,"String_Node_Str"));
 else             textBuilder.append(normalFactionMark);
            if (!normalFactions.contains(factionName))             normalFactions+=factionName + "String_Node_Str";
          }
        }
 else {
          textBuilder.append(notCapturedMark);
        }
      }
      map.add(textBuilder.build());
    }
    String playerPositionCalim="String_Node_Str";
    if (FactionLogic.isClaimed(playerPosition)) {
      playerPositionCalim=FactionLogic.getFactionNameByChunk(playerPosition);
    }
    player.sendMessage(Text.of(TextColors.GREEN,"String_Node_Str"));
    for (    Text text : map) {
      player.sendMessage(Text.of(text));
    }
    player.sendMessage(Text.of(TextColors.GREEN,"String_Node_Str"));
    if (!playerFaction.equals("String_Node_Str")) {
      player.sendMessage(Text.of(TextColors.GREEN,"String_Node_Str",TextColors.GREEN,playerFaction.substring(0,playerFaction.length() - 2)));
    }
    if (!normalFactions.isEmpty()) {
      player.sendMessage(Text.of(TextColors.WHITE,"String_Node_Str",TextColors.RESET,normalFactions.substring(0,normalFactions.length() - 2)));
    }
    if (!allianceFactions.isEmpty()) {
      player.sendMessage(Text.of(TextColors.AQUA,"String_Node_Str" + allianceFactions.substring(0,allianceFactions.length() - 2)));
    }
    if (!enemyFactions.isEmpty()) {
      player.sendMessage(Text.of(TextColors.RED,"String_Node_Str" + enemyFactions.substring(0,enemyFactions.length() - 2)));
    }
    player.sendMessage(Text.of("String_Node_Str",TextColors.GOLD,playerPosition.toString(),TextColors.WHITE,"String_Node_Str",TextColors.GOLD,playerPositionCalim));
  }
 else {
    source.sendMessage(Text.of(PluginInfo.ErrorPrefix,TextColors.RED,"String_Node_Str"));
  }
  return CommandResult.success();
}

Fixed version (ground truth):
@Override public CommandResult execute(CommandSource source,CommandContext context) throws CommandException {
  if (source instanceof Player) {
    Player player=(Player)source;
    Text notCapturedMark=Text.of(TextColors.GRAY,"String_Node_Str");
    Text factionMark=Text.of(TextColors.GREEN,"String_Node_Str");
    Text allianceMark=Text.of(TextColors.AQUA,"String_Node_Str");
    Text enemyMark=Text.of(TextColors.RED,"String_Node_Str");
    Text normalFactionMark=Text.of(TextColors.WHITE,"String_Node_Str");
    Text playerLocationMark=Text.of(TextColors.GOLD,"String_Node_Str");
    Vector3i playerPosition=player.getLocation().getChunkPosition();
    List<Text> map=new ArrayList<>();
    String normalFactions="String_Node_Str";
    String allianceFactions="String_Node_Str";
    String enemyFactions="String_Node_Str";
    String playerFaction="String_Node_Str";
    int mapWidth=20;
    int mapHeight=8;
    int halfMapWidth=mapWidth / 2;
    int halfMapHeight=mapHeight / 2;
    for (int row=-halfMapHeight; row <= halfMapHeight; row++) {
      Text.Builder textBuilder=Text.builder();
      for (int column=-halfMapWidth; column <= halfMapWidth; column++) {
        if (row == 0 && column == 0) {
          textBuilder.append(playerLocationMark);
          continue;
        }
        Vector3i chunk=playerPosition.add(column,0,row);
        if (FactionLogic.isClaimed(chunk)) {
          String factionName=FactionLogic.getFactionNameByChunk(chunk);
          String playerFactionName=FactionLogic.getFactionName(player.getUniqueId());
          if (playerFactionName != null) {
            if (factionName.equals(playerFactionName)) {
              textBuilder.append(factionMark);
              playerFaction=factionName;
            }
 else             if (FactionLogic.getAlliances(playerFactionName).contains(factionName)) {
              textBuilder.append(allianceMark);
              if (!allianceFactions.contains(factionName))               allianceFactions+=factionName + "String_Node_Str";
            }
 else             if (FactionLogic.getEnemies(playerFactionName).contains(factionName)) {
              textBuilder.append(enemyMark);
              if (!enemyFactions.contains(factionName))               enemyFactions+=factionName + "String_Node_Str";
            }
 else {
              if (factionName.equals("String_Node_Str"))               textBuilder.append(Text.of(TextColors.AQUA,"String_Node_Str"));
 else               if (factionName.equals("String_Node_Str"))               textBuilder.append(Text.of(TextColors.DARK_RED,"String_Node_Str"));
 else               textBuilder.append(normalFactionMark);
              if (!normalFactions.contains(factionName))               normalFactions+=factionName + "String_Node_Str";
            }
          }
 else {
            if (factionName.equals("String_Node_Str"))             textBuilder.append(Text.of(TextColors.AQUA,"String_Node_Str"));
 else             if (factionName.equals("String_Node_Str"))             textBuilder.append(Text.of(TextColors.DARK_RED,"String_Node_Str"));
 else             textBuilder.append(normalFactionMark);
            if (!normalFactions.contains(factionName))             normalFactions+=factionName + "String_Node_Str";
          }
        }
 else {
          textBuilder.append(notCapturedMark);
        }
      }
      map.add(textBuilder.build());
    }
    String playerPositionCalim="String_Node_Str";
    if (FactionLogic.isClaimed(playerPosition)) {
      playerPositionCalim=FactionLogic.getFactionNameByChunk(playerPosition);
    }
    player.sendMessage(Text.of(TextColors.GREEN,"String_Node_Str"));
    for (    Text text : map) {
      player.sendMessage(Text.of(text));
    }
    player.sendMessage(Text.of(TextColors.GREEN,"String_Node_Str"));
    if (!playerFaction.equals("String_Node_Str")) {
      player.sendMessage(Text.of(TextColors.GREEN,"String_Node_Str",TextColors.GREEN,playerFaction));
    }
    if (!normalFactions.isEmpty()) {
      player.sendMessage(Text.of(TextColors.WHITE,"String_Node_Str",TextColors.RESET,normalFactions.substring(0,normalFactions.length() - 2)));
    }
    if (!allianceFactions.isEmpty()) {
      player.sendMessage(Text.of(TextColors.AQUA,"String_Node_Str" + allianceFactions.substring(0,allianceFactions.length() - 2)));
    }
    if (!enemyFactions.isEmpty()) {
      player.sendMessage(Text.of(TextColors.RED,"String_Node_Str" + enemyFactions.substring(0,enemyFactions.length() - 2)));
    }
    player.sendMessage(Text.of("String_Node_Str",TextColors.GOLD,playerPosition.toString(),TextColors.WHITE,"String_Node_Str",TextColors.GOLD,playerPositionCalim));
  }
 else {
    source.sendMessage(Text.of(PluginInfo.ErrorPrefix,TextColors.RED,"String_Node_Str"));
  }
  return CommandResult.success();
}