Closed Hitman4 closed 1 year ago
The error is caused by a nil value being passed down from NS2ConsoleCommands_Server.lua
. Looks like a client that has no player assigned to it trying to join the spectator team, which shouldn't normally happen and indicates something else is going wrong, possibly when the client connected.
While I could add a check to ensure the player is not nil, the bug really is in the console command(s) not first checking the client they're acting on has a player entity and/or the client not being assigned a player entity. Even with the check, the command would still end up doing nothing anyway, so this is a fairly harmless error.
i saw server had 1 error
[Server] Script Error #1: lua/shine/core/shared/hook.lua:1071: attempt to index local 'Player' (a nil value) Call stack:
1: Spectate lua/shine/core/shared/hook.lua:1071