Fix inconsistency with legacy regarding loading schematics from URL

This commit is contained in:
dordsor21 2020-09-26 22:20:47 +01:00
parent 68deed1469
commit bd4a3a3efd
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -204,6 +204,11 @@ public class SchematicCommands {
InputStream in = null;
try {
URI uri;
if (formatName.startsWith("url:")) {
String t = filename;
filename = formatName;
formatName = t;
}
if (filename.startsWith("url:")) {
if (!actor.hasPermission("worldedit.schematic.load.web")) {
actor.print(Caption.of("fawe.error.no-perm", "worldedit.schematic.load.web"));