mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-24 01:58:18 +01:00
Added sign protection check disable.
This commit is contained in:
parent
9484bb9941
commit
e957f92496
@ -121,6 +121,7 @@ public class WorldConfiguration {
|
|||||||
public int maxRegionCountPerPlayer;
|
public int maxRegionCountPerPlayer;
|
||||||
public boolean antiWolfDumbness;
|
public boolean antiWolfDumbness;
|
||||||
public boolean signChestProtection;
|
public boolean signChestProtection;
|
||||||
|
public boolean disableSignChestProtectionCheck;
|
||||||
public boolean removeInfiniteStacks;
|
public boolean removeInfiniteStacks;
|
||||||
public boolean disableCreatureCropTrampling;
|
public boolean disableCreatureCropTrampling;
|
||||||
public boolean disablePlayerCropTrampling;
|
public boolean disablePlayerCropTrampling;
|
||||||
@ -328,6 +329,7 @@ private void loadConfiguration() {
|
|||||||
disableDeathMessages = getBoolean("player-damage.disable-death-messages", false);
|
disableDeathMessages = getBoolean("player-damage.disable-death-messages", false);
|
||||||
|
|
||||||
signChestProtection = getBoolean("chest-protection.enable", false);
|
signChestProtection = getBoolean("chest-protection.enable", false);
|
||||||
|
disableSignChestProtectionCheck = getBoolean("chest-protection.disable-off-check", false);
|
||||||
|
|
||||||
disableCreatureCropTrampling = getBoolean("crops.disable-creature-trampling", false);
|
disableCreatureCropTrampling = getBoolean("crops.disable-creature-trampling", false);
|
||||||
disablePlayerCropTrampling = getBoolean("crops.disable-player-trampling", false);
|
disablePlayerCropTrampling = getBoolean("crops.disable-player-trampling", false);
|
||||||
|
@ -611,7 +611,7 @@ public void onSignChange(SignChangeEvent event) {
|
|||||||
player.sendMessage(ChatColor.YELLOW
|
player.sendMessage(ChatColor.YELLOW
|
||||||
+ "A chest or double chest above is now protected.");
|
+ "A chest or double chest above is now protected.");
|
||||||
}
|
}
|
||||||
} else {
|
} else if (!wcfg.disableSignChestProtectionCheck) {
|
||||||
if (event.getLine(0).equalsIgnoreCase("[Lock]")) {
|
if (event.getLine(0).equalsIgnoreCase("[Lock]")) {
|
||||||
player.sendMessage(ChatColor.RED
|
player.sendMessage(ChatColor.RED
|
||||||
+ "WorldGuard's sign chest protection is disabled.");
|
+ "WorldGuard's sign chest protection is disabled.");
|
||||||
|
Loading…
Reference in New Issue
Block a user