1
0

in '/god' added sounds

This commit is contained in:
BlackImpostor 2023-10-03 18:48:17 +03:00 committed by GitHub
parent ef6e7a2ff9
commit 2e072e1cdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,9 +85,11 @@ if enable_damage then
if not ag["immortal"] then if not ag["immortal"] then
ag["immortal"] = 1 ag["immortal"] = 1
core.chat_send_player(name, "God mode enabled") core.chat_send_player(name, "God mode enabled")
minetest.sound_play("god_enabled", name)
else else
ag["immortal"] = nil ag["immortal"] = nil
core.chat_send_player(name, "God mode diabled") core.chat_send_player(name, "God mode diabled")
minetest.sound_play("god_disabled", name)
end end
player:set_armor_groups(ag) player:set_armor_groups(ag)
end end
@ -171,4 +173,4 @@ minetest.register_on_chat_message(function(name, message)
minetest.chat_send_all("<"..new_name.."> "..message) minetest.chat_send_all("<"..new_name.."> "..message)
return true return true
end end
end) end)