Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-05 02:50:05 +01:00
schem list validation
Dieser Commit ist enthalten in:
Ursprung
f65887c957
Commit
a7c6d5e987
@ -603,6 +603,11 @@ public class SchematicCommands extends MethodCommands {
|
||||
if (uriStr.startsWith("file:/")) {
|
||||
File file = new File(uri.getPath());
|
||||
name = file.getName();
|
||||
try {
|
||||
if (!MainUtil.isInSubDirectory(dir, file)) {
|
||||
throw new RuntimeException(new CommandException("Invalid path"));
|
||||
}
|
||||
} catch (IOException ignore) {}
|
||||
if (file.isDirectory()) {
|
||||
isDir = true;
|
||||
color = "&6";
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren