Prevent meowing when using commands
This commit is contained in:
parent
56a46ae567
commit
35401336d2
@ -426,7 +426,8 @@ function pings.meow()
|
|||||||
sound_settings(sounds["entity.cat.ambient"]):play()
|
sound_settings(sounds["entity.cat.ambient"]):play()
|
||||||
end
|
end
|
||||||
events.CHAT_SEND_MESSAGE:register(function(msg)
|
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,
|
return msg end,
|
||||||
"chat_meow")
|
"chat_meow")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user