aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/dulkirmod/features/chat/VanquisherTrigger.kt
diff options
context:
space:
mode:
authoringlettronald <inglettronald@gmail.com>2023-01-28 15:30:58 -0600
committeringlettronald <inglettronald@gmail.com>2023-01-28 15:30:58 -0600
commit7b6fef2966838dffcdecb5870204d363811f4b4f (patch)
treede6f37e760c313a6187a2a06361ce36d5a08052d /src/main/kotlin/dulkirmod/features/chat/VanquisherTrigger.kt
parentd13f43266a82c81962af8471f471a7824a0bcf7b (diff)
downloadDulkirMod-7b6fef2966838dffcdecb5870204d363811f4b4f.tar.gz
DulkirMod-7b6fef2966838dffcdecb5870204d363811f4b4f.tar.bz2
DulkirMod-7b6fef2966838dffcdecb5870204d363811f4b4f.zip
More tooltip rendering logic and adding vanquisher trigger
Diffstat (limited to 'src/main/kotlin/dulkirmod/features/chat/VanquisherTrigger.kt')
-rw-r--r--src/main/kotlin/dulkirmod/features/chat/VanquisherTrigger.kt13
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