Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public static Component getEventStatusAlert(MapParty party, MapPartyStatusType t
}

public static String formatTime(MapParty party) {
if (party.getLength() == null) return ChatColor.YELLOW + "No timelimit";
if (party.getLength() == null) return ChatColor.YELLOW + "No time limit";
String duration = TextTranslations.translateLegacy(duration(party.getLength()));

if (party.getStartTime() == null) return ChatColor.GOLD + duration;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,19 +322,18 @@ public void setTimelimit(CommandAudience viewer, Duration timeLimit, boolean for
party.setLength(timeLimit);
MapPartyMessages.broadcastHostAction(
viewer.getStyledName(),
text("set the event timelimit to"),
text("set the event time limit to"),
duration(party.getLength(), NamedTextColor.GREEN));
if (party.isRunning()) {
MapPartyMessages.broadcastHostAction(
viewer.getStyledName(),
BroadcastUtils.sendAdminChatMessage(
text()
.append(text("The event will now end in "))
.append(
duration(timeLimit.minus(Duration.between(party.getStartTime(), Instant.now())))
.color(NamedTextColor.GREEN))
.color(NamedTextColor.GRAY)
.build());
;
.build(),
CommunityPermissions.PARTY);
}
}

Expand Down