Fix translating the deny message

This commit is contained in:
Jordan Irwin 2021-08-12 17:05:10 -07:00
parent 4b73219b9c
commit f95d07ed42

View File

@ -14,7 +14,8 @@ local S = core.get_translator(core.get_current_modname())
-- Enabled by default
local enabled = core.settings:get_bool("whitelist.enable", true)
local deny_message = S(core.settings:get("whitelist.message")) or S("Server access is restricted to whitelisted players only.")
local deny_message = core.settings:get("whitelist.message") or "Server access is restricted to whitelisted players only."
deny_message = S(deny_message)
local function load_whitelist()
local file, err = io.open(world_path .. "/whitelist.txt", "r")