Fix grouping of players in unaffiliated factions (Wilderness/None) - shouldn't see each other
This commit is contained in:
parent
25e43bb600
commit
f91fab7bd3
@ -170,8 +170,8 @@ public class DynmapFactionsPlugin extends JavaPlugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void updatePlayerSet(String univid, String factid) {
|
private void updatePlayerSet(String univid, String factid) {
|
||||||
/* If Wilderness or other unassociated factions, skip */
|
/* If Wilderness or other unassociated factions (guid-style ID), skip */
|
||||||
if(factid.equals("0") || factid.startsWith("-")) {
|
if(factid.indexOf('-') >= 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Set<String> plids = new HashSet<String>();
|
Set<String> plids = new HashSet<String>();
|
||||||
@ -551,6 +551,9 @@ public class DynmapFactionsPlugin extends JavaPlugin {
|
|||||||
if(playersets) {
|
if(playersets) {
|
||||||
for (FactionColl fc : FactionColls.get().getColls()) {
|
for (FactionColl fc : FactionColls.get().getColls()) {
|
||||||
for(Faction f : fc.getAll()) {
|
for(Faction f : fc.getAll()) {
|
||||||
|
if ((f == fc.getNone()) || (f == fc.getWarzone()) || (f == fc.getSafezone())) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
updatePlayerSet(fc.getUniverse(), f.getId());
|
updatePlayerSet(fc.getUniverse(), f.getId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user