Fix inconsistency with legacy regarding loading schematics from URL

Dieser Commit ist enthalten in:
dordsor21 2020-09-26 22:20:47 +01:00
Ursprung 68deed1469
Commit bd4a3a3efd
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B

Datei anzeigen

@ -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"));