Add files via upload

master
AiTechEye 2022-07-13 21:05:53 +02:00 committed by GitHub
parent f14bffb477
commit 9a25624376
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ minetest.register_chatcommand("killme", {
func = function(name, param)
local p = minetest.get_player_by_name(name)
if p then
if p:get_meta():get_int("killme_disabled") == 1
if p:get_meta():get_int("killme_disabled") == 1 then
minetest.chat_send_player(name,"Suiciding is disallowed in this case")
else
p:set_hp(0)