From 35401336d265309a9113fd4aa801ec9bae823f7b Mon Sep 17 00:00:00 2001 From: NullBite Date: Wed, 28 Jun 2023 00:56:02 -0400 Subject: [PATCH] Prevent meowing when using commands --- script.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script.lua b/script.lua index 8d1a72f..fceb15e 100644 --- a/script.lua +++ b/script.lua @@ -426,7 +426,8 @@ function pings.meow() sound_settings(sounds["entity.cat.ambient"]):play() end events.CHAT_SEND_MESSAGE:register(function(msg) - if sharedconfig.load("is_cat") then pings.meow() end + if sharedconfig.load("is_cat") and string.match(msg, '^/') == nil then + pings.meow() end return msg end, "chat_meow")