- Notifications
You must be signed in to change notification settings - Fork 223
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 hereurl: "http://empcraft.com/fawe/"https://github.com/boy0001/plotupload + custom style
If it returns null, it indicates the upload was unsuccessful.
URLurl = FaweAPI.upload(clipboard, format);URLbase = newURL(Settings.WEB.URL);
URLurl = newURL(base, "uploads/" + uuid + ".schematic");
ReadableByteChannelrbc = Channels.newChannel(url.openStream());
InputStreamin = Channels.newInputStream(rbc);
// Load and paste the stream (assuming it's a schematic format) etc.EditSessioneditSession = 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/