Skip to content

Commit

Permalink
tweak debug header addon post-correction
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Aug 28, 2022
1 parent c4cba4a commit 061d610
Showing 1 changed file with 8 additions and 2 deletions.
Expand Up @@ -29,11 +29,17 @@ public class DebugSubmit {
public static void init() {
DebugSubmitter.pasteTitleGetter = () -> "Denizen Debug Logs From " + ChatColor.stripColor(Bukkit.getServer().getMotd());
DebugSubmitter.debugHeaderLines.add(DebugSubmit::getCoreHeader);
DebugSubmitter.debugHeaderLines.addAll(additionalDebugLines);
additionalDebugLines.clear();
}

public static String getCoreHeader() {
DebugSubmitter.debugHeaderLines.addAll(additionalDebugLines);
additionalDebugLines.clear();
if (!DebugSubmitter.debugHeaderLines.isEmpty()) {
Bukkit.getScheduler().scheduleSyncDelayedTask(Denizen.instance, () -> {
DebugSubmitter.debugHeaderLines.addAll(additionalDebugLines);
additionalDebugLines.clear();
}, 0);
}
try {
// Build a list of plugins
StringBuilder pluginlist = new StringBuilder();
Expand Down

0 comments on commit 061d610

Please sign in to comment.