Update readme.md

This commit is contained in:
bluefireoly
2020-09-28 16:41:06 +02:00
parent 045a2cf630
commit e2c43bfc8d

View File

@@ -11,17 +11,13 @@ Latest version: <br>
**The repository:** **The repository:**
```kotlin ```kotlin
repositories { jcenter()
jcenter()
}
``` ```
**The dependency:** **The dependency:**
```kotlin ```kotlin
dependencies { implementation("net.axay", "KSpigot", "VERSION_HERE")
implementation("net.axay", "KSpigot", "VERSION_HERE")
}
``` ```
</p> </p>
@@ -33,17 +29,13 @@ dependencies {
**The repository:** **The repository:**
```groovy ```groovy
repositories { jcenter()
jcenter()
}
``` ```
**The dependency:** **The dependency:**
```groovy ```groovy
dependencies { implementation 'net.axay:KSpigot:VERSION_HERE'
implementation 'net.axay:KSpigot:VERSION_HERE'
}
``` ```
</p> </p>
@@ -293,9 +285,9 @@ kSpigot.listen<PlayerMoveEvent> {
it.player.kick("Do not move!") it.player.kick("Do not move!")
} }
``` ```
NOTE: This method automatically registers the listener. NOTE:
- This method automatically registers the listener.
The `listen<Event> { }` method returns the listener instance. - The `listen<Event>` method returns the listener instance.
The following extension methods can be used on any listener: The following extension methods can be used on any listener:
```kotlin ```kotlin