Return S(message) when running /home in irc/discord

(Supports translations)
This commit is contained in:
Zemtzov7 2022-11-20 00:52:47 +05:00 committed by GitHub
parent eb554a26bd
commit dc845b9f3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,7 +91,7 @@ minetest.register_chatcommand("home", {
func = function(name) func = function(name)
local player = minetest.get_player_by_name(name) local player = minetest.get_player_by_name(name)
if not player then if not player then
return false, "This command can be executed in-game only" return false, S("This command can be executed in-game only!")
end end
if sethome.go(name) then if sethome.go(name) then
return true, S("Teleported to home!") return true, S("Teleported to home!")