Deny import of "plugins" and "logs" folder as a world. Should fix #1655

(cherry picked from commit d2d243caec)
This commit is contained in:
Jeremy Wood 2016-02-15 10:40:07 -05:00
parent 0992584943
commit 5905b3132d

View File

@ -221,6 +221,9 @@ public class WorldManager implements MVWorldManager {
@Override
public boolean addWorld(String name, Environment env, String seedString, WorldType type, Boolean generateStructures,
String generator, boolean useSpawnAdjust) {
if (name.equalsIgnoreCase("plugins") || name.equalsIgnoreCase("logs")) {
return false;
}
Long seed = null;
WorldCreator c = new WorldCreator(name);
if (seedString != null && seedString.length() > 0) {