prestige bugfix

This commit is contained in:
okx-code
2019-08-03 21:52:19 +01:00
parent 11200862cd
commit 2cfa96cbb5
4 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ plugins {
}
group 'sh.okx'
version '3.5.7-alpha'
version '3.5.7-alpha.1'
repositories {
mavenCentral()
+2
View File
@@ -0,0 +1,2 @@
# This file is generated by the 'io.freefair.lombok' Gradle plugin
config.stopBubbling = true
@@ -32,7 +32,9 @@ public class RankupHelper {
rank.runCommands(player);
applyCooldown(player);
permissions.playerRemoveGroup(null, player, rank.getRank());
if (rank.getRank() != null) {
permissions.playerRemoveGroup(null, player, rank.getRank());
}
permissions.playerAddGroup(null, player, rank.getNext());
}
+1 -1
View File
@@ -4,7 +4,7 @@ first:
# the rank to change it to
to: 'A'
next: 'P1'
# see rankups.yml for more information on requirements, operations, commands and messages
# see rankups.yml for more information on requirements, commands, and messages
requirements:
- 'money 10000'
P1example: