Should I contact my host about that?
If you've confirmed that the server indeed cannot write this file, your host should be able to help you out.
You may confirm that bans.txt has correct file permissions by running the following command in your dedicated server console:
lua_run if file.Open("ulib/bans.txt", "r", "DATA") then print("Read OK") else print("Read FAILED") end if file.Open("ulib/bans.txt", "w", "DATA") then print("Write OK") else print("Write FAILED") endYou should get the following output:
Read OK
Write OKIf that's all good, you may also test if bans are actually persisting after map changes:
Ban my steamid:
ulx banid STEAM_0:0:57225082 120 Timmy is meanConfirm that the ban is currently active:
lua_run if ULib.bans["STEAM_0:0:57225082"] then print("Ban is active") else print("Ban is NOT active") endNow change the map:
changelevel gm_constructConfirm that the ban is still active now:
lua_run if ULib.bans["STEAM_0:0:57225082"] then print("Ban is active") else print("Ban is NOT active") end