Commit Graph

11 Commits

Author SHA1 Message Date
Zax71
40ebd2b67f
Add getUUID() and getUsername() to MojangUtils (#2024)
* Add MojangUtils#getUUID() and MojangUtils#getUsername()

* Remove invalid UUID test as Java's UUID will not allow an invalid UUID

* Add `@Blocking` and some JavaDoc comments

* Override `MojangUtils#fromUuid(String)` with `MojangUtils#fromUuid(UUID)` and add a test

* Switch to IOException over custom ones
2024-03-18 03:25:35 +00:00
Zak Shearman
067227421f
Fix/mojang utils long name (#1792) 2023-03-18 01:02:18 +01:00
GreatWyrm
62b9e80d46
Fix exception on invalid username or UUID (#532) 2021-11-15 19:23:20 +01:00
TheMode
519c1cb937 Only url should be used as cache key
Signed-off-by: TheMode <themode@outlook.fr>
2021-11-08 08:49:25 +01:00
TheMode
e5ad5609cf Simplify MojangUtils
Signed-off-by: TheMode <themode@outlook.fr>
2021-11-07 14:46:26 +01:00
TheMode
d7cbcfe239 Add Blocking annotation
Signed-off-by: TheMode <themode@outlook.fr>
2021-11-07 11:59:10 +01:00
TheMode
e635e29a16 Replace guava cache to caffeine 2021-06-20 22:32:06 +02:00
TheMode
dfad9f2947 Remove minecraft repo 2021-05-15 07:57:28 +02:00
themode
469a4a32f7 Cache values from the mojang api 2021-03-05 23:03:18 +01:00
Tyan
855c8af455 Added ExceptionManager for custom exception handling 2021-01-20 11:43:45 +01:00
themode
6b39cb1e32 Execute the async login event before sending the login success packet 2021-01-06 19:02:35 +01:00