public boolean newsCheck(Player ply) { try { ResultSet r = plugin.sqldb.executeQuery( "SELECT * FROM `newsread` WHERE `Name`=?", ply.getName()); if (!r.first()) { plugin.sqldb.executeSQL("INSERT INTO `newsread` VALUES(?, ?)", ply.getName(), false); return false; } else { return r.getBoolean("Read"); } } catch (SQLException e) { e.printStackTrace(); } return false; }