From 8e25dac340a07f7a57a13bdde53b0605779ea920 Mon Sep 17 00:00:00 2001 From: Luck Date: Mon, 15 Oct 2018 22:00:05 +0100 Subject: Implement tab completion, update readme --- .../main/java/me/lucko/spark/sponge/SparkSpongePlugin.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'spark-sponge/src/main/java/me/lucko/spark') 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 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."); } } -- cgit