From 6d65f15f98940324783777e33eab9ff21bce48cc Mon Sep 17 00:00:00 2001 From: JaTiTV Date: Wed, 22 Dec 2021 19:34:35 +0100 Subject: [PATCH] 8 --- .../{T2CodeLib_7_5.xml => T2CodeLib_8.xml} | 4 ++-- pom.xml | 4 ++-- .../lib/Spigot/system/CreateReportLog.java | 15 +++++---------- src/main/resources/plugin.yml | 1 + .../lib/Spigot/system/CreateReportLog.class | Bin 8951 -> 8981 bytes target/classes/plugin.yml | 1 + 6 files changed, 11 insertions(+), 14 deletions(-) rename .idea/artifacts/{T2CodeLib_7_5.xml => T2CodeLib_8.xml} (64%) diff --git a/.idea/artifacts/T2CodeLib_7_5.xml b/.idea/artifacts/T2CodeLib_8.xml similarity index 64% rename from .idea/artifacts/T2CodeLib_7_5.xml rename to .idea/artifacts/T2CodeLib_8.xml index 80898f0..af9753d 100644 --- a/.idea/artifacts/T2CodeLib_7_5.xml +++ b/.idea/artifacts/T2CodeLib_8.xml @@ -1,7 +1,7 @@ - + $PROJECT_DIR$/../../Plugins/T2CodeLib/.jar - + diff --git a/pom.xml b/pom.xml index 00ca2ce..c494f90 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ net.t2code T2CodeLib - 7.5 + 8 jar T2CodeLib @@ -61,7 +61,7 @@ Builders-Paradise - https://dojagames.net:8081/repository/Builders-Paradise/ + https://repo.t2code.net/repository/Builders-Paradise/ jitpack.io diff --git a/src/main/java/net/t2code/lib/Spigot/system/CreateReportLog.java b/src/main/java/net/t2code/lib/Spigot/system/CreateReportLog.java index 102d237..792eac5 100644 --- a/src/main/java/net/t2code/lib/Spigot/system/CreateReportLog.java +++ b/src/main/java/net/t2code/lib/Spigot/system/CreateReportLog.java @@ -7,14 +7,11 @@ import net.t2code.lib.Spigot.Lib.plugins.PluginCheck; import net.t2code.lib.Spigot.Lib.vault.Vault; import org.bukkit.Bukkit; import org.bukkit.command.CommandSender; -import org.bukkit.configuration.file.YamlConfiguration; import org.bukkit.entity.Player; import org.bukkit.plugin.Plugin; import java.io.*; import java.nio.file.Files; -import java.nio.file.Path; -import java.nio.file.Paths; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.zip.ZipEntry; @@ -89,9 +86,7 @@ public class CreateReportLog { //File logToZip = new File(log); //zipOut.putNextEntry(new ZipEntry(logToZip.getName())); //Files.copy(logToZip.toPath(), zipOut); - - addFileToZip("", "logs/latest.log", zip, false); - + pluginToDebug("T2CodeLib", "T2CodeLib", zip); pluginToDebug("T2C-LuckyBox", "T2C-LuckyBox", zip); pluginToDebug("WonderBagShop", "WonderBagShop", zip); pluginToDebug("CommandGUI", "CommandGUI", zip); @@ -103,7 +98,7 @@ public class CreateReportLog { pluginToDebug("LoreEditor", "LoreEditor", zip); pluginToDebug("Booster", "Booster", zip); pluginToDebug("AntiMapCopy", "AntiCopy", zip); - + addFileToZip("", "logs/latest.log", zip, false); zip.closeEntry(); zip.close(); } catch (IOException e) { @@ -111,9 +106,9 @@ public class CreateReportLog { } file.delete(); if (sender instanceof Player) { - send.sender(sender, Main.prefix + " §6The DebugLog has been created. You can find it under: §e" + zipPath); - send.console(Main.prefix + " §6A DebugLog has been created. You can find it under: §e" + zipPath); - } else send.sender(sender, Main.prefix + " §6The DebugLog has been created. You can find it under: §e" + zipPath); + send.sender(sender, Main.prefix + " §6A DebugLog zip has been created. you can find it on in the files on your server under the path: §e" + zipPath); + send.console(Main.prefix + " §6A DebugLog zip has been created. you can find it on in the files on your server under the path: §e" + zipPath); + } else send.sender(sender, Main.prefix + " §6A DebugLog zip has been created. you can find it on in the files on your server under the path: §e" + zipPath); } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index a90c876..4812f4f 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -12,6 +12,7 @@ loadbefore: [ T2C-Alias ] commands: t2code: + aliases: t2c permissions: t2code.admin: diff --git a/target/classes/net/t2code/lib/Spigot/system/CreateReportLog.class b/target/classes/net/t2code/lib/Spigot/system/Create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ROYOo)9|Tz*4-46?hx#5yK{&mMnc2Z{Y)+#Ti_|xo`7w1)BJCej*&5krwp} zUX#RIFOBM#yq;jImrs2|S1)fQ>FQ0=1@!V$-jq~!;zEKrl^||7EPW^y;!@?0VB@c( UMeLdIH8Q?O8F@?mHu2a01157z-v9sr diff --git a/target/classes/plugin.yml b/target/classes/plugin.yml index f9bf7df..5c6fff6 100644 --- a/target/classes/plugin.yml +++ b/target/classes/plugin.yml @@ -12,6 +12,7 @@ loadbefore: [ T2C-Alias ] commands: t2code: + aliases: t2c permissions: t2code.admin: