Skip to content

Commit

Permalink
update to new pastebin service
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Feb 3, 2021
1 parent a1e9d17 commit 1613582
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void run() {
BufferedReader in = null;
try {
// Open a connection to the paste server
URL url = new URL("http://one.denizenscript.com/paste");
URL url = new URL("http://paste.denizenscript.com/New/Log");
HttpURLConnection uc = (HttpURLConnection) url.openConnection();
uc.setDoInput(true);
uc.setDoOutput(true);
Expand Down Expand Up @@ -95,7 +95,7 @@ public void run() {
boolean bungee = Bukkit.getServer().spigot().getConfig().getBoolean("settings.bungeecord");
// Create the final message pack and upload it
uc.getOutputStream().write(("postid=pastetext&pastetype=log"
+ "&response=micro&v=100&pastetitle=Denizen+Debug+Logs+From+" + URLEncoder.encode(Bukkit.getServer().getMotd().replace(ChatColor.COLOR_CHAR, (char) 0x01))
+ "&response=micro&v=200&pastetitle=Denizen+Debug+Logs+From+" + URLEncoder.encode(ChatColor.stripColor(Bukkit.getServer().getMotd()))
+ "&pastecontents=" + URLEncoder.encode(("Java Version: " + System.getProperty("java.version")
+ "\nUp-time: " + new DurationTag((System.currentTimeMillis() - Denizen.startTime) / 50).formatted()
+ "\nServer Version: " + Bukkit.getServer().getName() + " version " + Bukkit.getServer().getVersion()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ public void run() {
processResult.accept(null);
}
else {
processResult.accept("https://one.denizenscript.com" + submit.Result);
processResult.accept(submit.Result);
}
}
}
Expand Down

0 comments on commit 1613582

Please sign in to comment.