statement.setInt(1, player2.getObjectId());
statement.setInt(2, player1.getObjectId());
statement.execute();
add(player1.getObjectId(), player2.getObjectId());
add(player2.getObjectId(), player1.getObjectId());
player1.sendPacket(Msg.YOU_HAVE_SUCCEEDED_IN_INVITING_A_FRIEND, new SystemMessage(SystemMessage.S1_HAS_BEEN_ADDED_TO_YOUR_FRIEND_LIST).addString(player2.getName()), new L2Friend(player2, true));
player2.sendPacket(new SystemMessage(SystemMessage.S1_HAS_JOINED_AS_A_FRIEND).addString(player1.getName()), new L2Friend(player1, true));
}
catch(Exception e)
{
e.printStackTrace();
}