mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-03 22:11:32 +01:00
Fix Exception error reported by IDE
I am not sure why Eclipse is saying this is an error.
This commit is contained in:
parent
6d59e79e78
commit
fd44e03b7b
@ -57,7 +57,7 @@ public class IslandInfo {
|
|||||||
try {
|
try {
|
||||||
String dateTimeFormat = plugin.getLocalesManager().get("commands.admin.info.last-login-date-time-format");
|
String dateTimeFormat = plugin.getLocalesManager().get("commands.admin.info.last-login-date-time-format");
|
||||||
formattedDate = new SimpleDateFormat(dateTimeFormat).format(new Date(lastPlayed));
|
formattedDate = new SimpleDateFormat(dateTimeFormat).format(new Date(lastPlayed));
|
||||||
} catch (NullPointerException | IllegalArgumentException ignored) {
|
} catch (Exception ignored) {
|
||||||
formattedDate = new Date(lastPlayed).toString();
|
formattedDate = new Date(lastPlayed).toString();
|
||||||
}
|
}
|
||||||
user.sendMessage("commands.admin.info.last-login","[date]", formattedDate);
|
user.sendMessage("commands.admin.info.last-login","[date]", formattedDate);
|
||||||
|
Loading…
Reference in New Issue
Block a user