Skip to content

Commit

Permalink
Reload whitelist when player joins game:
Browse files Browse the repository at this point in the history
Allows whitelist to be edited while server is running.
  • Loading branch information
AntumDeluge committed Aug 17, 2017
1 parent 38e97c9 commit 5acbf5f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions init.lua
Expand Up @@ -29,9 +29,8 @@ local function save_whitelist()
file:close()
end
load_whitelist()
minetest.register_on_prejoinplayer(function(name, ip)
load_whitelist()
if name == "singleplayer" or name == admin or whitelist[name] then
return
end
Expand Down

0 comments on commit 5acbf5f

Please sign in to comment.