practise server implementation v2

This commit is contained in:
Stachelbeere1248 2024-02-13 22:10:32 +01:00
parent 1cc41bb255
commit 7c9f305b2f
Signed by: Stachelbeere1248
SSH key fingerprint: SHA256:IozEKdw2dB8TZxkpPdMxcWSoWTIMwoLaCcZJ1AJnY2o

View file

@ -53,6 +53,6 @@ public class ZombiesUtils {
return hotkeys; return hotkeys;
} }
public static boolean isHypixel() { public static boolean isHypixel() {
return Minecraft.getMinecraft().getCurrentServerData().serverIP.matches(".*(hypixel\\.net)(:25565)?"); return Minecraft.getMinecraft().getCurrentServerData().serverIP.matches("(.+\\.)?(hypixel\\.net)(:25565)?");
} }
} }