use of cc.hyperium.handlers.handlers.HypixelDetector in project Hyperium by HyperiumClient.
the class CommandDebug method get.
public static String get() {
StringBuilder builder = new StringBuilder();
PurchaseApi api = PurchaseApi.getInstance();
if (api == null)
return "";
builder.append("\n\n");
Multithreading.runAsync(CommandDebug::checkUUID);
if (isPremium) {
builder.append("Premium: True, ").append("UUID is ").append(Minecraft.getMinecraft().thePlayer.getGameProfile().getId());
} else {
builder.append("Premium: False, user doesn't have a UUID");
}
builder.append("\n\n");
HyperiumPurchase self = PurchaseApi.getInstance().getSelf();
builder.append("Purchase callback: ");
if (self != null) {
JsonHolder response = self.getResponse();
if (response != null)
builder.append(printer.toJson(response.getObject()));
}
builder.append("\n\n");
HypixelDetector instance = HypixelDetector.getInstance();
if (instance != null)
builder.append("Hypixel: ").append(instance.isHypixel());
builder.append("\n\n\n\n");
NetworkHandler networkHandler = Hyperium.INSTANCE.getNetworkHandler();
if (networkHandler != null) {
List<String> verboseLogs = networkHandler.getVerboseLogs();
verboseLogs.forEach(verboseLog -> {
builder.append(verboseLog);
builder.append("\n");
});
builder.append(verboseLogs);
builder.append("\n");
}
tryConfig(builder);
builder.append("\n\n");
tryChromaHUD(builder);
builder.append("\n\n");
tryKeybinds(builder);
builder.append("\n\n");
tryLevelhead(builder);
builder.append("\n\n");
builder.append("Levelhead");
builder.append("\n");
return builder.toString();
}
Aggregations