@@ -111,7 +111,7 @@ public class AntiVanish extends Module {
|
||||
final String url = "https://api.mojang.com/user/profiles/" + uuidstr.replace("-", "") + "/names";
|
||||
try {
|
||||
JsonArray res = Http.get(url).sendJson(JsonArray.class);
|
||||
return res.get(0).getAsJsonObject().get("name").getAsString();
|
||||
return res.get(res.size() - 1).getAsJsonObject().get("name").getAsString();
|
||||
} catch (Exception e) {
|
||||
return uuidstr;
|
||||
}
|
||||
|
||||
@@ -14,10 +14,12 @@ public class NoRenderModifier {
|
||||
public static Setting<Boolean> disableToasts;
|
||||
|
||||
public static boolean noCommandSuggestions() {
|
||||
if (noCommandSuggestions == null || Modules.get() == null || Modules.get().get(NoRender.class) == null) return false;
|
||||
return Modules.get().get(NoRender.class).isActive() && noCommandSuggestions.get();
|
||||
}
|
||||
|
||||
public static boolean disableToasts() {
|
||||
if (disableToasts == null || Modules.get() == null || Modules.get().get(NoRender.class) == null) return false;
|
||||
return Modules.get().get(NoRender.class).isActive() && disableToasts.get();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user