fix error when prestige is disabled
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
name: Rankup
|
||||
version: 3.0.1
|
||||
version: 3.0.2
|
||||
main: sh.okx.rankup.Rankup
|
||||
author: Okx
|
||||
depend: [Vault]
|
||||
|
||||
Reference in New Issue
Block a user