Remove unneeded @Slf4j annotation in User and MojangUtils

This commit is contained in:
Colin McDonald 2016-07-09 17:22:39 -04:00
parent d519527986
commit a30823099d
2 changed files with 0 additions and 3 deletions

View File

@ -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 {

View File

@ -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 {