Factionless players now have nothing extra shown over their heads, instead of "Factionless"

Also added AuthMe to softdepend list to have it load first
This commit is contained in:
Brettflan 2011-08-28 18:24:05 -05:00
parent c512f80866
commit 55c9067e34
2 changed files with 13 additions and 7 deletions

View File

@ -135,15 +135,20 @@ public class SpoutFeatures {
SpoutPlayer sPlayer = SpoutManager.getPlayer(viewer); SpoutPlayer sPlayer = SpoutManager.getPlayer(viewer);
if (Conf.spoutFactionTagsOverNames || Conf.spoutFactionTitlesOverNames) { if (Conf.spoutFactionTagsOverNames || Conf.spoutFactionTitlesOverNames) {
String addTag = ""; if (viewedFaction.isNormal()) {
if (Conf.spoutFactionTagsOverNames) { String addTag = "";
addTag += !viewedFaction.isNormal() ? "Factionless" : viewedFaction.getTag(relation.getColor().toString() + "[") + "]"; if (Conf.spoutFactionTagsOverNames) {
addTag += viewedFaction.getTag(relation.getColor().toString() + "[") + "]";
}
String rolePrefix = viewedRole.getPrefix();
if (Conf.spoutFactionTitlesOverNames && (!viewedTitle.isEmpty() || !rolePrefix.isEmpty())) {
addTag += (addTag.isEmpty() ? "" : " ") + viewedRole.getPrefix() + viewedTitle;
}
spoutApp.setPlayerTitle(sPlayer, viewed, addTag + "\n" + viewed.getDisplayName());
} }
String rolePrefix = viewedRole.getPrefix(); else {
if (Conf.spoutFactionTitlesOverNames && (!viewedTitle.isEmpty() || !rolePrefix.isEmpty())) { spoutApp.resetPlayerTitle(sPlayer, viewed);
addTag += (addTag.isEmpty() ? "" : " ") + viewedRole.getPrefix() + viewedTitle;
} }
spoutApp.setPlayerTitle(sPlayer, viewed, addTag + "\n" + viewed.getDisplayName());
} }
if ( if (

View File

@ -9,6 +9,7 @@ softdepend:
- iChat - iChat
- LocalAreaChat - LocalAreaChat
- nChat - nChat
- AuthMe
- iConomy - iConomy
- Spout - Spout
commands: commands: