From 9bed6177ddf94f67aaad5ee2504721cf0b957a94 Mon Sep 17 00:00:00 2001 From: Luck Date: Mon, 31 Dec 2018 18:15:39 +0000 Subject: Add '/spark heapdump' command --- .../java/me/lucko/spark/bungeecord/SparkBungeeCordPlugin.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'spark-bungeecord/src/main/java') diff --git a/spark-bungeecord/src/main/java/me/lucko/spark/bungeecord/SparkBungeeCordPlugin.java b/spark-bungeecord/src/main/java/me/lucko/spark/bungeecord/SparkBungeeCordPlugin.java index da8ebf9..6d23683 100644 --- a/spark-bungeecord/src/main/java/me/lucko/spark/bungeecord/SparkBungeeCordPlugin.java +++ b/spark-bungeecord/src/main/java/me/lucko/spark/bungeecord/SparkBungeeCordPlugin.java @@ -34,6 +34,7 @@ import net.md_5.bungee.api.plugin.Command; import net.md_5.bungee.api.plugin.Plugin; import net.md_5.bungee.api.plugin.TabExecutor; +import java.nio.file.Path; import java.util.Collections; public class SparkBungeeCordPlugin extends Plugin { @@ -54,7 +55,12 @@ public class SparkBungeeCordPlugin extends Plugin { @Override public String getVersion() { - return SparkBungeeCordPlugin.this.getDescription().getVersion(); + return getDescription().getVersion(); + } + + @Override + public Path getPluginFolder() { + return getDataFolder().toPath(); } @Override -- cgit