Update chatcommands.lua

This commit is contained in:
Gerold55 2019-04-08 14:30:52 -04:00 committed by GitHub
parent 5d64e5c6be
commit 12d0cfe11d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
minetest.register_chatcommand("heal", { minetest.register_chatcommand("heal", {
description = "sets maxumum HP, thirst, breath and hunger vales", description = "sets maximum HP, thirst, breath and hunger values",
privs = {fly = true}, privs = {fly = true},
func = function(name) func = function(name)
local player = minetest.get_player_by_name(name) local player = minetest.get_player_by_name(name)
@ -9,6 +9,6 @@ minetest.register_chatcommand("heal", {
inv = player:get_inventory() inv = player:get_inventory()
player:set_hp(20) player:set_hp(20)
player:set_breath(11) player:set_breath(11)
return true, "you have beed healed" return true, "you have been healed"
end, end,
}) })