Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement