From 9d673ac2a30da174b17978b78a1af49a915df677 Mon Sep 17 00:00:00 2001 From: HacktheTime Date: Fri, 22 Sep 2023 21:47:32 +0200 Subject: added the System hiding already known full splashes. bug fixes --- .../bbsentials/communication/BBsentialConnection.java | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'src/main/java/de/hype/bbsentials/communication') diff --git a/src/main/java/de/hype/bbsentials/communication/BBsentialConnection.java b/src/main/java/de/hype/bbsentials/communication/BBsentialConnection.java index d458724..53e534c 100644 --- a/src/main/java/de/hype/bbsentials/communication/BBsentialConnection.java +++ b/src/main/java/de/hype/bbsentials/communication/BBsentialConnection.java @@ -2,6 +2,7 @@ package de.hype.bbsentials.communication; import de.hype.bbsentials.chat.Chat; import de.hype.bbsentials.client.BBsentials; +import de.hype.bbsentials.client.SplashManager; import de.hype.bbsentials.client.SplashStatusUpdateListener; import de.hype.bbsentials.constants.enviromentShared.*; import de.hype.bbsentials.packets.AbstractPacket; @@ -352,27 +353,16 @@ public class BBsentialConnection { executionService.submit(splashStatusUpdateListener); } else { + SplashManager.addSplash(packet); if (packet.lessWaste) { waitTime = Math.min(((getPotTime() * 1000) / 80), 25 * 1000); } else { waitTime = 0; } - String where; - if (packet.hubType.equals(Islands.DUNGEON_HUB)) { - where = "§5DUNGEON HUB§6"; - } - else { - where = "Hub"; - } BBsentials.executionService.schedule(() -> { - splashHighlightItem("HUB #" + packet.hub, 20); - String timeLoss = ""; - if (packet.lessWaste) { - timeLoss = "§c(" + waitTime + ")"; - } - Chat.sendPrivateMessageToSelf("§6" + packet.splasherUsername + " is Splashing in " + where + " #" + packet.hub + " at " + packet.location + ":" + packet.extraMessage + " | " + timeLoss); - }, waitTime, TimeUnit.MILLISECONDS); + SplashManager.display(packet.splashId); + }, waitTime, TimeUnit.MILLISECONDS); } } -- cgit