From c8f45bdbf4f045bcad0a23d7741f8064d70c830d Mon Sep 17 00:00:00 2001 From: Luck Date: Sun, 1 Aug 2021 15:41:59 +0100 Subject: Some basic config options --- spark-bukkit/src/main/java/me/lucko/spark/bukkit/BukkitSparkPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spark-bukkit/src/main/java') 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."); -- cgit