From d9914d7f0abc1148b79fd757a895eae3b4559aaa Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Wed, 1 May 2019 21:42:18 +0200 Subject: [PATCH] Re-add paste service And move issue template --- ISSUE_TEMPLATE.md => .github/ISSUE_TEMPLATE.md | 0 .../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 +++-- 4 files changed, 6 insertions(+), 5 deletions(-) rename ISSUE_TEMPLATE.md => .github/ISSUE_TEMPLATE.md (100%) diff --git a/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md similarity index 100% rename from ISSUE_TEMPLATE.md rename to .github/ISSUE_TEMPLATE.md 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()));