9
0
mirror of https://github.com/WiIIiam278/HuskSync.git synced 2025-12-19 14:59:21 +00:00

fix: return bytebin URL for viewing dumps

This commit is contained in:
William278
2025-03-07 17:25:03 +00:00
parent 0ae13d730d
commit 33e20a0c0b

View File

@@ -65,7 +65,7 @@ public class UserDataDumper implements Flusher {
@NotNull
public String toWeb() {
try {
return uploadDump(toString(), BYTEBIN_URL, "husksync");
return "%s/%s".formatted(BYTEBIN_URL, uploadDump(toString(), BYTEBIN_URL, "husksync"));
} catch (Throwable e) {
plugin.log(Level.SEVERE, "Failed to upload data.", e);
}