Add faction tag to team prefix
This commit is contained in:
@@ -4,6 +4,7 @@ import com.massivecraft.factions.Conf;
|
||||
import com.massivecraft.factions.Faction;
|
||||
import com.massivecraft.factions.Factions;
|
||||
import com.massivecraft.factions.event.FactionRenameEvent;
|
||||
import com.massivecraft.factions.scoreboards.FScoreboard;
|
||||
import com.massivecraft.factions.struct.Permission;
|
||||
import com.massivecraft.factions.util.MiscUtil;
|
||||
import org.bukkit.Bukkit;
|
||||
@@ -73,6 +74,7 @@ public class CmdTag extends FCommand {
|
||||
faction.msg("<i>The faction %s<i> changed their name to %s.", fme.getColorTo(faction) + oldtag, myFaction.getTag(faction));
|
||||
}
|
||||
|
||||
FScoreboard.applyUpdates(myFaction);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
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;
|
||||
@@ -87,18 +86,7 @@ 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);
|
||||
}
|
||||
}
|
||||
|
||||
FScoreboard.applyUpdates(myFaction);
|
||||
FScoreboard.applyUpdates(them);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user