Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean isPlayerInDataBase(Player p) {
- try (Connection connection = sql.getConnection();
- PreparedStatement select = connection.prepareStatement(
- "SELECT * FROM `MurderData` WHERE uuid='" + p.getUniqueId().toString() + "'")) {
- ResultSet result = select.executeQuery();
- if (result.next()) {
- CloseResultSet(result);
- return true;
- }
- } catch (SQLException e) {
- e.printStackTrace();
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement