mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-10-07 02:57:28 +02:00
new global flags are now read from .yml files
This commit is contained in:
parent
8ad713c183
commit
6a2affc0f9
@ -224,10 +224,12 @@ private void loadConfiguration() {
|
|||||||
globalFlags.canTnt = config.getBoolean("regions.default.tnt", true);
|
globalFlags.canTnt = config.getBoolean("regions.default.tnt", true);
|
||||||
globalFlags.allowCreeper = config.getBoolean("regions.default.creeper", true);
|
globalFlags.allowCreeper = config.getBoolean("regions.default.creeper", true);
|
||||||
globalFlags.allowMobDamage = config.getBoolean("regions.default.mobdamage", true);
|
globalFlags.allowMobDamage = config.getBoolean("regions.default.mobdamage", true);
|
||||||
|
globalFlags.canLeverandbutton = config.getBoolean("regions.default.leverandbutton", true);
|
||||||
|
globalFlags.canPlaceVehicle = config.getBoolean("regions.default.placevehicle", true);
|
||||||
|
globalFlags.allowWaterflow = config.getBoolean("regions.default.waterflow", true);
|
||||||
wp.getGlobalRegionManager().setGlobalFlags(worldName, globalFlags);
|
wp.getGlobalRegionManager().setGlobalFlags(worldName, globalFlags);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
boolean useBlacklistAsWhitelist = config.getBoolean("blacklist.use-as-whitelist", false);
|
boolean useBlacklistAsWhitelist = config.getBoolean("blacklist.use-as-whitelist", false);
|
||||||
|
|
||||||
// Console log configuration
|
// Console log configuration
|
||||||
|
Loading…
Reference in New Issue
Block a user