- /**
- * Friends list.
- */
- rs = Database.getInstance().sqlQuery(
- "SELECT id,friend,slot FROM bank WHERE accountId="
- + accountId);
- while (rs.next()) {
- int slot = rs.getInt("slot");
- String friend = rs.getString("friend");
- if (slot >= 0 && slot < Bank.SIZE) {
- if (friend != "")
- this.getFriendsList().friends.add(NameUtils
- .nameToLong(friend));
- }
- }