misc. changes (check description)
rename SECONDS to SECONDS_LEFT, and add SECONDS. add %rankup_rank_money_left_<rank>% placeholder add permission requirement
This commit is contained in:
@@ -58,9 +58,12 @@ public class MessageBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
public MessageBuilder replaceFromTo(Prestige prestige) {
|
||||
replace(Variable.FROM, prestige.getFrom());
|
||||
replace(Variable.TO, prestige.getTo());
|
||||
public MessageBuilder replaceFromTo(Rank rank) {
|
||||
if(rank instanceof Prestige) {
|
||||
Prestige prestige = (Prestige) rank;
|
||||
replace(Variable.FROM, prestige.getFrom());
|
||||
replace(Variable.TO, prestige.getTo());
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user