aboutsummaryrefslogtreecommitdiff
path: root/spark-common/src/main/java/me/lucko
diff options
context:
space:
mode:
authorLuck <git@lucko.me>2018-06-09 20:56:41 +0100
committerLuck <git@lucko.me>2018-06-09 20:56:41 +0100
commit20950e9239b291e892332be6a3075ae3d040c235 (patch)
treefcf99626be19ced01710b236b06d1901564b7a15 /spark-common/src/main/java/me/lucko
parent7d6808cbcfbb0f61f93e536d36968eeda5bd302c (diff)
downloadspark-20950e9239b291e892332be6a3075ae3d040c235.tar.gz
spark-20950e9239b291e892332be6a3075ae3d040c235.tar.bz2
spark-20950e9239b291e892332be6a3075ae3d040c235.zip
Implement forge mod version
Diffstat (limited to 'spark-common/src/main/java/me/lucko')
-rw-r--r--spark-common/src/main/java/me/lucko/spark/common/CommandHandler.java11
1 files changed, 6 insertions, 5 deletions
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>]");
}