Guest User

Untitled

a guest
Nov 12th, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. final String name = e.getConnection().getName();
  2. ResultSet accresult;
  3. try {
  4. accresult = db.getConnection().createStatement().executeQuery("SELECT * FROM `Auth`");
  5. if(name.equals(accresult.getString("username"))) {
  6. e.setCancelReason("sss");
  7. e.setCancelled(true);
  8. }
  9. } catch (SQLException e1) {
  10. // TODO Auto-generated catch block
  11. e1.printStackTrace();
  12. }
Advertisement
Add Comment
Please, Sign In to add comment