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
+1 -1
View File
@@ -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 -1
View File
@@ -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]