diff --git a/resources/config/v12/de/config.yml b/resources/config/v12/de/config.yml index a0a2857..370ac6a 100644 --- a/resources/config/v12/de/config.yml +++ b/resources/config/v12/de/config.yml @@ -458,6 +458,7 @@ useWorldGuard: true useLWC: true useGriefPrevention: true useTowny: true +useBlockLocker: true useGMInventories: true useCitadel: true diff --git a/resources/config/v12/en/config.yml b/resources/config/v12/en/config.yml index ec9eeaa..f9b2500 100644 --- a/resources/config/v12/en/config.yml +++ b/resources/config/v12/en/config.yml @@ -460,6 +460,7 @@ useWorldGuard: true useLWC: true useGriefPrevention: true useTowny: true +useBlockLocker: true useGMInventories: true useCitadel: true diff --git a/resources/config/v12/fr/config.yml b/resources/config/v12/fr/config.yml index e0d6c06..5510f23 100644 --- a/resources/config/v12/fr/config.yml +++ b/resources/config/v12/fr/config.yml @@ -455,6 +455,7 @@ useWorldGuard: true useLWC: true useGriefPrevention: true useTowny: true +useBlockLocker: true useGMInventories: true useCitadel: true diff --git a/resources/config/v12/it/config.yml b/resources/config/v12/it/config.yml index 872dd16..e77e18e 100644 --- a/resources/config/v12/it/config.yml +++ b/resources/config/v12/it/config.yml @@ -447,6 +447,7 @@ useWorldGuard: true useLWC: true useGriefPrevention: true useTowny: true +useBlockLocker: true useGMInventories: true useCitadel: true diff --git a/resources/config/v13/de/config.yml b/resources/config/v13/de/config.yml index c1ac6a0..6b1701e 100644 --- a/resources/config/v13/de/config.yml +++ b/resources/config/v13/de/config.yml @@ -855,6 +855,7 @@ useWorldGuard: true useLWC: true useGriefPrevention: true useTowny: true +useBlockLocker: true useGMInventories: true # Beim Fass öffnen eine virtuelle Kiste nutzen um Rechte bei allen anderen Plugins abzufragen diff --git a/resources/config/v13/en/config.yml b/resources/config/v13/en/config.yml index a0f601b..c99650b 100644 --- a/resources/config/v13/en/config.yml +++ b/resources/config/v13/en/config.yml @@ -849,6 +849,7 @@ useWorldGuard: true useLWC: true useGriefPrevention: true useTowny: true +useBlockLocker: true useGMInventories: true # Use a virtual chest when opening a Barrel to check with all other protection plugins diff --git a/resources/config/v13/es/config.yml b/resources/config/v13/es/config.yml index 22b0479..c2af9d0 100644 --- a/resources/config/v13/es/config.yml +++ b/resources/config/v13/es/config.yml @@ -849,6 +849,7 @@ useWorldGuard: true useLWC: true useGriefPrevention: true useTowny: true +useBlockLocker: true useGMInventories: true # Use a virtual chest when opening a Barrel to check with all other protection plugins diff --git a/resources/config/v13/fr/config.yml b/resources/config/v13/fr/config.yml index 3334c17..e0d9e1c 100644 --- a/resources/config/v13/fr/config.yml +++ b/resources/config/v13/fr/config.yml @@ -855,6 +855,7 @@ useWorldGuard: true useLWC: true useGriefPrevention: true useTowny: true +useBlockLocker: true useGMInventories: true # Use a virtual chest when opening a Barrel to check with all other protection plugins diff --git a/resources/config/v13/it/config.yml b/resources/config/v13/it/config.yml index 933dbf0..9703201 100644 --- a/resources/config/v13/it/config.yml +++ b/resources/config/v13/it/config.yml @@ -849,6 +849,7 @@ useWorldGuard: true useLWC: true useGriefPrevention: true useTowny: true +useBlockLocker: true useGMInventories: true # Use a virtual chest when opening a Barrel to check with all other protection plugins diff --git a/resources/config/v13/zh/config.yml b/resources/config/v13/zh/config.yml index 8c286c8..a7d2c5e 100644 --- a/resources/config/v13/zh/config.yml +++ b/resources/config/v13/zh/config.yml @@ -853,6 +853,7 @@ useWorldGuard: true useLWC: true useGriefPrevention: true useTowny: true +useBlockLocker: true useGMInventories: true # Use a virtual chest when opening a Barrel to check with all other protection plugins diff --git a/src/com/dre/brewery/filedata/BConfig.java b/src/com/dre/brewery/filedata/BConfig.java index d03e28c..00e5e7f 100644 --- a/src/com/dre/brewery/filedata/BConfig.java +++ b/src/com/dre/brewery/filedata/BConfig.java @@ -381,9 +381,11 @@ public class BConfig { if (useBlocklocker) { try { Class.forName("nl.rutgerkok.blocklocker.BlockLockerAPIv2"); + Class.forName("nl.rutgerkok.blocklocker.ProtectableBlocksSettings"); BlocklockerBarrel.registerBarrelAsProtectable(); } catch (ClassNotFoundException e) { useBlocklocker = false; + P.p.log("Unsupported Version of 'BlockLocker', locking Brewery Barrels disabled"); } } diff --git a/src/com/dre/brewery/filedata/ConfigUpdater.java b/src/com/dre/brewery/filedata/ConfigUpdater.java index 148832c..0bd10f9 100644 --- a/src/com/dre/brewery/filedata/ConfigUpdater.java +++ b/src/com/dre/brewery/filedata/ConfigUpdater.java @@ -1946,7 +1946,8 @@ public class ConfigUpdater { addLinesAt(new String[]{"# Andere Plugins (wenn installiert) nach Rechten zum öffnen von Fässern checken"}, 1, false, "# Plugins 'Landlord' und 'Protection Stones' nutzen WorldGuard. 'ClaimChunk' wird nativ unterstützt."); addLinesAt(new String[]{"useGriefPrevention:", "useLWC:", "useWorldGuard:"}, 1, - "useTowny: true"); + "useTowny: true", + "useBlockLocker: true"); addLinesAt(new String[]{"useGMInventories:", "# Plugins 'Landlord' und 'Prote", "# -- Plugin Kompatiblität --"}, 1, "", "# Beim Fass öffnen eine virtuelle Kiste nutzen um Rechte bei allen anderen Plugins abzufragen", @@ -1988,7 +1989,8 @@ public class ConfigUpdater { addLinesAt(new String[]{"# Enable checking of other Plugins (if installed) for"}, 1, false, "# Plugins 'Landlord' and 'Protection Stones' use the WorldGuard Flag. 'ClaimChunk' is natively supported."); addLinesAt(new String[]{"useGriefPrevention:", "useLWC:", "useWorldGuard:"}, 1, - "useTowny: true"); + "useTowny: true", + "useBlockLocker: true"); addLinesAt(new String[]{"useGMInventories:", "# Plugins 'Landlord' and 'Protectio", "# -- Plugin Compatibility --"}, 1, "", "# Use a virtual chest when opening a Barrel to check with all other protection plugins",