aboutsummaryrefslogtreecommitdiff
path: root/spark-sponge
diff options
context:
space:
mode:
Diffstat (limited to 'spark-sponge')
-rw-r--r--spark-sponge/build.gradle1
-rw-r--r--spark-sponge/src/main/java/me/lucko/spark/sponge/SparkSpongePlugin.java12
2 files changed, 7 insertions, 6 deletions
diff --git a/spark-sponge/build.gradle b/spark-sponge/build.gradle
index c2f0efc..581c1ec 100644
--- a/spark-sponge/build.gradle
+++ b/spark-sponge/build.gradle
@@ -11,4 +11,5 @@ dependencies {
blossom {
replaceTokenIn('src/main/java/me/lucko/spark/sponge/SparkSpongePlugin.java')
replaceToken '@version@', project.pluginVersion
+ replaceToken '@desc@', project.pluginDesc
} \ No newline at end of file
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.");
}
}