diff --git a/pom.xml b/pom.xml index 0fbc6fb..90733d7 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ net.t2code T2CodeLib - 13.4_SNAPSHOT-2 + 13.4 jar T2CodeLib diff --git a/src/main/java/net/t2code/t2codelib/SPIGOT/api/update/T2CupdateAPI.java b/src/main/java/net/t2code/t2codelib/SPIGOT/api/update/T2CupdateAPI.java index c8c9bfe..fdbdc60 100644 --- a/src/main/java/net/t2code/t2codelib/SPIGOT/api/update/T2CupdateAPI.java +++ b/src/main/java/net/t2code/t2codelib/SPIGOT/api/update/T2CupdateAPI.java @@ -208,7 +208,7 @@ public class T2CupdateAPI { public static void onUpdateCheck(Plugin plugin, String prefix, String gitKey, Integer spigotID, String discord, Boolean updateCheckOnJoin, Boolean seePreReleaseUpdates, Integer timeInterval) { String RepoURL = "https://git.t2code.net/api/v1/repos/" + gitKey + "/releases?limit=1"; - if (!SelectLibConfig.getSeePreReleaseUpdates()) { + if (!seePreReleaseUpdates) { RepoURL = RepoURL + "&pre-release=false"; } if (!RepoURL.contains("?limit=1")) { diff --git a/src/main/java/net/t2code/t2codelib/SPIGOT/system/cmd/Commands.java b/src/main/java/net/t2code/t2codelib/SPIGOT/system/cmd/Commands.java index cec196e..81c2e25 100644 --- a/src/main/java/net/t2code/t2codelib/SPIGOT/system/cmd/Commands.java +++ b/src/main/java/net/t2code/t2codelib/SPIGOT/system/cmd/Commands.java @@ -30,10 +30,13 @@ public class Commands { "after 14 days!
The file can also be deleted manually by you via command!
Confirm the" + " upload'>upload | " + "Do not upload'>keep the file on your server"); - } else T2Csend.sender(sender, "The debug zip file is automatically uploaded to T2Code's servers
and automatically deleted " + - "after 14 days!
The file can also be deleted manually by you via command!

Confirm the upload with the command:" + - "
/t2c debug createReportLog confirmupload
Keep the file on your server and do not upload it with the command:" + - "
/t2c debug createReportLog noupload"); + } else T2Csend.sender(sender, "The debug zip file is automatically uploaded to T2Code's servers" + + "
and automatically deleted after 14 days!" + + "
The file can also be deleted manually by you via command!" + + "
Confirm the upload with the command:" + + "
/t2c debug createReportLog confirmupload" + + "
Keep the file on your server and do not upload it with the command:" + + "
/t2c debug createReportLog noupload"); break; case 3: Boolean upload = args[2].equalsIgnoreCase("confirmupload"); diff --git a/src/main/java/net/t2code/t2codelib/SPIGOT/system/cmd/CreateReportLog.java b/src/main/java/net/t2code/t2codelib/SPIGOT/system/cmd/CreateReportLog.java index 3b20f59..d5cfc56 100644 --- a/src/main/java/net/t2code/t2codelib/SPIGOT/system/cmd/CreateReportLog.java +++ b/src/main/java/net/t2code/t2codelib/SPIGOT/system/cmd/CreateReportLog.java @@ -155,7 +155,6 @@ public class CreateReportLog { return; } - HttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPost("https://debug.t2code.net/uploadFile"); @@ -175,15 +174,18 @@ public class CreateReportLog { directoryTemp.delete(); if (sender instanceof Player) { T2Csend.sender(sender, ("[prefix] A DebugLog zip has been created." + - "
[prefix] You can download it Download the debug file'>here." + - "
[prefix] Please enter the following key in the ticket: Copy to clipboard'>[key]
" + - "
[prefix]Do not share the download URL with anyone!" + - "
[prefix] Click to delete'>You can delte yor Debug-File by clicking me." + - "
[prefix] (If you do not delete the debug file, it will be deleted automatically after 14 days!)").replace("[key]", fileID) - .replace("[url]", downloadURL).replace("[prefix]",Util.getPrefix())); + "
[prefix] You can download it Download the debug file'>here." + + "
[prefix] Please enter the following key in the ticket: Copy to clipboard'>[key]" + + "
[prefix] Do not share the download URL with anyone!" + + "
Click to delete'>[prefix] You can delte yor Debug-File by clicking me." + + "
[prefix] (If you do not delete the debug file, it will be deleted automatically after 14 days!)") + .replace("[key]", fileID).replace("[url]", downloadURL).replace("[prefix]",Util.getPrefix())); } - T2Csend.console(Util.getPrefix() + (" §6A DebugLog zip has been created. You can download it here: [url].\n§6Please enter the following key in the ticket:" + - " §e[key].\n§4Do not share the download URL with anyone!\nYou can delte yor Debug-File with the following command: /t2code debug deleteReportLog [key].") + T2Csend.console(Util.getPrefix() + (" A DebugLog zip has been created. You can download it here: [url]" + + "
Please enter the following key in the ticket: [key]." + + "
Do not share the download URL with anyone!" + + "
(If you do not delete the debug file, it will be deleted automatically after 14 days!)" + + "
You can delte yor Debug-File with the following command: /t2code debug deleteReportLog [key].") .replace("[key]", fileID).replace("[url]", downloadURL)); ReportLogStorage.add(fileID); } diff --git a/src/main/java/net/t2code/t2codelib/Util.java b/src/main/java/net/t2code/t2codelib/Util.java index 1a2ea72..f149e52 100644 --- a/src/main/java/net/t2code/t2codelib/Util.java +++ b/src/main/java/net/t2code/t2codelib/Util.java @@ -10,7 +10,7 @@ public class Util { } public static String getPrefix() { - return "§8[§4T2Code§5Lib§8]"; + return "[T2CodeLib]"; } public static Integer getSpigotID() {