Advertisement
TungstenVn

Untitled

Aug 20th, 2019
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.34 KB | None | 0 0
  1. public function onJoin(PlayerJoinEvent $e){
  2.         $p = $e->getPlayer();$n = $p->getName();   
  3.         if(null != $this->getConfig()->getNested("JailedPeoples.$n")){
  4.             $pos = $this->getConfig()->getNested("JailPosition")[0];
  5.             $p->teleport(new Position($pos["x"], $pos["y"], $pos["z"], $this->getServer()->getLevelByName($pos["level"])));
  6.         }
  7.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement