diff --git a/init.lua b/init.lua index 20b8cff..d2de803 100644 --- a/init.lua +++ b/init.lua @@ -166,11 +166,13 @@ minetest.register_chatcommand('mrkr', { -- Add a marker minetest.register_chatcommand('add_mrkr', { - params = ' ', + params = ' ', description = 'Adds a marker.', func = function(param) local s, e = param:find(' ') - if not s or not e then return end + if not s or not e then + return false, 'Invalid syntax! See .help add_mrkr for more info.' + end local pos = param:sub(1, s - 1) local name = param:sub(e + 1)