package Ġcom . r pk it . ess entials . bukkit . listener Ċ Ċ import Ġcom . r pk it . ess entials . bukkit . RP KE ss entials Bu kkit Ċ import Ġcom . r pk it . location history . bukkit . location history . RP K Location History Provider Ċ import Ġcom . r pk it . players . bukkit . profile . RP KM inecraft Profile Provider Ċ import Ġorg . bukkit . event . EventHandler Ċ import Ġorg . bukkit . event . Listener Ċ import Ġorg . bukkit . event . player . Player Teleport Event ĊĊ Ċ class ĠPlayer Teleport Listener ( private Ġval Ġplugin : ĠRP KE ss entials Bu kkit ): ĠListener Ġ{ ĊĊĠĠĠ Ġ@ EventHandler ĊĠĠĠ Ġfun Ġon Player Teleport ( event : ĠPlayer Teleport Event ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġm inecraft Profile Provider Ġ= Ġplugin . core . service Manager . get ServiceProvider ( RP KM inecraft Profile Provider :: class ) ĊĠĠĠĠĠĠĠ Ġval Ġlocation History Provider Ġ= Ġplugin . core . service Manager . get ServiceProvider ( RP K Location History Provider :: class ) ĊĠĠĠĠĠĠĠ Ġval Ġm inecraft Profile Ġ= Ġm inecraft Profile Provider . getM inecraft Profile ( event . player ) ĊĠĠĠĠĠĠĠ Ġif Ġ( minecraft Profile Ġ!= Ġnull ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġlocation History Provider . set Previous Location ( minecraft Profile , Ġevent . from ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }