Merge pull request #1 from luk3yx/patch-1
Replace minetest.chat_send_player() with return (waaa I don't wanna but luk3yx is gonna annoy me about it)
This commit is contained in:
commit
a08f093b42
@ -3,9 +3,9 @@ local oldKill = minetest.registered_chatcommands["killme"].func
|
||||
minetest.override_chatcommand("killme", {
|
||||
func = function(name, param)
|
||||
if knockout.knocked_out[name] == nil then
|
||||
oldKill(name, param)
|
||||
return oldKill(name, param)
|
||||
else
|
||||
minetest.chat_send_player(name, "You can't kill yourself!")
|
||||
return false, "You can't kill yourself!"
|
||||
end
|
||||
end
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user