Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- final String name = e.getConnection().getName();
- ResultSet accresult;
- try {
- accresult = db.getConnection().createStatement().executeQuery("SELECT * FROM `Auth`");
- if(name.equals(accresult.getString("username"))) {
- e.setCancelReason("sss");
- e.setCancelled(true);
- }
- } catch (SQLException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- }
Advertisement
Add Comment
Please, Sign In to add comment