mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-11 00:55:10 +02:00
Skip default home if it's invalid.
This commit is contained in:
@@ -281,9 +281,10 @@ public class EssentialsUpgrade
|
||||
@SuppressWarnings("unchecked")
|
||||
final String defworld = (String)config.getProperty("home.default");
|
||||
final Location defloc = config.getLocation("home.worlds." + defworld, ess.getServer());
|
||||
|
||||
;
|
||||
config.setProperty("homes.home", defloc);
|
||||
if (defloc != null)
|
||||
{
|
||||
config.setProperty("homes.home", defloc);
|
||||
}
|
||||
|
||||
List<String> worlds = config.getKeys("home.worlds");
|
||||
Location loc;
|
||||
|
Reference in New Issue
Block a user