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/CreateReportLog.class index 988e659..eb5ef58 100644 Binary files a/target/classes/net/t2code/lib/Spigot/system/CreateReportLog.class and b/target/classes/net/t2code/lib/Spigot/system/CreateReportLog.class differ 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: