Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int balance = 0;
- try {
- PreparedStatement q = connection.prepareStatement("SELECT coins FROM joueurs WHERE uuid=\"" + p.getUniqueId().toString() + "\"");
- ResultSet rs = q.executeQuery();
- while (rs.next()) {
- balance = rs.getInt("coins");
- }
- q.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- return balance;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement