mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-23 02:55:23 +01:00
Switched to heirarchy object report
This commit is contained in:
parent
3dd35dabec
commit
863f6cc13b
@ -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;
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user