2021-12-21 04:57:29 +00:00
|
|
|
package de.jatitv.commandguiv2.Spigot.system;
|
|
|
|
|
|
|
|
import de.jatitv.commandguiv2.Spigot.Main;
|
|
|
|
import net.t2code.lib.Spigot.Lib.messages.send;
|
|
|
|
import org.bukkit.Bukkit;
|
|
|
|
import org.bukkit.command.CommandSender;
|
|
|
|
import org.bukkit.configuration.file.YamlConfiguration;
|
|
|
|
import org.bukkit.plugin.Plugin;
|
|
|
|
|
|
|
|
import java.io.File;
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
import java.util.Calendar;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
public class Debug {
|
|
|
|
|
2022-05-28 19:46:04 +00:00
|
|
|
private static final Plugin plugin = Main.plugin;
|
2022-05-31 22:01:15 +00:00
|
|
|
|
2021-12-21 04:57:29 +00:00
|
|
|
public static void debugmsg() {
|
2022-05-31 22:01:15 +00:00
|
|
|
send.debug(plugin, "§5!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
|
|
|
|
send.debug(plugin, "§3Bukkit Version: §e" + Bukkit.getBukkitVersion());
|
|
|
|
send.debug(plugin, "§3NMS Version: §e" + Bukkit.getServer().getClass().getPackage().getName().replace("org.bukkit.craftbukkit.", ""));
|
|
|
|
send.debug(plugin, "§3Version: §e" + Bukkit.getVersion());
|
|
|
|
send.debug(plugin, "§3Java: §e" + System.getProperty("java.version"));
|
|
|
|
send.debug(plugin, "§3Worlds: §e" + String.valueOf(Bukkit.getServer().getWorlds()));
|
|
|
|
send.debug(plugin, String.valueOf(Main.plugins));
|
|
|
|
send.debug(plugin, "§5----------------------------------");
|
2021-12-21 04:57:29 +00:00
|
|
|
if (new File(Main.getPath(), "config.yml").exists()) {
|
|
|
|
File f = new File(String.valueOf(Main.getPath()));
|
|
|
|
File f2 = new File(String.valueOf(Main.getPath() + "/GUIs/"));
|
|
|
|
File f3 = new File(String.valueOf(Main.getPath() + "/languages/"));
|
|
|
|
File[] fileArray = f.listFiles();
|
|
|
|
File[] fileArray2 = f2.listFiles();
|
|
|
|
File[] fileArray3 = f3.listFiles();
|
2022-05-31 22:01:15 +00:00
|
|
|
if (fileArray != null) {
|
|
|
|
for (File config : fileArray) {
|
|
|
|
send.debug(plugin, String.valueOf(config).replace("plugins/CommandGUI/", ""));
|
|
|
|
}
|
2021-12-21 04:57:29 +00:00
|
|
|
}
|
2022-05-31 22:01:15 +00:00
|
|
|
if (fileArray2 != null) {
|
|
|
|
for (File config2 : fileArray2) {
|
|
|
|
send.debug(plugin, String.valueOf(config2).replace("plugins/CommandGUI/", ""));
|
|
|
|
}
|
|
|
|
} else send.debug(plugin, "No GUI files available");
|
|
|
|
|
|
|
|
if (fileArray3 != null) {
|
|
|
|
for (File config3 : fileArray3) {
|
|
|
|
send.debug(plugin, String.valueOf(config3).replace("plugins/CommandGUI/", ""));
|
|
|
|
}
|
|
|
|
} else send.debug(plugin, "No language files available");
|
|
|
|
|
2021-12-21 04:57:29 +00:00
|
|
|
}
|
2022-05-31 22:01:15 +00:00
|
|
|
send.debug(plugin, "§5!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
|
2021-12-21 04:57:29 +00:00
|
|
|
}
|
|
|
|
}
|