From 24ec84730e45d5e12f85d7954202c4e9dfeef70d Mon Sep 17 00:00:00 2001 From: ElgarL Date: Wed, 4 Jul 2012 11:32:17 +0100 Subject: Ignore any sub folders in the Worlds folder which start with a period (fix for storing data in svn respoitories). --- EssentialsGroupManager/src/Changelog.txt | 3 ++- .../src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'EssentialsGroupManager/src') diff --git a/EssentialsGroupManager/src/Changelog.txt b/EssentialsGroupManager/src/Changelog.txt index 3b44270c6..99133244e 100644 --- a/EssentialsGroupManager/src/Changelog.txt +++ b/EssentialsGroupManager/src/Changelog.txt @@ -185,4 +185,5 @@ v 2.0: - Fix forgetting sub groups on a manload. - Allow 'manucheckp' to notify when superperms reports false but it is really negated. - Only output a Data update message if something has changed. - - Fix loading users with only numerals in their names to be seen as strings. \ No newline at end of file + - Fix loading users with only numerals in their names to be seen as strings. + - Ignore any sub folders in the Worlds folder which start with a period (fix for storing data in svn respoitories). \ No newline at end of file diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java index f9735c282..199c99bb3 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java @@ -105,7 +105,7 @@ public class WorldsHolder { * and attempt to load the world data */ for (File folder : worldsFolder.listFiles()) { - if (folder.isDirectory()) { + if (folder.isDirectory() && !folder.getName().startsWith(".")) { GroupManager.logger.info("World Found: " + folder.getName()); /* -- cgit v1.2.3