fix error when prestige is disabled

This commit is contained in:
okx-code
2018-09-08 20:36:03 +01:00
parent feca6d5c75
commit cd17d169c4
3 changed files with 3 additions and 3 deletions
@@ -39,7 +39,7 @@ public class MessageBuilder {
}
public MessageBuilder replaceFirstPrestige(Rank rank, Prestiges prestiges, String with) {
if(prestiges.getFirst().equals(rank)) {
if(prestiges != null && prestiges.getFirst().equals(rank)) {
replace(Variable.OLD_RANK, with);
replace(Variable.OLD_RANK_NAME, with);
}