Switched to heirarchy object report

This commit is contained in:
Matthew Miller 2018-12-18 18:13:06 +10:00
parent 3dd35dabec
commit 863f6cc13b
2 changed files with 3 additions and 5 deletions

View File

@ -64,8 +64,6 @@ public abstract class ConfigurationManager {
"# - Lines starting with # are comments and so they are ignored.\r\n" +
"#\r\n";
private boolean hasCommandBookGodMode = false;
public boolean useRegionsCreatureSpawnEvent;
public boolean activityHaltToggle = false;
public boolean useGodPermission;

View File

@ -22,7 +22,7 @@
import com.sk89q.worldedit.WorldEdit;
import com.sk89q.worldedit.extension.platform.Capability;
import com.sk89q.worldedit.util.report.DataReport;
import com.sk89q.worldedit.util.report.ShallowObjectReport;
import com.sk89q.worldedit.util.report.HierarchyObjectReport;
import com.sk89q.worldedit.world.World;
import com.sk89q.worldguard.WorldGuard;
import com.sk89q.worldguard.blacklist.Blacklist;
@ -39,13 +39,13 @@ public ConfigReport() {
List<? extends World> worlds = WorldEdit.getInstance().getPlatformManager().queryCapability(Capability.GAME_HOOKS).getWorlds();
append("Configuration", new ShallowObjectReport("Configuration", WorldGuard.getInstance().getPlatform().getGlobalStateManager()));
append("Configuration", new HierarchyObjectReport("Configuration", WorldGuard.getInstance().getPlatform().getGlobalStateManager()));
for (World world : worlds) {
WorldConfiguration config = WorldGuard.getInstance().getPlatform().getGlobalStateManager().get(world);
DataReport report = new DataReport("World: " + world.getName());
report.append("Configuration", new ShallowObjectReport("Configuration", config));
report.append("Configuration", new HierarchyObjectReport("Configuration", config));
Blacklist blacklist = config.getBlacklist();
if (blacklist != null) {