From 961f2e38d98bbf33fe40da0ec4e9c4b72362dd2a Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Wed, 3 Jan 2018 14:29:56 +0000 Subject: [PATCH] Clean user limit --- mods/ctf_userlimit/init.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mods/ctf_userlimit/init.lua b/mods/ctf_userlimit/init.lua index 7c61922..c3b62c0 100644 --- a/mods/ctf_userlimit/init.lua +++ b/mods/ctf_userlimit/init.lua @@ -3,8 +3,5 @@ minetest.register_can_bypass_userlimit(function(name, ip) local actual_max_users = tonumber(minetest.settings:get("max_users")) + tonumber(minetest.settings:get("max_extra_users") or "10") local req_score = tonumber(minetest.settings:get("userlimit_bypass_required_score") or "10000") - local can_connect = pstat and pstat.score > req_score and #minetest.get_connected_players() < actual_max_users - if can_connect then - return true - end + return pstat and pstat.score > req_score and #minetest.get_connected_players() < actual_max_users end)