diff options
author | HacktheTime <l4bg0jb7@duck.com> | 2023-09-22 21:47:32 +0200 |
---|---|---|
committer | HacktheTime <l4bg0jb7@duck.com> | 2023-09-22 21:47:32 +0200 |
commit | 9d673ac2a30da174b17978b78a1af49a915df677 (patch) | |
tree | 3b4e7dccfd07ea5e09efd17af557c499a153c77e /src/main/java/de/hype/bbsentials/communication | |
parent | 851724c65a6553b53be0582c4411dd173829df69 (diff) | |
download | BBsentials-9d673ac2a30da174b17978b78a1af49a915df677.tar.gz BBsentials-9d673ac2a30da174b17978b78a1af49a915df677.tar.bz2 BBsentials-9d673ac2a30da174b17978b78a1af49a915df677.zip |
added the System hiding already known full splashes.
bug fixes
Diffstat (limited to 'src/main/java/de/hype/bbsentials/communication')
-rw-r--r-- | src/main/java/de/hype/bbsentials/communication/BBsentialConnection.java | 18 |
1 files changed, 4 insertions, 14 deletions
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); } } |