Can someone tell me why this doesn't work?
Game Core
Talkaction
File logging
Game Core
Lua:
function Game.logInformation(fileDir, text)
print("Logging -> "..fileDir..": "..text)
local file = io.open (fileDir, "a+")
if not file then print("Could not load file "..fileDir..". Failed to log.") return false end
file:seek("end")
file:write(text)
return true
end
Lua:
function onSay(player, words, param)
if not player:getGroup():getAccess() then
return...