From e2513e2c08213dfedbd52792c317d020bc139432 Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Sun, 5 May 2019 20:43:56 +0200 Subject: [PATCH] Fix paste service --- .../src/main/java/com/boydti/fawe/util/IncendoPaster.java | 4 ++-- .../java/com/sk89q/worldedit/command/WorldEditCommands.java | 2 +- .../java/com/sk89q/worldedit/util/paste/IncendoPaste.java | 5 +++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/worldedit-core/src/main/java/com/boydti/fawe/util/IncendoPaster.java b/worldedit-core/src/main/java/com/boydti/fawe/util/IncendoPaster.java index 58fb8fa6b..86a415298 100644 --- a/worldedit-core/src/main/java/com/boydti/fawe/util/IncendoPaster.java +++ b/worldedit-core/src/main/java/com/boydti/fawe/util/IncendoPaster.java @@ -23,7 +23,7 @@ public final class IncendoPaster { /** * 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 */ @@ -238,7 +238,7 @@ public final class IncendoPaster { if (jsonObject.has("created")) { 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 { throw new IOException(String.format("Failed to upload files: %s", jsonObject.get("response").getAsString())); diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/WorldEditCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/WorldEditCommands.java index d640b01e2..05a856f43 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/WorldEditCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/WorldEditCommands.java @@ -108,7 +108,7 @@ public class WorldEditCommands { @Command( aliases = {"debugpaste"}, 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, max = 0 ) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/util/paste/IncendoPaste.java b/worldedit-core/src/main/java/com/sk89q/worldedit/util/paste/IncendoPaste.java index 634f77eb5..38c460764 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/util/paste/IncendoPaste.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/util/paste/IncendoPaste.java @@ -25,7 +25,7 @@ public final class IncendoPaste implements Paster{ /** * 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 */ @@ -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-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("commands.yml", readFile(new File(Fawe.imp().getDirectory(), "commands.yml")))); @@ -255,7 +256,7 @@ public final class IncendoPaste implements Paster{ if (jsonObject.has("created")) { 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 { throw new IOException(String.format("Failed to upload files: %s", jsonObject.get("response").getAsString()));