Update readme.md
This commit is contained in:
22
readme.md
22
readme.md
@@ -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
|
||||||
|
Reference in New Issue
Block a user