Update init.lua
This commit is contained in:
parent
0ef2af04ef
commit
204e041481
2
init.lua
2
init.lua
@ -240,7 +240,7 @@ minetest.register_chatcommand("rules",{
|
|||||||
func = function (name,params)
|
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
|
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)
|
local player = minetest.get_player_by_name(name)
|
||||||
if not player than return false, "You must be ingame to use this command." end
|
if not player then return false, "You must be ingame to use this command." end
|
||||||
local language = rule_language[name] or interact.default_language
|
local language = rule_language[name] or interact.default_language
|
||||||
if params ~= "" and rule_table[params:lower()] then
|
if params ~= "" and rule_table[params:lower()] then
|
||||||
language = params:lower()
|
language = params:lower()
|
||||||
|
Loading…
Reference in New Issue
Block a user