1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

How i create a Worldborder

Discussion in 'Facepalm' started by BlawoHD, May 28, 2017.

  1. BlawoHD

    BlawoHD Silverfish

    Messages:
    21
    How do I make a worldborder in my plugin that gets smaller per seconds?
     
  2. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    Sounds more like a whole plugin request.
     
  3. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    Can you show proof of a previous attempt?
     
  4. Indexfire

    Indexfire Baby Zombie

    Messages:
    137
    GitHub:
    Indexfire
    PHP:
    //I'm on my phone don't comment
    public function denyMovement(PlayerMoveEvent $event){
    Player $player $event->getPlayer();
    $x $player->getBlockX();
    $z $player->getBlockZ();

    //I don't know how to make a shrinking border so here's a basic concept by me which most likely won't work

    if($x YOURXCOORDSHERE && $z YOURYCOORDSHERE){

    $player->teleport(new Vector3($player->getWorld(), XYZ);
    }

    }
     
  5. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    well, I might get onto developing this plugin but it will require quite some time per tick.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.