diff --git a/mods/sethome/init.lua b/mods/sethome/init.lua index b1cb9907..19de9581 100644 --- a/mods/sethome/init.lua +++ b/mods/sethome/init.lua @@ -53,7 +53,7 @@ end sethome.get = function(name) local player = minetest.get_player_by_name(name) if not player then - return nil + return false, S("This command can only be executed in-game!") end local player_meta = player:get_meta() local pos = minetest.string_to_pos(player_meta:get_string("sethome:home")) @@ -91,7 +91,7 @@ minetest.register_chatcommand("home", { func = function(name) local player = minetest.get_player_by_name(name) if not player then - return false, S("This command can be executed in-game only!") + return false, S("This command can only be executed in-game!") end if sethome.go(name) then return true, S("Teleported to home!")