mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Fix paste service
This commit is contained in:
parent
2be8d87d5a
commit
e2513e2c08
@ -23,7 +23,7 @@ public final class IncendoPaster {
|
|||||||
/**
|
/**
|
||||||
* Upload service URL
|
* Upload service URL
|
||||||
*/
|
*/
|
||||||
public static final String UPLOAD_PATH = "https://incendo.org/paste/upload";
|
public static final String UPLOAD_PATH = "https://athion.net/ISPaster/paste/upload";
|
||||||
/**
|
/**
|
||||||
* Valid paste applications
|
* Valid paste applications
|
||||||
*/
|
*/
|
||||||
@ -238,7 +238,7 @@ public final class IncendoPaster {
|
|||||||
|
|
||||||
if (jsonObject.has("created")) {
|
if (jsonObject.has("created")) {
|
||||||
final String pasteId = jsonObject.get("paste_id").getAsString();
|
final String pasteId = jsonObject.get("paste_id").getAsString();
|
||||||
return String.format("https://incendo.org/paste/view/%s", pasteId);
|
return String.format("https://athion.net/ISPaster/paste/view/%s", pasteId);
|
||||||
} else {
|
} else {
|
||||||
throw new IOException(String.format("Failed to upload files: %s",
|
throw new IOException(String.format("Failed to upload files: %s",
|
||||||
jsonObject.get("response").getAsString()));
|
jsonObject.get("response").getAsString()));
|
||||||
|
@ -108,7 +108,7 @@ public class WorldEditCommands {
|
|||||||
@Command(
|
@Command(
|
||||||
aliases = {"debugpaste"},
|
aliases = {"debugpaste"},
|
||||||
usage = "",
|
usage = "",
|
||||||
desc = "Upload latest.log, config.yml, message.yml and your commands.yml to https://incendo.org",
|
desc = "Upload latest.log, config.yml, message.yml and your commands.yml to https://athion.net/ISPaster/paste",
|
||||||
min = 0,
|
min = 0,
|
||||||
max = 0
|
max = 0
|
||||||
)
|
)
|
||||||
|
@ -25,7 +25,7 @@ public final class IncendoPaste implements Paster{
|
|||||||
/**
|
/**
|
||||||
* Upload service URL
|
* Upload service URL
|
||||||
*/
|
*/
|
||||||
public static final String UPLOAD_PATH = "https://incendo.org/paste/upload";
|
public static final String UPLOAD_PATH = "https://athion.net/ISPaster/paste/upload";
|
||||||
/**
|
/**
|
||||||
* Valid paste applications
|
* Valid paste applications
|
||||||
*/
|
*/
|
||||||
@ -242,6 +242,7 @@ public final class IncendoPaste implements Paster{
|
|||||||
}
|
}
|
||||||
|
|
||||||
incendoPaster.addFile(new PasteFile("config.yml", readFile(new File(Fawe.imp().getDirectory(), "config.yml"))));
|
incendoPaster.addFile(new PasteFile("config.yml", readFile(new File(Fawe.imp().getDirectory(), "config.yml"))));
|
||||||
|
incendoPaster.addFile(new PasteFile("config-legacy.yml", readFile(new File(Fawe.imp().getDirectory(), "config-legacy.yml"))));
|
||||||
incendoPaster.addFile(new PasteFile("message.yml", readFile(new File(Fawe.imp().getDirectory(), "message.yml"))));
|
incendoPaster.addFile(new PasteFile("message.yml", readFile(new File(Fawe.imp().getDirectory(), "message.yml"))));
|
||||||
incendoPaster.addFile(new PasteFile("commands.yml", readFile(new File(Fawe.imp().getDirectory(), "commands.yml"))));
|
incendoPaster.addFile(new PasteFile("commands.yml", readFile(new File(Fawe.imp().getDirectory(), "commands.yml"))));
|
||||||
|
|
||||||
@ -255,7 +256,7 @@ public final class IncendoPaste implements Paster{
|
|||||||
|
|
||||||
if (jsonObject.has("created")) {
|
if (jsonObject.has("created")) {
|
||||||
final String pasteId = jsonObject.get("paste_id").getAsString();
|
final String pasteId = jsonObject.get("paste_id").getAsString();
|
||||||
return String.format("https://incendo.org/paste/view/%s", pasteId);
|
return String.format("https://athion.net/ISPaster/paste/view/%s", pasteId);
|
||||||
} else {
|
} else {
|
||||||
throw new IOException(String.format("Failed to upload files: %s",
|
throw new IOException(String.format("Failed to upload files: %s",
|
||||||
jsonObject.get("response").getAsString()));
|
jsonObject.get("response").getAsString()));
|
||||||
|
Loading…
Reference in New Issue
Block a user