Refactor scoreboard issue. Resolves issue #80.
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
package com.massivecraft.factions.cmd;
|
||||
|
||||
import com.massivecraft.factions.Conf;
|
||||
import com.massivecraft.factions.FPlayer;
|
||||
import com.massivecraft.factions.Faction;
|
||||
import com.massivecraft.factions.event.FactionRelationEvent;
|
||||
import com.massivecraft.factions.scoreboards.FScoreboard;
|
||||
import com.massivecraft.factions.struct.Permission;
|
||||
import com.massivecraft.factions.struct.Relation;
|
||||
import org.bukkit.Bukkit;
|
||||
@@ -85,5 +87,18 @@ public abstract class FRelationCommand extends FCommand {
|
||||
myFaction.msg("<i>This will have no effect while your faction is peaceful.");
|
||||
}
|
||||
|
||||
for (FPlayer ourMember : myFaction.getFPlayers()) {
|
||||
if (!ourMember.isOnline()) {
|
||||
continue;
|
||||
}
|
||||
for (FPlayer theirMember : them.getFPlayers()) {
|
||||
if (!theirMember.isOnline()) {
|
||||
continue;
|
||||
}
|
||||
FScoreboard.get(ourMember).updateColor(theirMember);
|
||||
FScoreboard.get(theirMember).updateColor(ourMember);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user