mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
Don't allow importing using base directory
This commit is contained in:
parent
7e63ffe745
commit
000e3de35d
@ -36,6 +36,10 @@ import java.util.UUID;
|
||||
SinglePlotArea area = ((SinglePlotAreaManager) pam).getArea();
|
||||
PlotId id = new PlotId(0, 0);
|
||||
File container = PlotSquared.imp().getWorldContainer();
|
||||
if (container.equals(new File("."))) {
|
||||
player.sendMessage("World container must be configured to be a separate directory to your base files!");
|
||||
return;
|
||||
}
|
||||
for (File folder : container.listFiles()) {
|
||||
String name = folder.getName();
|
||||
if (!WorldUtil.IMP.isWorld(name) && PlotId.fromString(name) == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user