8
This commit is contained in:
parent
54b034fc31
commit
6d65f15f98
@ -1,7 +1,7 @@
|
|||||||
<component name="ArtifactManager">
|
<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>
|
<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" />
|
<element id="module-output" name="T2CodeLib" />
|
||||||
</root>
|
</root>
|
||||||
</artifact>
|
</artifact>
|
4
pom.xml
4
pom.xml
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>net.t2code</groupId>
|
<groupId>net.t2code</groupId>
|
||||||
<artifactId>T2CodeLib</artifactId>
|
<artifactId>T2CodeLib</artifactId>
|
||||||
<version>7.5</version>
|
<version>8</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>T2CodeLib</name>
|
<name>T2CodeLib</name>
|
||||||
@ -61,7 +61,7 @@
|
|||||||
</repository>
|
</repository>
|
||||||
<repository>
|
<repository>
|
||||||
<id>Builders-Paradise</id>
|
<id>Builders-Paradise</id>
|
||||||
<url>https://dojagames.net:8081/repository/Builders-Paradise/</url>
|
<url>https://repo.t2code.net/repository/Builders-Paradise/</url>
|
||||||
</repository>
|
</repository>
|
||||||
<repository>
|
<repository>
|
||||||
<id>jitpack.io</id>
|
<id>jitpack.io</id>
|
||||||
|
@ -7,14 +7,11 @@ import net.t2code.lib.Spigot.Lib.plugins.PluginCheck;
|
|||||||
import net.t2code.lib.Spigot.Lib.vault.Vault;
|
import net.t2code.lib.Spigot.Lib.vault.Vault;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.configuration.file.YamlConfiguration;
|
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.plugin.Plugin;
|
import org.bukkit.plugin.Plugin;
|
||||||
|
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.nio.file.Files;
|
import java.nio.file.Files;
|
||||||
import java.nio.file.Path;
|
|
||||||
import java.nio.file.Paths;
|
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.zip.ZipEntry;
|
import java.util.zip.ZipEntry;
|
||||||
@ -89,9 +86,7 @@ public class CreateReportLog {
|
|||||||
//File logToZip = new File(log);
|
//File logToZip = new File(log);
|
||||||
//zipOut.putNextEntry(new ZipEntry(logToZip.getName()));
|
//zipOut.putNextEntry(new ZipEntry(logToZip.getName()));
|
||||||
//Files.copy(logToZip.toPath(), zipOut);
|
//Files.copy(logToZip.toPath(), zipOut);
|
||||||
|
pluginToDebug("T2CodeLib", "T2CodeLib", zip);
|
||||||
addFileToZip("", "logs/latest.log", zip, false);
|
|
||||||
|
|
||||||
pluginToDebug("T2C-LuckyBox", "T2C-LuckyBox", zip);
|
pluginToDebug("T2C-LuckyBox", "T2C-LuckyBox", zip);
|
||||||
pluginToDebug("WonderBagShop", "WonderBagShop", zip);
|
pluginToDebug("WonderBagShop", "WonderBagShop", zip);
|
||||||
pluginToDebug("CommandGUI", "CommandGUI", zip);
|
pluginToDebug("CommandGUI", "CommandGUI", zip);
|
||||||
@ -103,7 +98,7 @@ public class CreateReportLog {
|
|||||||
pluginToDebug("LoreEditor", "LoreEditor", zip);
|
pluginToDebug("LoreEditor", "LoreEditor", zip);
|
||||||
pluginToDebug("Booster", "Booster", zip);
|
pluginToDebug("Booster", "Booster", zip);
|
||||||
pluginToDebug("AntiMapCopy", "AntiCopy", zip);
|
pluginToDebug("AntiMapCopy", "AntiCopy", zip);
|
||||||
|
addFileToZip("", "logs/latest.log", zip, false);
|
||||||
zip.closeEntry();
|
zip.closeEntry();
|
||||||
zip.close();
|
zip.close();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
@ -111,9 +106,9 @@ public class CreateReportLog {
|
|||||||
}
|
}
|
||||||
file.delete();
|
file.delete();
|
||||||
if (sender instanceof Player) {
|
if (sender instanceof Player) {
|
||||||
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 has been created. You can find it under: §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 + " §6The DebugLog has been created. You can find it under: §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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@ loadbefore: [ T2C-Alias ]
|
|||||||
|
|
||||||
commands:
|
commands:
|
||||||
t2code:
|
t2code:
|
||||||
|
aliases: t2c
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
t2code.admin:
|
t2code.admin:
|
||||||
|
Binary file not shown.
@ -12,6 +12,7 @@ loadbefore: [ T2C-Alias ]
|
|||||||
|
|
||||||
commands:
|
commands:
|
||||||
t2code:
|
t2code:
|
||||||
|
aliases: t2c
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
t2code.admin:
|
t2code.admin:
|
||||||
|
Loading…
Reference in New Issue
Block a user