diff --git a/prison-core/src/main/java/tech/mcprison/prison/PrisonCommand.java b/prison-core/src/main/java/tech/mcprison/prison/PrisonCommand.java index 5f848ac7c..863195490 100644 --- a/prison-core/src/main/java/tech/mcprison/prison/PrisonCommand.java +++ b/prison-core/src/main/java/tech/mcprison/prison/PrisonCommand.java @@ -1535,7 +1535,21 @@ public void supportSubmitVersion(CommandSender sender PrisonPasteChat pasteChat = new PrisonPasteChat( getSupportName(), getSupportURLs() ); - String helpURL = pasteChat.post( text.toString() ); + String helpURL = "(Failure in running the commmand.)"; + + try { + helpURL = pasteChat.post( text.toString() ); + } + catch (Exception e) { + Output.get().logRaw( + + String.format( + "Failed to paste support info to the support server: %s " + + "raw message: [%s]", + e.getMessage(), + text.toString() + ) ); + } getSupportURLs().put( "Submit version:", helpURL );