Skip to content

Commit

Permalink
fixed bad region extend message
Browse files Browse the repository at this point in the history
  • Loading branch information
alex9849 committed Oct 25, 2022
1 parent c316cd2 commit c521d8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1045,12 +1045,12 @@ public static MessageLocale byCode(String code) {
@Message(name = "GUIRemoveMemberButtonLore", message = {"Click to remove the selected member",
"from your region"})
public static List<String> GUI_REMOVE_MEMBER_BUTTON_LORE;
@Message(name = "GUIResetRegionButtonLore", version = 6,message = {"Click to reset your region",
@Message(name = "GUIResetRegionButtonLore", version = 8, message = {"Click to reset your region",
"&4WARNING: &cThis can not be undone! Your region",
"&cwill be resetted and everything on it will",
"&cbe deleted!",
"",
"&cYou can only reset you region once every %userrestorecooldown%",
"&cYou can only reset you region once every %remaininguserrestorecooldown-countdown-short%",
"&2You and all members keep their rights on the region"})
public static List<String> GUI_RESET_REGION_BUTTON_LORE;
@Message(name = "TakeOverItemLore", message = {"&aYou are a member of this region.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,10 @@ protected HashMap<String, Supplier<String>> getVariableReplacements() {
return TimeUtil.timeInMsToString(this.getCurrentExtendTime(), false, false);
});
variableReplacements.put("%remainingtime-next-extend-countdown-writtenout%", () -> {
return TimeUtil.timeInMsToString(this.getPayedTill() + this.getCurrentExtendTime(), true, false);
return TimeUtil.getCountdown(this.getPayedTill() + this.getCurrentExtendTime(), true, false, false, Messages.REGION_INFO_EXPIRED);
});
variableReplacements.put("%remainingtime-next-extend-countdown-short%", () -> {
return TimeUtil.timeInMsToString(this.getPayedTill() + this.getCurrentExtendTime(), false, false);
return TimeUtil.getCountdown(this.getPayedTill() + this.getCurrentExtendTime(), false, false, false, Messages.REGION_INFO_EXPIRED);
});
variableReplacements.put("%price-current%", () -> {
return Price.formatPrice(this.getCurrentExtendPrice());
Expand Down

0 comments on commit c521d8d

Please sign in to comment.