mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-28 00:55:29 +01:00
Boosters now properly shows that they're expired.
Please add " booster-expired: '&cExpired!' " to your messages.yml
This commit is contained in:
parent
71b8183299
commit
06b3aee9bf
@ -181,7 +181,9 @@ public class PlayerStats extends EditableInventory {
|
||||
|
||||
holders.register("author", boost.hasAuthor() ? boost.getAuthor() : "Server");
|
||||
holders.register("value", (int) (boost.getExtra() * 100));
|
||||
holders.register("left", new DelayFormat(2).format(boost.getLeft()));
|
||||
holders.register("left", boost.isTimedOut() ?
|
||||
MMOCore.plugin.configManager.getSimpleMessage("booster-expired").message()
|
||||
: new DelayFormat(2).format(boost.getLeft()));
|
||||
|
||||
return holders;
|
||||
}
|
||||
@ -199,7 +201,9 @@ public class PlayerStats extends EditableInventory {
|
||||
holders.register("author", boost.hasAuthor() ? boost.getAuthor() : "Server");
|
||||
holders.register("profession", boost.getProfession().getName());
|
||||
holders.register("value", (int) (boost.getExtra() * 100));
|
||||
holders.register("left", new DelayFormat(2).format(boost.getLeft()));
|
||||
holders.register("left", boost.isTimedOut() ?
|
||||
MMOCore.plugin.configManager.getSimpleMessage("booster-expired").message()
|
||||
: new DelayFormat(2).format(boost.getLeft()));
|
||||
|
||||
return holders;
|
||||
}
|
||||
@ -274,7 +278,6 @@ public class PlayerStats extends EditableInventory {
|
||||
|
||||
@Override
|
||||
public Placeholders getPlaceholders(PluginInventory inv, int n) {
|
||||
|
||||
PlayerData data = inv.getPlayerData();
|
||||
Placeholders holders = new Placeholders();
|
||||
|
||||
|
@ -25,6 +25,7 @@ booster-skill:
|
||||
- '&e'
|
||||
- '&eA &6{multiplier}x&e &6{profession} &eEXP multiplier is now active!'
|
||||
- '&e'
|
||||
booster-expired: '&cExpired!'
|
||||
|
||||
# Fishing Profession
|
||||
caught-fish: '&cYou caught a fish!'
|
||||
|
Loading…
Reference in New Issue
Block a user