From 2e072e1cdd77a8a21820639e55108cfea8abca7b Mon Sep 17 00:00:00 2001 From: BlackImpostor <106878493+SkyBuilder1717@users.noreply.github.com> Date: Tue, 3 Oct 2023 18:48:17 +0300 Subject: [PATCH] in '/god' added sounds --- commands.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands.lua b/commands.lua index c3aba85..09c680a 100644 --- a/commands.lua +++ b/commands.lua @@ -85,9 +85,11 @@ if enable_damage then if not ag["immortal"] then ag["immortal"] = 1 core.chat_send_player(name, "God mode enabled") + minetest.sound_play("god_enabled", name) else ag["immortal"] = nil core.chat_send_player(name, "God mode diabled") + minetest.sound_play("god_disabled", name) end player:set_armor_groups(ag) end @@ -171,4 +173,4 @@ minetest.register_on_chat_message(function(name, message) minetest.chat_send_all("<"..new_name.."> "..message) return true end -end) \ No newline at end of file +end)