diff --git a/src/main/java/de/rayzs/pat/api/storage/config/settings/HandleThroughProxySection.java b/src/main/java/de/rayzs/pat/api/storage/config/settings/HandleThroughProxySection.java index 99ba47a8..7e615ddc 100644 --- a/src/main/java/de/rayzs/pat/api/storage/config/settings/HandleThroughProxySection.java +++ b/src/main/java/de/rayzs/pat/api/storage/config/settings/HandleThroughProxySection.java @@ -6,7 +6,7 @@ import de.rayzs.pat.utils.Reflection; public class HandleThroughProxySection extends ConfigStorage { - public boolean ENABLED, ALLOW_P2B_PACKETS; + public boolean ENABLED, ALLOW_P2B_ACTIONS; public boolean LOAD_FROM_ENV; public String ENV_NAME; @@ -25,7 +25,7 @@ public class HandleThroughProxySection extends ConfigStorage { ENABLED = new ConfigSectionHelper(this, "enabled", false).getOrSet(); TOKEN = new ConfigSectionHelper(this, "token", "insert-token-of-proxy-here").getOrSet(); - ALLOW_P2B_PACKETS = new ConfigSectionHelper(this, "allow-p2b-packets", false).getOrSet(); + ALLOW_P2B_ACTIONS = new ConfigSectionHelper(this, "allow-p2b-actions", false).getOrSet(); LOAD_FROM_ENV = new ConfigSectionHelper(this, "load-from-env.enabled", false).getOrSet(); ENV_NAME = new ConfigSectionHelper(this, "load-from-env.name", "PAT_TOKEN").getOrSet(); diff --git a/src/main/java/de/rayzs/pat/plugin/BukkitLoader.java b/src/main/java/de/rayzs/pat/plugin/BukkitLoader.java index 683fa4d4..2f97f559 100644 --- a/src/main/java/de/rayzs/pat/plugin/BukkitLoader.java +++ b/src/main/java/de/rayzs/pat/plugin/BukkitLoader.java @@ -339,9 +339,9 @@ public class BukkitLoader extends JavaPlugin implements PluginLoader { } private static boolean isP2BDisabled() { - if (!Storage.ConfigSections.Settings.HANDLE_THROUGH_PROXY.ALLOW_P2B_PACKETS) { + if (!Storage.ConfigSections.Settings.HANDLE_THROUGH_PROXY.ALLOW_P2B_ACTIONS) { Logger.warning("P2B actions are currently disabled! You need to enable them manually."); - Logger.warning("For that, go to your 'plugins/ProAntiTab/config.yml' file and enable 'handle-through-proxy -> allow-p2b-packets'."); + Logger.warning("For that, go to your 'plugins/ProAntiTab/config.yml' file and enable 'handle-through-proxy -> allow-p2b-actions'."); return true; } diff --git a/src/main/resources/files/bukkit-config.yml b/src/main/resources/files/bukkit-config.yml index 2a557749..a0a64d0e 100644 --- a/src/main/resources/files/bukkit-config.yml +++ b/src/main/resources/files/bukkit-config.yml @@ -47,7 +47,7 @@ handle-through-proxy: # # It's only for all the p2b actions inside the custom-responses.yml # and is disabled by default as a security measurement. - allow-p2b-packets: false + allow-p2b-actions: false # Advanced option: # Loads the token from an ENV variable instead.