mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 06:28:49 +00:00
Updated and improved the Essentials Migrator's compatibility
Signed-off-by: BuildTools <[email protected]>
This commit is contained in:
1 parent
e9066e13e3
commit
7f7081a434
3 files changed
+123
-72
No files matched your search
@@ -142,8 +142,13 @@ public class DataManager {
|
||||
}
|
||||
|
||||
// Return a player's UUID
|
||||
public static String getPlayerUUID(int playerID, Connection connection) throws SQLException {
|
||||
return getPlayerString(playerID, "user_uuid", connection);
|
||||
public static UUID getPlayerUUID(int playerID, Connection connection) throws SQLException {
|
||||
String uuidString = getPlayerString(playerID, "user_uuid", connection);
|
||||
if (uuidString != null) {
|
||||
return UUID.fromString(uuidString);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// Return a player's username
|
||||
|
||||
Reference in new issue
Block a user