mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
Text overhaul
This commit is contained in:
1 parent
cc90d5f15d
commit
d7e50b3a37
6 files changed
+117
-179
No files matched your search
@@ -113,13 +113,11 @@ public class DataManager {
|
||||
}
|
||||
|
||||
// Return if the player is teleporting
|
||||
public static Boolean getPlayerTeleporting(Player p) throws SQLException {
|
||||
Connection conn;
|
||||
public static Boolean getPlayerTeleporting(Player p, Connection connection) throws SQLException {
|
||||
PreparedStatement ps;
|
||||
ResultSet rs;
|
||||
|
||||
conn = getConnection();
|
||||
ps = conn.prepareStatement("SELECT * FROM " + HuskHomes.getSettings().getPlayerDataTable() + " WHERE `user_uuid`=?;");
|
||||
ps = connection.prepareStatement("SELECT * FROM " + HuskHomes.getSettings().getPlayerDataTable() + " WHERE `user_uuid`=?;");
|
||||
ps.setString(1, p.getUniqueId().toString());
|
||||
rs = ps.executeQuery();
|
||||
if (rs != null) {
|
||||
|
||||
Reference in new issue
Block a user