From 130377f112ac4c64c138e15b2541d95381964c6a Mon Sep 17 00:00:00 2001 From: ronald Date: Sat, 29 Jul 2023 12:30:06 -0500 Subject: Slayer Boss Timer and clean Blaze boss impl --- src/main/kotlin/com/dulkirfabric/util/Utils.kt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/main/kotlin/com/dulkirfabric/util') diff --git a/src/main/kotlin/com/dulkirfabric/util/Utils.kt b/src/main/kotlin/com/dulkirfabric/util/Utils.kt index 1f781d3..c2d65c3 100644 --- a/src/main/kotlin/com/dulkirfabric/util/Utils.kt +++ b/src/main/kotlin/com/dulkirfabric/util/Utils.kt @@ -35,8 +35,11 @@ object Utils { } @EventHandler - fun detectSlayerKill(event: ChatEvents.AllowChat) { - if (event.message.string.trim() != "SLAYER QUEST COMPLETE!") return - SlayerBossEvents.Kill(ScoreBoardUtils.slayerType?: return ScoreBoardUtils.err()).post() + fun detectSlayerEvents(event: ChatEvents.AllowChat) { + if (event.message.string.trim() == "SLAYER QUEST COMPLETE!") { + SlayerBossEvents.Kill(ScoreBoardUtils.slayerType ?: return ScoreBoardUtils.err()).post() + } else if (event.message.string.trim() == "SLAYER QUEST FAILED!") { + SlayerBossEvents.Fail(ScoreBoardUtils.slayerType ?: return ScoreBoardUtils.err()).post() + } } } \ No newline at end of file -- cgit