Permalink
Browse files

Switched to heirarchy object report

  • Loading branch information...
me4502 committed Dec 18, 2018
1 parent 3dd35da commit 863f6cc13b182dd37b41f54a4f6b55dd6729442c
@@ -64,8 +64,6 @@
"# - 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;
@@ -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) {

0 comments on commit 863f6cc

Please sign in to comment.