Fix command stack trace on unitialized arcade games.
This commit is contained in:
parent
3fad9c639a
commit
b5f4055269
@ -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 "))
|
||||
|
Loading…
Reference in New Issue
Block a user