Add prestige.requirements-not-met
This commit is contained in:
@@ -405,7 +405,7 @@ public class Rankup extends JavaPlugin {
|
|||||||
.send(player);
|
.send(player);
|
||||||
return false;
|
return false;
|
||||||
} else if (!prestige.hasRequirements(player)) { // check if they can afford it
|
} else if (!prestige.hasRequirements(player)) { // check if they can afford it
|
||||||
replaceMoneyRequirements(getMessage(prestige, Message.REQUIREMENTS_NOT_MET)
|
replaceMoneyRequirements(getMessage(prestige, Message.PRESTIGE_REQUIREMENTS_NOT_MET)
|
||||||
.failIf(!message)
|
.failIf(!message)
|
||||||
.replaceRanks(player, prestige, prestiges.next(prestige)), player, prestige)
|
.replaceRanks(player, prestige, prestiges.next(prestige)), player, prestige)
|
||||||
.replaceFromTo(prestige)
|
.replaceFromTo(prestige)
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ public enum Message {
|
|||||||
RANKS_COMPLETE("rankup.list.complete"),
|
RANKS_COMPLETE("rankup.list.complete"),
|
||||||
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"),
|
||||||
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"),
|
||||||
|
|||||||
@@ -38,6 +38,8 @@ rankup:
|
|||||||
plural: "&cYou must wait {SECONDS_LEFT} more seconds to rankup again."
|
plural: "&cYou must wait {SECONDS_LEFT} more seconds to rankup again."
|
||||||
# prestige messages can also be customised
|
# prestige messages can also be customised
|
||||||
prestige:
|
prestige:
|
||||||
|
requirements-not-met: "&cYou need {MONEY} money to 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}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user