try to let you manage players when they are offline

This commit is contained in:
Elkien3 2018-04-17 18:11:13 -05:00
parent b5abc78873
commit 9a80c30a41

View File

@ -77,7 +77,7 @@ factions.register_command = function(cmd_name, cmd, ignore_param_count)
table.insert(args.factions, fac)
end
elseif argtype == "player" then
local pl = minetest.get_player_by_name(arg)
local pl = arg--minetest.get_player_by_name(arg)
if not pl and not factions.players[arg] then
send_error(player, "Player is not online.")
return false