mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-26 04:25:15 +01:00
Fix when loading data for player
This commit is contained in:
parent
1e4b7aa002
commit
523eecefc6
@ -18,11 +18,6 @@ public class LanguageManager {
|
||||
return languages;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public static List<String> getClassesFromPackage(String pckgname, String cleaner) throws ClassNotFoundException {
|
||||
return Util.getFilesFromPackage(pckgname, cleaner, "yml");
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to load the language file configuration
|
||||
*
|
||||
|
@ -940,9 +940,8 @@ public abstract class JobsDAO {
|
||||
}
|
||||
|
||||
for (World one : Bukkit.getWorlds()) {
|
||||
if (Util.getJobsWorld(one.getName()) != null)
|
||||
continue;
|
||||
this.recordNewWorld(one.getName());
|
||||
if (Util.getJobsWorld(one.getName()) == null)
|
||||
recordNewWorld(one.getName());
|
||||
}
|
||||
|
||||
return;
|
||||
@ -1709,7 +1708,7 @@ public abstract class JobsDAO {
|
||||
prest = conn.prepareStatement("SELECT * FROM `" + DBTables.UsersTable.getTableName() + "` WHERE `" + UserTableFields.player_uuid.getCollumn() + "` = ?;");
|
||||
prest.setString(1, uuid.toString());
|
||||
res = prest.executeQuery();
|
||||
while (res.next()) {
|
||||
if (res.next()) {
|
||||
pInfo = new PlayerInfo(
|
||||
res.getString(UserTableFields.username.getCollumn()),
|
||||
res.getInt("id"), uuid,
|
||||
|
Loading…
Reference in New Issue
Block a user