This commit is contained in:
JaTiTV 2021-12-22 19:34:35 +01:00
parent 54b034fc31
commit 6d65f15f98
6 changed files with 11 additions and 14 deletions

View File

@ -1,7 +1,7 @@
<component name="ArtifactManager">
<artifact type="jar" name="T2CodeLib_7.5">
<artifact type="jar" name="T2CodeLib_8">
<output-path>$PROJECT_DIR$/../../Plugins/T2CodeLib/.jar</output-path>
<root id="archive" name="T2CodeLib_7.5.jar">
<root id="archive" name="T2CodeLib_8.jar">
<element id="module-output" name="T2CodeLib" />
</root>
</artifact>

View File

@ -6,7 +6,7 @@
<groupId>net.t2code</groupId>
<artifactId>T2CodeLib</artifactId>
<version>7.5</version>
<version>8</version>
<packaging>jar</packaging>
<name>T2CodeLib</name>
@ -61,7 +61,7 @@
</repository>
<repository>
<id>Builders-Paradise</id>
<url>https://dojagames.net:8081/repository/Builders-Paradise/</url>
<url>https://repo.t2code.net/repository/Builders-Paradise/</url>
</repository>
<repository>
<id>jitpack.io</id>

View File

@ -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);
}

View File

@ -12,6 +12,7 @@ loadbefore: [ T2C-Alias ]
commands:
t2code:
aliases: t2c
permissions:
t2code.admin:

View File

@ -12,6 +12,7 @@ loadbefore: [ T2C-Alias ]
commands:
t2code:
aliases: t2c
permissions:
t2code.admin: