Fix command stack trace on unitialized arcade games.

This commit is contained in:
md_5 2016-02-17 18:40:24 +11:00
parent 3fad9c639a
commit b5f4055269

View File

@ -211,7 +211,7 @@ public class EventModule extends MiniPlugin
@EventHandler(priority = EventPriority.LOWEST)
public void commandHandler(PlayerCommandPreprocessEvent event)
{
if (!Manager.GetGame().InProgress())
if (Manager.GetGame() == null || !Manager.GetGame().InProgress())
return;
if (!event.getMessage().toLowerCase().startsWith("/e "))