Renamed "allow-p2b-packets" -> "allow-p2b-actions"

This commit is contained in:
rayzsyt committed 2026-02-15 00:44:11 +01:00
1 parent d06b723adc
commit f447cf69d3
3 files changed
+5 -5

No files matched your search

@@ -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<Boolean>(this, "enabled", false).getOrSet();
TOKEN = new ConfigSectionHelper<String>(this, "token", "insert-token-of-proxy-here").getOrSet();
ALLOW_P2B_PACKETS = new ConfigSectionHelper<Boolean>(this, "allow-p2b-packets", false).getOrSet();
ALLOW_P2B_ACTIONS = new ConfigSectionHelper<Boolean>(this, "allow-p2b-actions", false).getOrSet();
LOAD_FROM_ENV = new ConfigSectionHelper<Boolean>(this, "load-from-env.enabled", false).getOrSet();
ENV_NAME = new ConfigSectionHelper<String>(this, "load-from-env.name", "PAT_TOKEN").getOrSet();
@@ -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;
}
+1 -1
View File
@@ -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.