It's a plugin for a Spigot Minecraft server to log the time players spend on the server and returns it to them.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
682 B

package listener
import PlayerService
import org.bukkit.event.EventHandler
import org.bukkit.event.Listener
import org.bukkit.event.player.PlayerJoinEvent
* The listener for the PlayerJoinEvent
* @property playerService the playService to add player to it
class JoinListener(private val playerService: PlayerService) : Listener {
* Registers as handler for the PlayerJoinEvent
* Adds the player to the service
* @param event to get the player that emitted it
fun onPlayerJoin(event: PlayerJoinEvent) {
val player = event.player