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:
@@ -65,7 +65,7 @@ public class UserDataDumper implements Flusher {
|
|||||||
@NotNull
|
@NotNull
|
||||||
public String toWeb() {
|
public String toWeb() {
|
||||||
try {
|
try {
|
||||||
return uploadDump(toString(), BYTEBIN_URL, "husksync");
|
return "%s/%s".formatted(BYTEBIN_URL, uploadDump(toString(), BYTEBIN_URL, "husksync"));
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
plugin.log(Level.SEVERE, "Failed to upload data.", e);
|
plugin.log(Level.SEVERE, "Failed to upload data.", e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user