fix: DateTimeException when running `/userdata`

feat/data-edit-commands
William 11 months ago
parent 6bcb3e7908
commit a03d540938
No known key found for this signature in database

@ -56,7 +56,7 @@ public class DataSnapshotList {
snapshot.getTimestamp().format(DateTimeFormatter
.ofLocalizedDateTime(FormatStyle.MEDIUM, FormatStyle.SHORT)),
snapshot.getTimestamp().format(DateTimeFormatter
.ofLocalizedDateTime(FormatStyle.LONG, FormatStyle.LONG)),
.ofLocalizedDateTime(FormatStyle.LONG, FormatStyle.MEDIUM)),
snapshot.getSaveCause().getLocale(plugin),
String.format("%.2fKiB", snapshot.getFileSize(plugin) / 1024f))
.orElse("• " + snapshot.getId())).toList(),

@ -63,7 +63,7 @@ public class DataSnapshotOverview {
.ifPresent(user::sendMessage);
locales.getLocale("data_manager_timestamp",
snapshot.getTimestamp().format(DateTimeFormatter
.ofLocalizedDateTime(FormatStyle.MEDIUM, FormatStyle.LONG)),
.ofLocalizedDateTime(FormatStyle.MEDIUM, FormatStyle.SHORT)),
snapshot.getTimestamp().toString())
.ifPresent(user::sendMessage);
if (snapshot.isPinned()) {

Loading…
Cancel
Save