diff options
Diffstat (limited to 'src/main/kotlin/dulkirmod/features/chat/VanquisherTrigger.kt')
-rw-r--r-- | src/main/kotlin/dulkirmod/features/chat/VanquisherTrigger.kt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/kotlin/dulkirmod/features/chat/VanquisherTrigger.kt b/src/main/kotlin/dulkirmod/features/chat/VanquisherTrigger.kt new file mode 100644 index 0000000..c7d4349 --- /dev/null +++ b/src/main/kotlin/dulkirmod/features/chat/VanquisherTrigger.kt @@ -0,0 +1,13 @@ +package dulkirmod.features.chat + +import dulkirmod.DulkirMod +import dulkirmod.config.Config + +object VanquisherTrigger { + fun handle(message: String) { + if (!Config.vanqBroadcast) return + if (message == "A Vanquisher is spawning nearby!") { + DulkirMod.mc.thePlayer.sendChatMessage("/patcher sendcoords") + } + } +}
\ No newline at end of file |