Release 1.4.7: bugfix for exception triggered by blank cape URL

This commit is contained in:
Brettflan 2011-08-23 21:49:49 -05:00
parent a87d4b1f71
commit c512f80866
2 changed files with 10 additions and 2 deletions

View File

@ -169,8 +169,16 @@ public class SpoutFeatures {
else if (relation.isAlly()) { else if (relation.isAlly()) {
cape = Conf.capeAlly; cape = Conf.capeAlly;
} }
if (cape.isEmpty()) {
spoutApp.resetPlayerCloak(sPlayer, viewed);
} else {
spoutApp.setPlayerCloak(sPlayer, viewed, cape); spoutApp.setPlayerCloak(sPlayer, viewed, cape);
} }
} }
else if (Conf.spoutFactionAdminCapes || Conf.spoutFactionModeratorCapes) {
spoutApp.resetPlayerCloak(sPlayer, viewed);
}
}
} }

View File

@ -1,5 +1,5 @@
name: Factions name: Factions
version: 1.4.6 version: 1.4.7
main: com.massivecraft.factions.Factions main: com.massivecraft.factions.Factions
softdepend: softdepend:
- Permissions - Permissions