Advertisement
craftim_74

Untitled

Nov 19th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.35 KB | None | 0 0
  1. int balance = 0;
  2.         try {
  3.             PreparedStatement q = connection.prepareStatement("SELECT coins FROM joueurs WHERE uuid=\"" + p.getUniqueId().toString() + "\"");
  4.             ResultSet rs = q.executeQuery();
  5.  
  6.             while (rs.next()) {
  7.                 balance = rs.getInt("coins");
  8.             }
  9.  
  10.             q.close();
  11.  
  12.         } catch (SQLException e) {
  13.             e.printStackTrace();
  14.         }
  15.         return balance;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement