Advertisement
Guest User

Untitled

a guest
Feb 28th, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. public static Integer getActivationNewShop(String uuid) {
  2. Integer i = 0;
  3.  
  4. if(playerExists(uuid)) {
  5. try {
  6. ResultSet rs = Main.mysql.query("SELECT * FROM Neuershopnutzer WHERE UUID= '" + uuid + "'");
  7. if(!rs.next() || (Integer.valueOf(rs.getString("AKTIVIERT"))== null));
  8. i = rs.getInt("AKTIVIERT");
  9.  
  10.  
  11. } catch (SQLException e) {
  12. e.printStackTrace();
  13. }
  14.  
  15. }else {
  16. createPlayer(uuid);
  17. getActivationNewShop(uuid);
  18. }
  19.  
  20. return i;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement