aboutsummaryrefslogtreecommitdiff
path: root/spark-bukkit
diff options
context:
space:
mode:
authorLuck <git@lucko.me>2021-08-01 15:41:59 +0100
committerLuck <git@lucko.me>2021-08-01 15:41:59 +0100
commitc8f45bdbf4f045bcad0a23d7741f8064d70c830d (patch)
tree7cbac3d082f6dd8b03170234d3397206d407c9e1 /spark-bukkit
parent111e52f3347e7ebec7bcca8a1cd185b2900753de (diff)
downloadspark-c8f45bdbf4f045bcad0a23d7741f8064d70c830d.tar.gz
spark-c8f45bdbf4f045bcad0a23d7741f8064d70c830d.tar.bz2
spark-c8f45bdbf4f045bcad0a23d7741f8064d70c830d.zip
Some basic config options
Diffstat (limited to 'spark-bukkit')
-rw-r--r--spark-bukkit/src/main/java/me/lucko/spark/bukkit/BukkitSparkPlugin.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/spark-bukkit/src/main/java/me/lucko/spark/bukkit/BukkitSparkPlugin.java b/spark-bukkit/src/main/java/me/lucko/spark/bukkit/BukkitSparkPlugin.java
index e746d60..58cb3ea 100644
--- a/spark-bukkit/src/main/java/me/lucko/spark/bukkit/BukkitSparkPlugin.java
+++ b/spark-bukkit/src/main/java/me/lucko/spark/bukkit/BukkitSparkPlugin.java
@@ -59,7 +59,7 @@ public class BukkitSparkPlugin extends JavaPlugin implements SparkPlugin {
this.platform.enable();
// override Spigot's TPS command with our own.
- if (getConfig().getBoolean("override-tps-command", true)) {
+ if (this.platform.getConfiguration().getBoolean("overrideTpsCommand", true)) {
this.tpsCommand = (sender, command, label, args) -> {
if (!sender.hasPermission("spark") && !sender.hasPermission("spark.tps") && !sender.hasPermission("bukkit.command.tps")) {
sender.sendMessage(ChatColor.RED + "You do not have permission to use this command.");