diff options
Diffstat (limited to 'bukkit/src/main/java/me/lucko/spark')
-rw-r--r-- | bukkit/src/main/java/me/lucko/spark/bukkit/SparkBukkitPlugin.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bukkit/src/main/java/me/lucko/spark/bukkit/SparkBukkitPlugin.java b/bukkit/src/main/java/me/lucko/spark/bukkit/SparkBukkitPlugin.java index cc774a3..8b3ed28 100644 --- a/bukkit/src/main/java/me/lucko/spark/bukkit/SparkBukkitPlugin.java +++ b/bukkit/src/main/java/me/lucko/spark/bukkit/SparkBukkitPlugin.java @@ -1,6 +1,7 @@ package me.lucko.spark.bukkit; import me.lucko.spark.common.CommandHandler; +import me.lucko.spark.profiler.ThreadDumper; import org.bukkit.ChatColor; import org.bukkit.command.Command; @@ -24,6 +25,11 @@ public class SparkBukkitPlugin extends JavaPlugin { protected void runAsync(Runnable r) { getServer().getScheduler().runTaskAsynchronously(SparkBukkitPlugin.this, r); } + + @Override + protected ThreadDumper getDefaultThreadDumper() { + return new ThreadDumper.Specific(new long[]{Thread.currentThread().getId()}); + } }; @Override |