From a827a5f8eede8cb2f0bd75aba48b6803609ab9b1 Mon Sep 17 00:00:00 2001 From: "Michael Q." Date: Tue, 21 Jan 2025 11:11:11 -0600 Subject: [PATCH] Remove unused config value --- .../magicmq/pyspigot/bukkit/config/BukkitPluginConfig.java | 4 ---- .../magicmq/pyspigot/bungee/config/BungeePluginConfig.java | 4 ---- .../main/java/dev/magicmq/pyspigot/config/PluginConfig.java | 2 -- core/src/main/resources/config.yml | 4 +--- 4 files changed, 1 insertion(+), 13 deletions(-) diff --git a/bukkit/src/main/java/dev/magicmq/pyspigot/bukkit/config/BukkitPluginConfig.java b/bukkit/src/main/java/dev/magicmq/pyspigot/bukkit/config/BukkitPluginConfig.java index 08d94b3..f57c6f2 100644 --- a/bukkit/src/main/java/dev/magicmq/pyspigot/bukkit/config/BukkitPluginConfig.java +++ b/bukkit/src/main/java/dev/magicmq/pyspigot/bukkit/config/BukkitPluginConfig.java @@ -110,8 +110,4 @@ public boolean shouldPrintStackTraces() { public boolean shouldShowUpdateMessages() { return config.getBoolean("debug-options.show-update-messages"); } - - public boolean shouldUpdatePySpigotLib() { - return config.getBoolean("debug-options.auto-pyspigot-lib-update-enabled"); - } } \ No newline at end of file diff --git a/bungee/src/main/java/dev/magicmq/pyspigot/bungee/config/BungeePluginConfig.java b/bungee/src/main/java/dev/magicmq/pyspigot/bungee/config/BungeePluginConfig.java index e48122a..b940a69 100644 --- a/bungee/src/main/java/dev/magicmq/pyspigot/bungee/config/BungeePluginConfig.java +++ b/bungee/src/main/java/dev/magicmq/pyspigot/bungee/config/BungeePluginConfig.java @@ -119,8 +119,4 @@ public boolean shouldPrintStackTraces() { public boolean shouldShowUpdateMessages() { return config.getBoolean("debug-options.show-update-messages"); } - - public boolean shouldUpdatePySpigotLib() { - return config.getBoolean("debug-options.auto-pyspigot-lib-update-enabled"); - } } diff --git a/core/src/main/java/dev/magicmq/pyspigot/config/PluginConfig.java b/core/src/main/java/dev/magicmq/pyspigot/config/PluginConfig.java index 8a47e7b..1e2bb35 100644 --- a/core/src/main/java/dev/magicmq/pyspigot/config/PluginConfig.java +++ b/core/src/main/java/dev/magicmq/pyspigot/config/PluginConfig.java @@ -56,6 +56,4 @@ public interface PluginConfig { boolean shouldPrintStackTraces(); boolean shouldShowUpdateMessages(); - - boolean shouldUpdatePySpigotLib(); } diff --git a/core/src/main/resources/config.yml b/core/src/main/resources/config.yml index 3b83ee5..0bd3751 100644 --- a/core/src/main/resources/config.yml +++ b/core/src/main/resources/config.yml @@ -31,6 +31,4 @@ debug-options: # If true, will print stack traces for all script-related exceptions to the server console print-stack-traces: false # If true, the plugin will show messages in console and on join (to players with the permission pyspigot.admin) when a newer version of PySpigot is available to download on spigotmc.org. - show-update-messages: true - # If false, the pyspigot.py file will *not* be automatically replaced with the most recent version (from the pyspigot JAR) on server start if a change is detected. It is recommended to keep this enabled in the event a plugin update comes with an updated pyspigot.py file. - auto-pyspigot-lib-update-enabled: true \ No newline at end of file + show-update-messages: true \ No newline at end of file