diff --git a/src/com/massivecraft/mcore/util/MUtil.java b/src/com/massivecraft/mcore/util/MUtil.java index 29694351..bbdc6d0c 100644 --- a/src/com/massivecraft/mcore/util/MUtil.java +++ b/src/com/massivecraft/mcore/util/MUtil.java @@ -102,7 +102,12 @@ public class MUtil for (File playerfile : playerfiles) { String filename = playerfile.getName(); + + // Ensure it's actually a .dat player filefile + if (!filename.toLowerCase().endsWith(".dat")) continue; + String playername = filename.substring(0, filename.length()-4); + ret.add(playername); }