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