From 0ef2af04ef8ccd6644f52507fe2cb479d22ba6ba Mon Sep 17 00:00:00 2001 From: Elkien3 Date: Wed, 22 Mar 2023 02:26:55 +0500 Subject: [PATCH] Update init.lua --- init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/init.lua b/init.lua index b95ccf4..0bdb849 100644 --- a/init.lua +++ b/init.lua @@ -240,6 +240,7 @@ minetest.register_chatcommand("rules",{ func = function (name,params) if (interacthandler and interacthandler.player[name]) then return false, "You are not allowed to use this command at this time." end local player = minetest.get_player_by_name(name) + if not player than return false, "You must be ingame to use this command." end local language = rule_language[name] or interact.default_language if params ~= "" and rule_table[params:lower()] then language = params:lower()