Skip to content

Commit

Permalink
Switched to heirarchy object report
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 committed Dec 18, 2018
1 parent 3dd35da commit 863f6cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Expand Up @@ -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;
Expand Down
Expand Up @@ -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;
Expand All @@ -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) {
Expand Down

0 comments on commit 863f6cc

Please sign in to comment.