aboutsummaryrefslogtreecommitdiff
path: root/bukkit/src
diff options
context:
space:
mode:
authorLuck <git@lucko.me>2018-05-29 18:45:16 +0100
committerLuck <git@lucko.me>2018-05-29 18:45:16 +0100
commita092e8b1495dc75ff57978985d973185d15e7449 (patch)
tree37c8fcfbfb5d11e893cd975530024d666f9f3ff2 /bukkit/src
parentfd01dfd3a461e36ab2966db7119732f739905912 (diff)
downloadspark-a092e8b1495dc75ff57978985d973185d15e7449.tar.gz
spark-a092e8b1495dc75ff57978985d973185d15e7449.tar.bz2
spark-a092e8b1495dc75ff57978985d973185d15e7449.zip
Improvements for the BungeeCord version
* Use /gprofiler and /sparkbungee aliases so the normal commands reach the backend server * Profile all threads by default
Diffstat (limited to 'bukkit/src')
-rw-r--r--bukkit/src/main/java/me/lucko/spark/bukkit/SparkBukkitPlugin.java6
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