diff options
author | My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> | 2020-12-21 19:24:36 -0500 |
---|---|---|
committer | My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> | 2020-12-21 19:24:36 -0500 |
commit | de0681b5ddd1fb5aeddf1c1dc2ea207ff8087d82 (patch) | |
tree | 64ec95bc0e81f65ea98312079f691aa7f330177b /src/main/java/me/Danker/utils | |
parent | 4c8a46fff853b98477bfbd6535c25991a2cae783 (diff) | |
download | SkyblockMod-de0681b5ddd1fb5aeddf1c1dc2ea207ff8087d82.tar.gz SkyblockMod-de0681b5ddd1fb5aeddf1c1dc2ea207ff8087d82.tar.bz2 SkyblockMod-de0681b5ddd1fb5aeddf1c1dc2ea207ff8087d82.zip |
Auto-Import API key
Diffstat (limited to 'src/main/java/me/Danker/utils')
-rw-r--r-- | src/main/java/me/Danker/utils/Utils.java | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/main/java/me/Danker/utils/Utils.java b/src/main/java/me/Danker/utils/Utils.java index 3f54b7d..abda6a3 100644 --- a/src/main/java/me/Danker/utils/Utils.java +++ b/src/main/java/me/Danker/utils/Utils.java @@ -27,9 +27,7 @@ import net.minecraft.util.*; import org.lwjgl.opengl.GL11; import java.awt.*; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; +import java.util.*; import java.util.List; import java.util.regex.Matcher; @@ -122,7 +120,15 @@ public class Utils { drawHeight += mc.fontRendererObj.FONT_HEIGHT; } } - + + public static boolean isOnHypixel () { + Minecraft mc = Minecraft.getMinecraft(); + if (mc != null && mc.theWorld != null && !mc.isSingleplayer()) { + return mc.getCurrentServerData().serverIP.toLowerCase().contains("hypixel"); + } + return false; + } + public static void checkForSkyblock() { Minecraft mc = Minecraft.getMinecraft(); if (mc != null && mc.theWorld != null && !mc.isSingleplayer()) { |