From 822bccd3221eab32a4bdd5c1e800ba37c262d44f Mon Sep 17 00:00:00 2001 From: flame-cat Date: Wed, 23 Dec 2020 17:13:20 -0500 Subject: Remove Msgs From Auto Skill Tracker Remove the chat messages when the skill tracker automatically starts/stops. If they're using the feature, they'll have the tracker shown anyway --- src/main/java/me/Danker/DankersSkyblockMod.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/me/Danker/DankersSkyblockMod.java b/src/main/java/me/Danker/DankersSkyblockMod.java index d239e3e..a6cc772 100644 --- a/src/main/java/me/Danker/DankersSkyblockMod.java +++ b/src/main/java/me/Danker/DankersSkyblockMod.java @@ -381,6 +381,9 @@ public class DankersSkyblockMod } else if (leader.matches() && !(leader.group(1).equals(player.getName()))) { player.addChatMessage(new ChatComponentText(DankersSkyblockMod.ERROR_COLOUR + "You are not party leader.")); + } + else if (message.Contains("Couldn't find a player") || message.Contains("cannot invite that player")) { + } else { while (members.find()) { @@ -407,10 +410,8 @@ public class DankersSkyblockMod if (ToggleCommand.autoSkillTrackerToggled && System.currentTimeMillis() / 1000 - timeSinceGained <= 2) { if (skillStopwatch.isStarted() && skillStopwatch.isSuspended()) { skillStopwatch.resume(); - player.addChatMessage(new ChatComponentText(DankersSkyblockMod.MAIN_COLOUR + "Skill tracker started.")); } else if (!skillStopwatch.isStarted()) { skillStopwatch.start(); - player.addChatMessage(new ChatComponentText(DankersSkyblockMod.MAIN_COLOUR + "Skill tracker started.")); } } timeSinceGained = System.currentTimeMillis() / 1000; @@ -3292,7 +3293,6 @@ public class DankersSkyblockMod if (ToggleCommand.autoSkillTrackerToggled) { if (skillStopwatch.isStarted() && !skillStopwatch.isSuspended()) { skillStopwatch.suspend(); - mc.thePlayer.addChatMessage(new ChatComponentText(DankersSkyblockMod.MAIN_COLOUR + "Skill tracker paused.")); } } -- cgit