ServerMod / SCPDiscord

A ServerMod plugin which adds remote interaction to an SCP:SL server through Discord.
https://karlofduty.com
GNU General Public License v3.0
21 stars 30 forks source link

[BUG] Error on disconnect event #212

Closed OstojaOfficial closed 5 years ago

OstojaOfficial commented 5 years ago

Describe the bug: An event handler error occurred when player disconnects from the server. This may be due to new ServerMod 3.6.0.

To Reproduce:

  1. Join the server.
  2. Disconnect from the server.
  3. Error in the server console.

Logs:

[12:12:06] [ERROR] [Event] Event Handler: SCPDiscord.EventListeners.RoundEventListener Failed to handle event:Smod2.Events.DisconnectEvent
[12:12:06] [ERROR] [Event] System.NullReferenceException: Object reference not set to an instance of an object
  at SCPDiscord.EventListeners.RoundEventListener.OnDisconnect (Smod2.Events.DisconnectEvent ev) [0x00011] in <f18bc6386af041e89c4ff46ac63747ef>:0
  at Smod2.Events.DisconnectEvent.ExecuteHandler (Smod2.EventHandlers.IEventHandler handler) [0x00000] in <b4c2bd8e14e6423c90bfbaeda975fe4c>:0
  at Smod2.Events.EventManager.HandleEvent[T] (Smod2.Events.Event ev) [0x00016] in <b4c2bd8e14e6423c90bfbaeda975fe4c>:0
[12:12:06] [ERROR] [Event] Event Handler: SCPDiscord.EventListeners.RoundEventListener Failed to handle event:Smod2.Events.LateDisconnectEvent
[12:12:06] [ERROR] [Event] System.NullReferenceException: Object reference not set to an instance of an object
  at SCPDiscord.EventListeners.RoundEventListener.OnLateDisconnect (Smod2.Events.LateDisconnectEvent ev) [0x00011] in <f18bc6386af041e89c4ff46ac63747ef>:0
  at Smod2.Events.LateDisconnectEvent.ExecuteHandler (Smod2.EventHandlers.IEventHandler handler) [0x00000] in <b4c2bd8e14e6423c90bfbaeda975fe4c>:0
  at Smod2.Events.EventManager.HandleEvent[T] (Smod2.Events.Event ev) [0x00016] in <b4c2bd8e14e6423c90bfbaeda975fe4c>:0

Setup:

KarlOfDuty commented 5 years ago

SCPDiscord isn't updated yet, still waiting on the main game update for that.