mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-26 20:47:01 +01:00
Deny import of "plugins" and "logs" folder as a world. Should fix #1655
(cherry picked from commit d2d243caec
)
This commit is contained in:
parent
0992584943
commit
5905b3132d
@ -221,6 +221,9 @@ public class WorldManager implements MVWorldManager {
|
|||||||
@Override
|
@Override
|
||||||
public boolean addWorld(String name, Environment env, String seedString, WorldType type, Boolean generateStructures,
|
public boolean addWorld(String name, Environment env, String seedString, WorldType type, Boolean generateStructures,
|
||||||
String generator, boolean useSpawnAdjust) {
|
String generator, boolean useSpawnAdjust) {
|
||||||
|
if (name.equalsIgnoreCase("plugins") || name.equalsIgnoreCase("logs")) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
Long seed = null;
|
Long seed = null;
|
||||||
WorldCreator c = new WorldCreator(name);
|
WorldCreator c = new WorldCreator(name);
|
||||||
if (seedString != null && seedString.length() > 0) {
|
if (seedString != null && seedString.length() > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user