Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * 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));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment