Make RegionPrintoutBuilder use the FlagRegistry to print flags

This commit is contained in:
ZephireNZ 2015-02-16 21:16:25 +13:00 committed by wizjany
parent cde9a403f7
commit bbb79526b2

View File

@ -21,10 +21,12 @@
import com.sk89q.squirrelid.cache.ProfileCache;
import com.sk89q.worldedit.BlockVector;
import com.sk89q.worldguard.bukkit.WorldGuardPlugin;
import com.sk89q.worldguard.domains.DefaultDomain;
import com.sk89q.worldguard.protection.flags.DefaultFlag;
import com.sk89q.worldguard.protection.flags.Flag;
import com.sk89q.worldguard.protection.flags.RegionGroupFlag;
import com.sk89q.worldguard.protection.flags.registry.FlagRegistry;
import com.sk89q.worldguard.protection.regions.ProtectedRegion;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
@ -105,7 +107,7 @@ public void appendFlags() {
public void appendFlagsList(boolean useColors) {
boolean hasFlags = false;
for (Flag<?> flag : DefaultFlag.getFlags()) {
for (Flag<?> flag : WorldGuardPlugin.inst().getFlagRegistry()) {
Object val = region.getFlag(flag), group = null;
// No value