mirror of
https://github.com/plexusorg/Plex.git
synced 2026-06-04 21:46:55 +00:00
Code cleanup
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user