aboutsummaryrefslogtreecommitdiff
path: root/spark-bukkit
diff options
context:
space:
mode:
authorLuck <git@lucko.me>2018-12-31 18:15:39 +0000
committerLuck <git@lucko.me>2018-12-31 18:15:39 +0000
commit9bed6177ddf94f67aaad5ee2504721cf0b957a94 (patch)
treea830407555e458bc02f220b09b4b40386321eb9c /spark-bukkit
parent66a8afab99efb7ac7669961eb2e67e2244d494e5 (diff)
downloadspark-9bed6177ddf94f67aaad5ee2504721cf0b957a94.tar.gz
spark-9bed6177ddf94f67aaad5ee2504721cf0b957a94.tar.bz2
spark-9bed6177ddf94f67aaad5ee2504721cf0b957a94.zip
Add '/spark heapdump' command
Diffstat (limited to 'spark-bukkit')
-rw-r--r--spark-bukkit/src/main/java/me/lucko/spark/bukkit/SparkBukkitPlugin.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/spark-bukkit/src/main/java/me/lucko/spark/bukkit/SparkBukkitPlugin.java b/spark-bukkit/src/main/java/me/lucko/spark/bukkit/SparkBukkitPlugin.java
index aebf9a7..f1395c4 100644
--- a/spark-bukkit/src/main/java/me/lucko/spark/bukkit/SparkBukkitPlugin.java
+++ b/spark-bukkit/src/main/java/me/lucko/spark/bukkit/SparkBukkitPlugin.java
@@ -30,6 +30,7 @@ import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
+import java.nio.file.Path;
import java.util.Collections;
import java.util.List;
@@ -52,7 +53,12 @@ public class SparkBukkitPlugin extends JavaPlugin {
@Override
public String getVersion() {
- return SparkBukkitPlugin.this.getDescription().getVersion();
+ return getDescription().getVersion();
+ }
+
+ @Override
+ public Path getPluginFolder() {
+ return getDataFolder().toPath();
}
@Override