aboutsummaryrefslogtreecommitdiff
path: root/spark-sponge/src
diff options
context:
space:
mode:
authorLuck <git@lucko.me>2018-10-15 22:00:05 +0100
committerLuck <git@lucko.me>2018-10-15 22:00:05 +0100
commit8e25dac340a07f7a57a13bdde53b0605779ea920 (patch)
tree3f034154fe8630f6cbf5648c9d2cb6b1426b9efe /spark-sponge/src
parent91775dd2ecc3f3e70dd422f68cf6d06e74db5d49 (diff)
downloadspark-8e25dac340a07f7a57a13bdde53b0605779ea920.tar.gz
spark-8e25dac340a07f7a57a13bdde53b0605779ea920.tar.bz2
spark-8e25dac340a07f7a57a13bdde53b0605779ea920.zip
Implement tab completion, update readme
Diffstat (limited to 'spark-sponge/src')
-rw-r--r--spark-sponge/src/main/java/me/lucko/spark/sponge/SparkSpongePlugin.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/spark-sponge/src/main/java/me/lucko/spark/sponge/SparkSpongePlugin.java b/spark-sponge/src/main/java/me/lucko/spark/sponge/SparkSpongePlugin.java
index a9bc99f..23d01aa 100644
--- a/spark-sponge/src/main/java/me/lucko/spark/sponge/SparkSpongePlugin.java
+++ b/spark-sponge/src/main/java/me/lucko/spark/sponge/SparkSpongePlugin.java
@@ -56,7 +56,7 @@ import javax.annotation.Nullable;
id = "spark",
name = "spark",
version = "@version@",
- description = "Spark is a CPU profiling plugin based on sk89q's WarmRoast profiler",
+ description = "@desc@",
authors = {"Luck", "sk89q"}
)
public class SparkSpongePlugin implements CommandCallable {
@@ -69,7 +69,7 @@ public class SparkSpongePlugin implements CommandCallable {
private void broadcast(Text msg) {
Sponge.getServer().getConsole().sendMessage(msg);
for (Player player : Sponge.getServer().getOnlinePlayers()) {
- if (player.hasPermission("spark.profiler")) {
+ if (player.hasPermission("spark")) {
player.sendMessage(msg);
}
}
@@ -134,7 +134,7 @@ public class SparkSpongePlugin implements CommandCallable {
@Listener
public void onServerStart(GameStartedServerEvent event) {
- game.getCommandManager().register(this, this, "spark", "profiler");
+ game.getCommandManager().register(this, this, "spark");
}
@Override
@@ -155,7 +155,7 @@ public class SparkSpongePlugin implements CommandCallable {
@Override
public boolean testPermission(CommandSource source) {
- return source.hasPermission("spark.profiler");
+ return source.hasPermission("spark");
}
@Override
@@ -165,11 +165,11 @@ public class SparkSpongePlugin implements CommandCallable {
@Override
public Optional<Text> getHelp(CommandSource source) {
- return Optional.of(Text.of("Run '/profiler' to view usage."));
+ return Optional.of(Text.of("Run '/spark' to view usage."));
}
@Override
public Text getUsage(CommandSource source) {
- return Text.of("Run '/profiler' to view usage.");
+ return Text.of("Run '/spark' to view usage.");
}
}