From 44dd4d00dcad9f3bca4e03b453d4385c62de440e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20M=C3=BCller?= <34514239+appgurueu@users.noreply.github.com> Date: Tue, 20 Dec 2022 18:39:10 +0100 Subject: [PATCH] Consistent error messages --- mods/sethome/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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!")