"server" variable does not return correctly on dedicated servers
I'd thought I fixed this a while ago, but after testing Terminal on my dedicated server a few weeks ago it seems this bug hasn't decided to be squashed just yet.
The issue in particular is that the server
global variable in Lua will always return nil
on a dedicated server, effectively breaking any mod that attempts to point to the dedicated server struct. Terminal relies on this variable for permission checking, the vote system and any admin commands, so currently everything falls apart upon adding the files to a dedicated server, which I'm sure occurs in many other scripts as well. I'll test this a little further and see if I can fix it myself, but any pointers as to what the problem may be would be very much appreciated.