11 lines
303 B
Kotlin
11 lines
303 B
Kotlin
|
package com.terraocean.plugin.listeners
|
||
|
|
||
|
import com.terraocean.plugin.Messages
|
||
|
import com.terraocean.plugin.bridge.socketActive
|
||
|
import org.bukkit.event.player.PlayerJoinEvent
|
||
|
|
||
|
fun onPlayerJoin(e: PlayerJoinEvent) {
|
||
|
if (!socketActive) {
|
||
|
e.player.kickPlayer(Messages.botConnectionLost)
|
||
|
}
|
||
|
}
|