diff options
author | ronald <inglettronald@gmail.com> | 2023-07-29 12:30:06 -0500 |
---|---|---|
committer | ronald <inglettronald@gmail.com> | 2023-07-29 12:30:06 -0500 |
commit | 130377f112ac4c64c138e15b2541d95381964c6a (patch) | |
tree | 9549c677b45a94db40fe43d721b28a3c513efca2 /src/main/kotlin/com/dulkirfabric/util | |
parent | 7705c7606298a5c67c64f1e088c4ef93ee042e95 (diff) | |
download | DulkirMod-Fabric-130377f112ac4c64c138e15b2541d95381964c6a.tar.gz DulkirMod-Fabric-130377f112ac4c64c138e15b2541d95381964c6a.tar.bz2 DulkirMod-Fabric-130377f112ac4c64c138e15b2541d95381964c6a.zip |
Slayer Boss Timer and clean Blaze boss impl
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/util')
-rw-r--r-- | src/main/kotlin/com/dulkirfabric/util/Utils.kt | 9 |
1 files changed, 6 insertions, 3 deletions
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 |