Code cleanup

This commit is contained in:
2022-01-30 15:03:47 -06:00
parent d4761d4386
commit 4a05d90c17
25 changed files with 191 additions and 97 deletions

View File

@ -35,7 +35,8 @@ public class MojangUtils
.insert(13, "-")
.insert(18, "-")
.insert(23, "-").toString());
} catch (IOException e)
}
catch (IOException e)
{
e.printStackTrace();
return null;
@ -63,12 +64,14 @@ public class MojangUtils
Instant instant = Instant.ofEpochMilli(dateTime);
LocalDateTime time = LocalDateTime.ofInstant(instant, ZoneId.of("America/Los_Angeles"));
names.put(name, time);
} else
}
else
{
names.put(name, null);
}
});
} catch (IOException e)
}
catch (IOException e)
{
e.printStackTrace();
}

View File

@ -14,7 +14,8 @@ public abstract class AbstractMenu implements Listener
Plex.get().getServer().getPluginManager().registerEvents(this, Plex.get());
}
public String getName() {
public String getName()
{
return name;
}
}