mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-23 12:06:15 +01:00
Merge pull request #275 from MinelinkNetwork/falling-block-piston-fix
Allow falling block check during piston extend to be configurable
This commit is contained in:
commit
5245177d9d
@ -801,6 +801,7 @@ public class PlotSquared {
|
||||
options.put("confirmation.delete", Settings.CONFIRM_DELETE);
|
||||
options.put("confirmation.unlink", Settings.CONFIRM_UNLINK);
|
||||
options.put("protection.tnt-listener.enabled", Settings.TNT_LISTENER);
|
||||
options.put("protection.piston.falling-blocks", Settings.PISTON_FALLING_BLOCK_CHECK);
|
||||
options.put("clusters.enabled", Settings.ENABLE_CLUSTERS);
|
||||
options.put("clear.fastmode", Settings.ENABLE_CLUSTERS);
|
||||
options.put("plotme-alias", Settings.USE_PLOTME_ALIAS);
|
||||
@ -846,6 +847,7 @@ public class PlotSquared {
|
||||
Settings.CHUNK_PROCESSOR_MAX_ENTITIES= config.getInt("chunk-processor.max-entities");
|
||||
|
||||
Settings.TNT_LISTENER = config.getBoolean("protection.tnt-listener.enabled");
|
||||
Settings.PISTON_FALLING_BLOCK_CHECK = config.getBoolean("protection.piston.falling-blocks");
|
||||
Settings.PERMISSION_CACHING = config.getBoolean("cache.permissions");
|
||||
Settings.CONFIRM_CLEAR = config.getBoolean("confirmation.clear");
|
||||
Settings.CONFIRM_DELETE = config.getBoolean("confirmation.delete");
|
||||
|
@ -55,6 +55,10 @@ public class Settings {
|
||||
* TNT listener
|
||||
*/
|
||||
public static boolean TNT_LISTENER = false;
|
||||
/**
|
||||
* Check for falling blocks when pistons extend?
|
||||
*/
|
||||
public static boolean PISTON_FALLING_BLOCK_CHECK = true;
|
||||
/**
|
||||
* Max auto claiming size
|
||||
*/
|
||||
|
@ -672,6 +672,9 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (!Settings.PISTON_FALLING_BLOCK_CHECK) {
|
||||
return;
|
||||
}
|
||||
org.bukkit.Location lastLoc;
|
||||
if (blocks.size() > 0) {
|
||||
lastLoc = blocks.get(blocks.size() - 1).getLocation().add(relative);
|
||||
|
Loading…
Reference in New Issue
Block a user