File tree Expand file tree Collapse file tree
bukkit-extension/src/main/java/dev/themeinerlp/plugindebug Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55import org .bukkit .Bukkit ;
66import org .bukkit .configuration .file .YamlConfiguration ;
77import org .bukkit .plugin .Plugin ;
8- import org .bukkit .plugin .java .JavaPlugin ;
98import org .jetbrains .annotations .NotNull ;
109
1110import java .io .IOException ;
1413import java .nio .file .Path ;
1514import java .util .Arrays ;
1615import java .util .regex .Pattern ;
17- import java .util .stream .Collectors ;
1816
1917public final class BukkitDebugBuilder extends DebugBuilder <BukkitDebugBuilder > {
2018
@@ -40,6 +38,12 @@ public BukkitDebugBuilder collectLatestSpigotLog() throws IOException {
4038 return this ;
4139 }
4240
41+ /**
42+ * Collects default paper debug information
43+ * @return the bukkit builder
44+ * @throws IOException if the file empty/null
45+ */
46+
4347 public BukkitDebugBuilder defaultPaperDebugInformation () throws IOException {
4448 var tempLogFile = Files .createTempFile (tempFile , ".yaml" );
4549 var plugins = Arrays .asList (Bukkit .getServer ().getPluginManager ().getPlugins ());
You can’t perform that action at this time.
0 commit comments