From 22fa5096c94d2ab5634cc61884ef9f667415e893 Mon Sep 17 00:00:00 2001 From: cora Date: Wed, 16 Nov 2022 00:56:05 +0100 Subject: [PATCH] Add debug command status feedback --- mods/CORE/mcl_events/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mods/CORE/mcl_events/init.lua b/mods/CORE/mcl_events/init.lua index 9221f33ece..22a2bcdf6e 100644 --- a/mods/CORE/mcl_events/init.lua +++ b/mods/CORE/mcl_events/init.lua @@ -142,10 +142,12 @@ minetest.register_globalstep(check_events) minetest.register_chatcommand("event_start",{ privs = {debug = true}, + description = "Debug command to start events", func = function(pname,param) local p = minetest.get_player_by_name(pname) local evdef = mcl_events.registered_events[param] - if not evdef then return end + if not evdef then return false,"Event "..param.." doesn't exist.'" end start_event({pos=p:get_pos(),player=pname,factor=1},evdef) + return true,"Started event "..param end, })