Remove unneeded @Slf4j annotation in User and MojangUtils
This commit is contained in:
parent
d519527986
commit
a30823099d
@ -38,7 +38,6 @@ import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@Slf4j
|
||||
@Entity
|
||||
@AllArgsConstructor
|
||||
public final class User {
|
||||
|
@ -12,14 +12,12 @@ import net.frozenorb.apiv3.APIv3;
|
||||
import java.io.IOException;
|
||||
import java.util.UUID;
|
||||
|
||||
@Slf4j
|
||||
@UtilityClass
|
||||
public class MojangUtils {
|
||||
|
||||
private static final HttpClient httpsClient = APIv3.getVertxInstance().createHttpClient(new HttpClientOptions().setSsl(true).setTrustAll(true));
|
||||
|
||||
public static void getName(UUID id, SingleResultCallback<String> callback) {
|
||||
log.error("Getting name for " + id + "...");
|
||||
httpsClient.get(443, "sessionserver.mojang.com", "/session/minecraft/profile/" + id.toString().replace("-", ""), (response) -> {
|
||||
response.bodyHandler((body) -> {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user