Need spaces - `if (event.isCancelled()) {`