Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Shadow Assassin Jump Notification #852

Merged
merged 14 commits into from
Apr 5, 2024
Merged
Prev Previous commit
requested changes
  • Loading branch information
CalMWolfs committed Apr 5, 2024
commit 969777576a4ef52f649c0842c4e555fe29c3da1b
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,5 @@ public class DungeonConfig {
"to jump on you.")
@ConfigEditorBoolean
@FeatureToggle
public boolean shadowAssassinJumpNotifier = true;
public boolean shadowAssassinJumpNotifier = false;
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ class DungeonShadowAssassinNotification {
fun onWorldBoarderChange(event: PacketEvent.ReceiveEvent) {
if (!isEnabled()) return
if (DungeonAPI.dungeonFloor?.contains("3") == true && DungeonAPI.inBossRoom) return
if (event.packet !is S44PacketWorldBorder) return

event.packet as AccessorWorldBoarderPacket
val action = event.packet.action
val warningTime = event.packet.warningTime
val packet = event.packet as? AccessorWorldBoarderPacket ?: return
val action = packet.action
val warningTime = packet.warningTime

if (action == S44PacketWorldBorder.Action.INITIALIZE && warningTime == 10000) {
TitleManager.sendTitle("§cShadow Assassin Jumping!", 2.seconds, 3.6, 7.0f)
Expand Down
Loading