From c4c7fb88f1563732412b2d901cb325644a4d98ad Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Thu, 25 Jan 2024 11:01:36 +0100 Subject: [PATCH] fix bans file never found because directory is just wrong --- main.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.lua b/main.lua index 44ae34c..e4c4cba 100644 --- a/main.lua +++ b/main.lua @@ -71,10 +71,11 @@ local bans = {} function onInit() print('BeamBase Starting!') - local bans_file = io.open(pluginPath.."/bans.txt") + local bans_file_path = "Resources/Server/" .. pluginPath .. "/bans.txt" + local bans_file = io.open(bans_file_path) print('Loading Banned Players List..') if not bans_file then - print('FAILED TO LOAD BANS FILE!!!') + print("Failed to load bans.txt from '" .. bans_file_path .. "'!") return end local count = 0