This commit is contained in:
Jesse Boyd 2018-03-15 15:57:45 +11:00
parent 5cc4f6a37f
commit fac3772eed
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -386,7 +386,8 @@ public class SchematicCommands extends MethodCommands {
final LocalConfiguration config = this.worldEdit.getConfiguration();
final String filename = args.getString(0);
final File dir = this.worldEdit.getWorkingDirectoryFile(config.saveDir);
final File working = this.worldEdit.getWorkingDirectoryFile(config.saveDir);
final File dir = Settings.IMP.PATHS.PER_PLAYER_SCHEMATICS ? new File(working, player.getUniqueId().toString()) : working;
final File f = this.worldEdit.getSafeSaveFile(player, dir, filename, "schematic", "schematic");
if (!f.exists()) {
player.printError("Schematic " + filename + " does not exist!");