aboutsummaryrefslogtreecommitdiff
path: root/spark-common
diff options
context:
space:
mode:
Diffstat (limited to 'spark-common')
-rw-r--r--spark-common/build.gradle1
-rw-r--r--spark-common/src/main/java/me/lucko/spark/common/CommandHandler.java11
2 files changed, 6 insertions, 6 deletions
diff --git a/spark-common/build.gradle b/spark-common/build.gradle
index d59ce24..453bbdd 100644
--- a/spark-common/build.gradle
+++ b/spark-common/build.gradle
@@ -1,6 +1,5 @@
dependencies {
compile 'com.squareup.okhttp3:okhttp:3.10.0'
- compile 'com.squareup.okio:okio:1.14.0'
compileOnly 'com.google.code.gson:gson:2.7'
compileOnly 'com.google.guava:guava:19.0'
}
diff --git a/spark-common/src/main/java/me/lucko/spark/common/CommandHandler.java b/spark-common/src/main/java/me/lucko/spark/common/CommandHandler.java
index 898bba7..72774d5 100644
--- a/spark-common/src/main/java/me/lucko/spark/common/CommandHandler.java
+++ b/spark-common/src/main/java/me/lucko/spark/common/CommandHandler.java
@@ -51,6 +51,7 @@ public abstract class CommandHandler<T> {
// abstract methods implemented by each platform
+ protected abstract String getLabel();
protected abstract void sendMessage(T sender, String message);
protected abstract void sendMessage(String message);
protected abstract void sendLink(String url);
@@ -103,16 +104,16 @@ public abstract class CommandHandler<T> {
private void sendInfo(T sender) {
sendPrefixedMessage(sender, "&fspark profiler &7v1.0");
- sendMessage(sender, "&b&l> &7/profiler start");
+ sendMessage(sender, "&b&l> &7/" + getLabel() + " start");
sendMessage(sender, " &8[&7--timeout&8 <timeout seconds>]");
sendMessage(sender, " &8[&7--thread&8 <thread name>]");
sendMessage(sender, " &8[&7--not-combined]");
sendMessage(sender, " &8[&7--interval&8 <interval millis>]");
sendMessage(sender, " &8[&7--only-ticks-over&8 <tick length millis>]");
- sendMessage(sender, "&b&l> &7/profiler info");
- sendMessage(sender, "&b&l> &7/profiler stop");
- sendMessage(sender, "&b&l> &7/profiler cancel");
- sendMessage(sender, "&b&l> &7/profiler monitoring");
+ sendMessage(sender, "&b&l> &7/" + getLabel() + " info");
+ sendMessage(sender, "&b&l> &7/" + getLabel() + " stop");
+ sendMessage(sender, "&b&l> &7/" + getLabel() + " cancel");
+ sendMessage(sender, "&b&l> &7/" + getLabel() + " monitoring");
sendMessage(sender, " &8[&7--threshold&8 <percentage increase>]");
}