Config option for BlockLocker

This commit is contained in:
Sn0wStorm 2020-11-27 17:09:11 +01:00
parent 0b9b364f28
commit 48367acac3
12 changed files with 16 additions and 2 deletions

View File

@ -458,6 +458,7 @@ useWorldGuard: true
useLWC: true
useGriefPrevention: true
useTowny: true
useBlockLocker: true
useGMInventories: true
useCitadel: true

View File

@ -460,6 +460,7 @@ useWorldGuard: true
useLWC: true
useGriefPrevention: true
useTowny: true
useBlockLocker: true
useGMInventories: true
useCitadel: true

View File

@ -455,6 +455,7 @@ useWorldGuard: true
useLWC: true
useGriefPrevention: true
useTowny: true
useBlockLocker: true
useGMInventories: true
useCitadel: true

View File

@ -447,6 +447,7 @@ useWorldGuard: true
useLWC: true
useGriefPrevention: true
useTowny: true
useBlockLocker: true
useGMInventories: true
useCitadel: true

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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");
}
}

View File

@ -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",