-
Notifications
You must be signed in to change notification settings - Fork 228
Web API
Jesse Boyd edited this page Nov 1, 2016
·
2 revisions
FAWE allows you to upload or download schematics from a compatible and configured webserver.
web:
# I am already hosting a web interface for you here
url: "http://empcraft.com/fawe/"
https://github.com/boy0001/plotupload + custom style
If it returns null, it indicates the upload was unsuccessful.
URL url = FaweAPI.upload(clipboard, format);
URL base = new URL(Settings.WEB.URL);
URL url = new URL(base, "uploads/" + uuid + ".schematic");
ReadableByteChannel rbc = Channels.newChannel(url.openStream());
InputStream in = Channels.newInputStream(rbc);
// Load and paste the stream (assuming it's a schematic format) etc.
EditSession editSession = ClipboardFormat.SCHEMATIC.load(in).paste(world, position, allowUndo, !noAir, (Transform) null);
This wiki is outdated, move to https://github.com/IntellectualSites/FastAsyncWorldEdit-Documentation/
This Wiki is for Legacy Versions (1.8 - 1.12.2). Check here for 1.13+ versions: https://github.com/IntellectualSites/FastAsyncWorldEdit-Documentation/