fix error when prestige is disabled
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group 'sh.okx'
|
group 'sh.okx'
|
||||||
version '3.0.1'
|
version '3.0.2'
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ public class MessageBuilder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public MessageBuilder replaceFirstPrestige(Rank rank, Prestiges prestiges, String with) {
|
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, with);
|
||||||
replace(Variable.OLD_RANK_NAME, with);
|
replace(Variable.OLD_RANK_NAME, with);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
name: Rankup
|
name: Rankup
|
||||||
version: 3.0.1
|
version: 3.0.2
|
||||||
main: sh.okx.rankup.Rankup
|
main: sh.okx.rankup.Rankup
|
||||||
author: Okx
|
author: Okx
|
||||||
depend: [Vault]
|
depend: [Vault]
|
||||||
|
|||||||
Reference in New Issue
Block a user