Reverting to old behavior for nether creation. If you use other multiworld plugins, make sure you setup the nether correctly there too.

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1496 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
snowleo 2011-05-15 18:31:36 +00:00
parent fecd5676ce
commit 0d39f9225a

View file

@ -176,7 +176,7 @@ public class Essentials extends JavaPlugin
pm.registerEvent(Type.PLAYER_INTERACT, jailPlayerListener, Priority.High, this);
attachEcoListeners();
if (settings.isNetherEnabled())
if (settings.isNetherEnabled() && getServer().getWorlds().size() < 2)
{
getServer().createWorld(settings.getNetherName(), World.Environment.NETHER);
}