Prevent meowing when using commands

This commit is contained in:
NullBite 2023-06-28 00:56:02 -04:00
parent 56a46ae567
commit 35401336d2
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A

View File

@ -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")