mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2025-01-12 10:50:35 +01:00
Fix #644
This commit is contained in:
parent
ee3299afd2
commit
d56b63c5f0
@ -63,6 +63,9 @@ public class DataManager {
|
|||||||
int i = 0;
|
int i = 0;
|
||||||
File dataFolder = new File("." + File.separator + "plugins" + File.separator + "LimitedCreative"
|
File dataFolder = new File("." + File.separator + "plugins" + File.separator + "LimitedCreative"
|
||||||
+ File.separator + "inventories");
|
+ File.separator + "inventories");
|
||||||
|
if (!dataFolder.exists() || !dataFolder.isDirectory()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
for (String file : dataFolder.list()) {
|
for (String file : dataFolder.list()) {
|
||||||
String name = file;
|
String name = file;
|
||||||
int idx;
|
int idx;
|
||||||
@ -122,6 +125,9 @@ public class DataManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
final File userDataFolder = new File(essentialsDataFolder, "userdata");
|
final File userDataFolder = new File(essentialsDataFolder, "userdata");
|
||||||
|
if (!userDataFolder.exists() || !userDataFolder.isDirectory()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
List<OfflinePlayer> offlinePlayers = getOfflinePlayers(cleared);
|
List<OfflinePlayer> offlinePlayers = getOfflinePlayers(cleared);
|
||||||
for (OfflinePlayer player : offlinePlayers) {
|
for (OfflinePlayer player : offlinePlayers) {
|
||||||
File playerFile = new File(userDataFolder, Utils.getUUIDorName(player) + ".yml");
|
File playerFile = new File(userDataFolder, Utils.getUUIDorName(player) + ".yml");
|
||||||
|
Loading…
Reference in New Issue
Block a user