Add prestige.no-prestige

This commit is contained in:
okx-code
2018-11-08 20:24:14 +00:00
parent d12cdf3b9c
commit fe0d0aef8f
5 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ plugins {
} }
group 'sh.okx' group 'sh.okx'
version '3.2.1-beta.3' version '3.2.1-beta.4'
repositories { repositories {
mavenCentral() mavenCentral()
+1 -1
View File
@@ -398,7 +398,7 @@ public class Rankup extends JavaPlugin {
.send(player); .send(player);
return false; return false;
} else if (prestige.isLast()) { // check if they are at the highest rank } else if (prestige.isLast()) { // check if they are at the highest rank
getMessage(prestige, Message.NO_RANKUP) getMessage(prestige, Message.PRESTIGE_NO_PRESTIGE)
.failIf(!message) .failIf(!message)
.replaceRanks(player, prestige) .replaceRanks(player, prestige)
.replaceFromTo(prestige) .replaceFromTo(prestige)
@@ -16,6 +16,7 @@ public enum Message {
RANKS_CURRENT("rankup.list.current"), RANKS_CURRENT("rankup.list.current"),
RANKS_INCOMPLETE("rankup.list.incomplete"), RANKS_INCOMPLETE("rankup.list.incomplete"),
PRESTIGE_REQUIREMENTS_NOT_MET("prestige.requirements-not-met"), PRESTIGE_REQUIREMENTS_NOT_MET("prestige.requirements-not-met"),
PRESTIGE_NO_PRESTIGE("prestige.no-prestige"),
PRESTIGES_HEADER("prestige.list.header"), PRESTIGES_HEADER("prestige.list.header"),
PRESTIGES_FOOTER("prestige.list.footer"), PRESTIGES_FOOTER("prestige.list.footer"),
PRESTIGES_COMPLETE("prestige.list.complete"), PRESTIGES_COMPLETE("prestige.list.complete"),
+1
View File
@@ -39,6 +39,7 @@ rankup:
# prestige messages can also be customised # prestige messages can also be customised
prestige: prestige:
requirements-not-met: "&cYou need {MONEY} money to prestige." requirements-not-met: "&cYou need {MONEY} money to prestige."
no-prestige: "&eYou are at the highest prestige."
success-public: "&a{PLAYER} &ehas prestiged to: &d{RANK}" success-public: "&a{PLAYER} &ehas prestiged to: &d{RANK}"
success-private: "&aYou have prestiged to: &d{RANK}" success-private: "&aYou have prestiged to: &d{RANK}"
+1 -1
View File
@@ -1,5 +1,5 @@
name: Rankup name: Rankup
version: 3.2.1-beta.3 version: 3.2.1-beta.4
main: sh.okx.rankup.Rankup main: sh.okx.rankup.Rankup
author: Okx author: Okx
depend: [Vault] depend: [Vault]