Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function onJoin(PlayerJoinEvent $e){
- $p = $e->getPlayer();$n = $p->getName();
- if(null != $this->getConfig()->getNested("JailedPeoples.$n")){
- $pos = $this->getConfig()->getNested("JailPosition")[0];
- $p->teleport(new Position($pos["x"], $pos["y"], $pos["z"], $this->getServer()->getLevelByName($pos["level"])));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement