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

This commit is contained in:
Jeremy Wood 2016-02-15 10:40:07 -05:00
parent 865434d1b1
commit d2d243caec
1 changed files with 3 additions and 0 deletions

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) {