Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbker committed Oct 21, 2023
2 parents bd98c69 + caa2674 commit f99d873
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,22 @@ MongoDB.collection("my-collection")
```
And use the standard features of the Mongo Java Driver with your `MongoCollection`.

### Events
We have a neat way to handle code for events, which register by themselves so you don't have to!

You can make use of it like so:
```kt
event<PlayerJoinEvent> {
player.sendMessage("Welcome to the server!")
}
```
If you need to change the priorty of an event, you can pass it to the function call like:
```kt
event<PlayerJoinEvent>(EventPriority.HIGHEST) {
player.sendMessage("Welcome to the server!")
}
```

### Ternary Operator
There is a basic ternary operator implementation added which can be used like so:
```kotlin
Expand Down

0 comments on commit f99d873

Please sign in to comment.