mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-12 03:59:22 +00:00
Fix UUID caching when using a non-standard world path
This commit is contained in:
parent
c5b8064525
commit
c761a80bf9
1 changed files with 2 additions and 2 deletions
|
@ -114,7 +114,7 @@ public class UUIDHandler {
|
|||
UUIDHandler.CACHED = true;
|
||||
if (Settings.TWIN_MODE_UUID) {
|
||||
HashSet<UUID> all = getAllUUIDS();
|
||||
final File playerdataFolder = new File(world + File.separator + "playerdata");
|
||||
final File playerdataFolder = new File(Bukkit.getWorldContainer(), world + File.separator + "playerdata");
|
||||
String[] dat = playerdataFolder.list(new FilenameFilter() {
|
||||
@Override
|
||||
public boolean accept(final File f, final String s) {
|
||||
|
@ -146,7 +146,7 @@ public class UUIDHandler {
|
|||
final HashSet<String> names = new HashSet<>();
|
||||
for (final String worldname : worlds) {
|
||||
// Getting UUIDs
|
||||
final File playerdataFolder = new File(worldname + File.separator + "playerdata");
|
||||
final File playerdataFolder = new File(Bukkit.getWorldContainer(), worldname + File.separator + "playerdata");
|
||||
String[] dat = playerdataFolder.list(new FilenameFilter() {
|
||||
@Override
|
||||
public boolean accept(final File f, final String s) {
|
||||
|
|
Loading…
Reference in a new issue