Add a warning when a player opens an inventory when a restart is about to happen.