Move this all outside and do ```if (event.isCancelled() { return } ``` instead