summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <md_5@bigpond.com>2012-12-20 17:24:14 +1100
committermd_5 <md_5@bigpond.com>2012-12-20 17:24:14 +1100
commit7f9a52c3f7d59e3f5f6b5063b8c2bce16c0d9e16 (patch)
tree102aa68f9524a1a8efaee63bba730ed0fca9d392
parent79671d08e4f3a0697e1d29006782c402e7fcd4ba (diff)
downloadEssentials-7f9a52c3f7d59e3f5f6b5063b8c2bce16c0d9e16.tar
Essentials-7f9a52c3f7d59e3f5f6b5063b8c2bce16c0d9e16.tar.gz
Essentials-7f9a52c3f7d59e3f5f6b5063b8c2bce16c0d9e16.tar.lz
Essentials-7f9a52c3f7d59e3f5f6b5063b8c2bce16c0d9e16.tar.xz
Essentials-7f9a52c3f7d59e3f5f6b5063b8c2bce16c0d9e16.zip
Lets leave numeric homes as is for now, looping through all files on server startup is not the place to do this (reverse-merged from commit 79a44b919cc05e1f03088d4345fc73363d9c490b)
-rw-r--r--Essentials/src/com/earth2me/essentials/EssentialsUpgrade.java37
1 files changed, 0 insertions, 37 deletions
diff --git a/Essentials/src/com/earth2me/essentials/EssentialsUpgrade.java b/Essentials/src/com/earth2me/essentials/EssentialsUpgrade.java
index fb60d5b7c..384e15603 100644
--- a/Essentials/src/com/earth2me/essentials/EssentialsUpgrade.java
+++ b/Essentials/src/com/earth2me/essentials/EssentialsUpgrade.java
@@ -15,7 +15,6 @@ import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.World;
-import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.inventory.ItemStack;
@@ -790,41 +789,6 @@ public class EssentialsUpgrade
doneFile.save();
}
- private void updateNumberedHomeNames()
- {
- if (doneFile.getBoolean("numberedHomeNames"))
- {
- return;
- }
- File[] files = new File(ess.getDataFolder(), "userdata").listFiles();
- for(File file : files)
- {
- EssentialsConf config = new EssentialsConf(file);
- config.load();
- ConfigurationSection homesSection = config.getConfigurationSection("homes");
- if(homesSection == null)
- {
- continue;
- }
- Set<String> homes = homesSection.getKeys(true);
- for(String s : homes)
- {
- if(!s.contains(".") && Util.isInt(s))
- {
- ConfigurationSection home = config.getConfigurationSection("homes." + s);
- double x = home.getDouble("x"), y = home.getDouble("y"), z = home.getDouble("z"), yaw = home.getDouble("yaw"), pitch = home.getDouble("pitch");
- config.setProperty("homes.home" + s, new Location(ess.getServer().getWorld(home.getString("world")), home.getDouble("x"), home.getDouble("y"), home.getDouble("z"), (float)home.getDouble("yaw"), (float)home.getDouble("pitch")));
- config.removeProperty("homes." + s);
- }
- }
- config.save();
- }
-
-
- doneFile.setProperty("numberedHomeNames", true);
- doneFile.save();
- }
-
public void beforeSettings()
{
if (!ess.getDataFolder().exists())
@@ -847,7 +811,6 @@ public class EssentialsUpgrade
deleteOldItemsCsv();
updateSpawnsToNewSpawnsConfig();
updateJailsToNewJailsConfig();
- updateNumberedHomeNames();
warnMetrics();
}
}