Guest User

Untitled

a guest
Dec 30th, 2019
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. public static boolean getBootLavaPop(String uuid) {
  2. boolean test = false;
  3. int i = 0;
  4.  
  5. if(playerExists(uuid)) {
  6. try {
  7. ResultSet rs = Main.getPlugin(Main.class).mySQL4.query("SELECT * FROM Boots WHERE UUID= '" + uuid + "'");
  8. if((rs.next()) || (Integer.valueOf(rs.getInt("LavaPop")) == null));
  9.  
  10. i = rs.getInt("LavaPop");
  11. if(i == 1){
  12. test = true;
  13. }
  14. } catch (SQLException e) {
  15. e.printStackTrace();
  16. }
  17. }else {
  18. setupPlayerBoot(uuid);
  19. getBootLavaPop(uuid);
  20. }
  21.  
  22. return test;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment