Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbker authored Jan 24, 2024
1 parent a33b10a commit 9036744
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,20 @@ event<MyCustomEvent> {
}
```

You can also declare that it should be asyncronous by passing a `true` value to the TwilightEvent constructor:
```kt
class MyCustomEvent : TwilightEvent(true) {

}

class MyCustomEvent(async: Boolean) : TwilightEvent(async) {

}
```

```
### Additional Events
Twilight provides additional events which are not found in Spigot or Paper. These are:
Expand Down

0 comments on commit 9036744

Please sign in to comment.