practise server implementation

This commit is contained in:
Stachelbeere1248 2024-02-13 22:09:21 +01:00
parent 20d9cf6ac7
commit 1cc41bb255
Signed by: Stachelbeere1248
SSH key fingerprint: SHA256:IozEKdw2dB8TZxkpPdMxcWSoWTIMwoLaCcZJ1AJnY2o
2 changed files with 4 additions and 2 deletions

View file

@ -109,7 +109,9 @@ public class ZombiesUtilsConfig {
} }
public static String getDefaultCategory() { public static String getDefaultCategory() {
return defaultCategory.getString(); String string = defaultCategory.getString();
if (!ZombiesUtils.isHypixel()) string += "-practise";
return string;
} }
public static String getLanguage() { public static String getLanguage() {

View file

@ -76,7 +76,7 @@ public class Timer {
} }
try { try {
if (!ZombiesUtils.isHypixel()) record(passedRound, roundTime, gameTime); record(passedRound, roundTime, gameTime);
} catch (Exception e) { } catch (Exception e) {
ZombiesUtils.getInstance().getLogger().error(ExceptionUtils.getStackTrace(e)); ZombiesUtils.getInstance().getLogger().error(ExceptionUtils.getStackTrace(e));
Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("Error saving splits")); Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("Error saving splits"));