new global flags are now read from .yml files

This commit is contained in:
Redecouverte 2011-02-28 19:36:46 +01:00
parent 8ad713c183
commit 6a2affc0f9

View File

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