Program: 46740
Project: 46740
Buggy source:
@Command(aliases={"String_Node_Str","String_Node_Str"},usage="String_Node_Str",desc="String_Node_Str",max=0) @CommandPermissions({"String_Node_Str"}) public static void remove(final CommandContext args,final MyResidence plugin,final Nation nation,final Player player,final Session session) throws NoResidenceSelectedException, PermissionsDeniedException {
  final Residence residenceToRemove=session.getSelectedResidence();
  final ResidenceArea residenceArea=nation.getDatabase().find(ResidenceArea.class).where().eq("String_Node_Str",residenceToRemove.getId()).findUnique();
  final ResidenceSign residenceSign=nation.getDatabase().find(ResidenceSign.class).where().eq("String_Node_Str",residenceToRemove.getId()).findUnique();
  World signWorld=player.getServer().getWorld(residenceSign.getWorld());
  final Sign sign=(Sign)signWorld.getBlockAt(new Location(signWorld,residenceSign.getX(),residenceSign.getY(),residenceSign.getZ())).getState();
  if (!session.hasResidenceOwnerRights(residenceToRemove)) {
    throw new PermissionsDeniedException("String_Node_Str");
  }
  session.setTask(new Runnable(){
    public void run(){
      nation.getDatabase().delete(residenceToRemove);
      nation.getDatabase().delete(residenceArea);
      nation.getDatabase().delete(residenceSign);
      Chat.sendMessage(player,"String_Node_Str",residenceToRemove);
      plugin.getEventManager().callEvent(new ResidenceRemovedEvent(session,residenceToRemove));
    }
  }
);
  session.setTaskActivator(Session.Activator.CONFIRM_COMMAND);
  player.sendMessage(ChatColor.LIGHT_PURPLE + "String_Node_Str");
  Chat.sendMessage(player,"String_Node_Str",residenceToRemove);
  Chat.sendMessage(player,"String_Node_Str");
}

Fixed version (ground truth):
@Command(aliases={"String_Node_Str","String_Node_Str"},usage="String_Node_Str",desc="String_Node_Str",max=0) @CommandPermissions({"String_Node_Str"}) public static void remove(final CommandContext args,final MyResidence plugin,final Nation nation,final Player player,final Session session) throws NoResidenceSelectedException, PermissionsDeniedException {
  final Residence residenceToRemove=session.getSelectedResidence();
  final ResidenceArea residenceArea=nation.getDatabase().find(ResidenceArea.class).where().eq("String_Node_Str",residenceToRemove.getId()).findUnique();
  final ResidenceSign residenceSign=nation.getDatabase().find(ResidenceSign.class).where().eq("String_Node_Str",residenceToRemove.getId()).findUnique();
  World signWorld=player.getServer().getWorld(residenceSign.getWorld());
  final Sign sign=(Sign)signWorld.getBlockAt(new Location(signWorld,residenceSign.getX(),residenceSign.getY(),residenceSign.getZ())).getState();
  if (!session.hasResidenceOwnerRights(residenceToRemove)) {
    throw new PermissionsDeniedException("String_Node_Str");
  }
  session.setTask(new Runnable(){
    public void run(){
      nation.getDatabase().delete(residenceToRemove);
      nation.getDatabase().delete(residenceArea);
      nation.getDatabase().delete(residenceSign);
      Chat.sendMessage(player,"String_Node_Str",residenceToRemove);
      plugin.getEventManager().callEvent(new ResidenceRemovedEvent(session,residenceToRemove));
    }
  }
);
  session.setTaskActivator(Session.Activator.CONFIRM_COMMAND);
  Chat.sendMessage(player,"String_Node_Str",residenceToRemove);
  Chat.sendMessage(player,"String_Node_Str");
}