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,7 +169,15 @@ public class SpoutFeatures {
else if (relation.isAlly()) {
cape = Conf.capeAlly;
}
spoutApp.setPlayerCloak(sPlayer, viewed, cape);
if (cape.isEmpty()) {
spoutApp.resetPlayerCloak(sPlayer, viewed);
} else {
spoutApp.setPlayerCloak(sPlayer, viewed, cape);
}
}
else if (Conf.spoutFactionAdminCapes || Conf.spoutFactionModeratorCapes) {
spoutApp.resetPlayerCloak(sPlayer, viewed);
}
}

View File

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