package Ġdev . em ort al . toolbox . commands Ċ Ċ import Ġdev . em ort al . toolbox . utils . Permission Utils . has L uck Permission Ċ import Ġdev . em ort al . toolbox . utils . get Enum Safe Ċ import Ġnet . ky ori . ad venture . text . Component Ċ import Ġnet . ky ori . ad venture . text . format . Named TextColor Ċ import Ġnet . min est om . server . command . builder . arguments . Argument Type Ċ import Ġnet . min est om . server . entity . Game Mode Ċ import Ġnet . min est om . server . entity . Player Ċ import Ġworld . ce pi . k st om . command . arguments . Argument Player Ċ import Ġworld . ce pi . k st om . command . arguments . suggest Ċ import Ġworld . ce pi . k st om . command . kom mand . K ommand Ċ Ċ object ĠTele port Command Ġ: ĠK ommand ({ ĊĊĠĠĠ Ġval Ġplayer Argument Ġ= ĠArgument Player (" player ") ĊĠĠĠ Ġval Ġto Player Argument Ġ= ĠArgument Player (" player 2 ") ĊĊĠĠĠ Ġsyntax ( to Player Argument ) Ġ{ ĊĠĠĠĠĠĠĠ Ġif Ġ( sender Ġ! is ĠPlayer ) Ġreturn @ syntax ĊĊĠĠĠĠĠĠĠ Ġval Ġto Player Ġ= Ġ! to Player Argument ĊĊĠĠĠĠĠĠĠ Ġif Ġ(! sender . has L uck Permission (" toolbox . tele port ")) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġsender . sendMessage ( Component . text (" No Ġpermission ", ĠNamed TextColor . RED )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn @ syntax ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġif Ġ( player . instance !! Ġ!= Ġto Player . instance ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġplayer . set Instance ( to Player . instance !! , Ġto Player . position ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġplayer . tele port ( to Player . position ) ĊĊĠĠĠĠĠĠĠ Ġsender . sendMessage ( Component . text (" Wo osh !", ĠNamed TextColor . YELLOW )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġsyntax ( player Argument , Ġto Player Argument ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġplayer To Teleport Ġ= Ġ! player Argument ĊĠĠĠĠĠĠĠ Ġval Ġto Player Ġ= Ġ! to Player Argument ĊĊĠĠĠĠĠĠĠ Ġif Ġ(! sender . has L uck Permission (" toolbox . tele port ")) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġsender . sendMessage ( Component . text (" No Ġpermission ", ĠNamed TextColor . RED )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn @ syntax ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġif Ġ( player To Teleport . instance !! Ġ!= Ġto Player . instance ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġplayer To Teleport . set Instance ( to Player . instance !! , Ġto Player . position ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġplayer To Teleport . tele port ( to Player . position ) ĊĊĠĠĠĠĠĠĠ Ġplayer To Teleport . sendMessage ( Component . text (" Wo osh !", ĠNamed TextColor . YELLOW )) ĊĠĠĠĠĠĠĠ Ġsender . sendMessage ( Component . text (" Teleport ed Ġ${ player To Teleport . username } Ġto Ġ${ to Player . username }", ĠNamed TextColor . YELLOW )) ĊĠĠĠ Ġ} Ċ Ċ }, Ġ" tele port ", Ġ" tp ")