diff --git a/src/main/java/org/dynmap/factions/DynmapFactionsPlugin.java b/src/main/java/org/dynmap/factions/DynmapFactionsPlugin.java index 7656c17..cb919c3 100644 --- a/src/main/java/org/dynmap/factions/DynmapFactionsPlugin.java +++ b/src/main/java/org/dynmap/factions/DynmapFactionsPlugin.java @@ -170,8 +170,8 @@ public class DynmapFactionsPlugin extends JavaPlugin { } private void updatePlayerSet(String univid, String factid) { - /* If Wilderness or other unassociated factions, skip */ - if(factid.equals("0") || factid.startsWith("-")) { + /* If Wilderness or other unassociated factions (guid-style ID), skip */ + if(factid.indexOf('-') >= 0) { return; } Set plids = new HashSet(); @@ -551,6 +551,9 @@ public class DynmapFactionsPlugin extends JavaPlugin { if(playersets) { for (FactionColl fc : FactionColls.get().getColls()) { for(Faction f : fc.getAll()) { + if ((f == fc.getNone()) || (f == fc.getWarzone()) || (f == fc.getSafezone())) { + continue; + } updatePlayerSet(fc.getUniverse(), f.getId()); } }