From aab9958932fc68b372e6850414ce47635657d2c4 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Sat, 9 Jan 2021 21:52:50 +0000 Subject: [PATCH] Fixes #221 If WE wants to add it as well, it's up to them. I asked but wiz was hostile about it. --- .../src/main/java/com/sk89q/worldedit/WorldEdit.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/WorldEdit.java b/worldedit-core/src/main/java/com/sk89q/worldedit/WorldEdit.java index 289c82bb7..1d6334ae5 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/WorldEdit.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/WorldEdit.java @@ -459,6 +459,16 @@ public final class WorldEdit { return getConfiguration().getWorkingDirectoryPath().resolve(path); } + //FAWE + /** + * Gets the path to the folder in which schematics are saved by default + * + * @return Path to the schematic folder + */ + public Path getSchematicsFolderPath() { + return getWorkingDirectoryPath(getConfiguration().saveDir); + } + /** * Get the direction vector for a player's direction. *