From 529ad8bf4aaff45a8e667d97b76792f0a6a1e21c Mon Sep 17 00:00:00 2001 From: shamoanjac Date: Sat, 20 Aug 2016 09:34:09 +0200 Subject: [PATCH] Fixed /f invite --- chatcommands.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chatcommands.lua b/chatcommands.lua index e1ff654..d561805 100644 --- a/chatcommands.lua +++ b/chatcommands.lua @@ -63,7 +63,7 @@ factions.register_command = function(cmd_name, cmd) end elseif argtype == "player" then local pl = minetest.get_player_by_name(arg) - if not pl or not factions.player[arg] then + if not pl or not factions.players[arg] then send_error(player, "Player is not online.") return false else