Remove assetpacks

Dieser Commit ist enthalten in:
MattBDev 2020-03-23 18:38:07 -04:00
Ursprung 43dc1074b0
Commit 221500e7db
4 geänderte Dateien mit 4 neuen und 71 gelöschten Zeilen

Datei anzeigen

@ -381,12 +381,6 @@ public class Settings extends Config {
" - Supports clipboard uploads, downloads and saves",
})
public String URL = "https://athion.net/fawe/";
@Comment({
"The web interface for assets",
" - All schematics are organized and public",
" - Assets can be searched, selected and downloaded",
})
public String ASSETS = "https://empcraft.com/assetpack/";
}
public static class EXTENT {

Datei anzeigen

@ -118,9 +118,9 @@ public abstract class FileConfiguration extends MemoryConfiguration {
throw new NullPointerException("File cannot be null");
}
FileInputStream stream = new FileInputStream(file);
load(new InputStreamReader(stream, StandardCharsets.UTF_8));
try (FileInputStream stream = new FileInputStream(file)) {
load(new InputStreamReader(stream, StandardCharsets.UTF_8));
}
}
/**

Datei anzeigen

@ -1,28 +0,0 @@
package com.boydti.fawe.object.clipboard;
import com.boydti.fawe.object.io.FastByteArrayOutputStream;
import java.util.function.BiFunction;
public class LinearClipboardBuilder {
FastByteArrayOutputStream blocksOut = new FastByteArrayOutputStream();
FastByteArrayOutputStream biomesOut = new FastByteArrayOutputStream();
public int width, height, length;
public void setWidth(int width) {
this.width = width;
}
public void setHeight(int height) {
this.height = height;
}
public void setLength(int length) {
this.length = length;
}
public LinearClipboard build() {
return null;
}
}

Datei anzeigen

@ -370,40 +370,7 @@ public class ClipboardCommands {
player.print(Caption.of("fawe.web.download.link" , urlText));
}
}
@Command(
name = "asset",
desc = "Saves your clipboard to the asset web interface"
)
@CommandPermissions({"worldedit.clipboard.asset"})
public void asset(final Player player, final LocalSession session, String category) throws WorldEditException {
final ClipboardFormat format = BuiltInClipboardFormat.MCEDIT_SCHEMATIC;
ClipboardHolder holder = session.getClipboard();
Clipboard clipboard = holder.getClipboard();
final Transform transform = holder.getTransform();
final Clipboard target;
// If we have a transform, bake it into the copy
if (!transform.isIdentity()) {
final FlattenedClipboardTransform result = FlattenedClipboardTransform.transform(clipboard, transform);
target = new BlockArrayClipboard(result.getTransformedRegion(), player.getUniqueId());
target.setOrigin(clipboard.getOrigin());
Operations.completeLegacy(result.copyTo(target));
} else {
target = clipboard;
}
player.print(Caption.of("fawe.web.generating.link" , format.getName()));
if (Settings.IMP.WEB.ASSETS.isEmpty()) {
player.print(Caption.of("fawe.error.setting.disable", "web.assets"));
return;
}
URL url = format.uploadPublic(target, category.replaceAll("[/|\\\\]", "."), player.getName());
if (url == null) {
player.printError(TranslatableComponent.of("fawe.web.generating.link.failed"));
} else {
player.print(Caption.of("fawe.web.download.link" , Settings.IMP.WEB.ASSETS));
}
}
@Command(
name = "/paste",
aliases = { "/p", "/pa" },