mirror of
https://github.com/BeamMP/BeamBase.git
synced 2025-07-01 23:35:25 +00:00
fix bans file never found because directory is just wrong
This commit is contained in:
parent
b2ae42a6db
commit
c4c7fb88f1
5
main.lua
5
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user