How would you go about creating a world border and teleporting players in it?

Discussion in 'Plugin Development' started by Neilnet, Mar 8, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    Neilnet

    Hey guys,

    Starting another plugin. Just a small thing I encountered. Need community advice:
    - How would you go about creating a world border, and teleporting people inside it?

    Creating a world border would be easy. Just getting the world spawnLocation and doing some maths. The teleporting the player in those cords, however. Tricky, tricky bit. How would you guys do this?
     
  2. Offline

    timtower Administrator Administrator Moderator

    @Neilnet You could teleport them to the spawn location. Or get the range of the border, put it in a random, add the lowest x coord of the border, random teleports :D
     
    Neilnet likes this.
Thread Status:
Not open for further replies.

Share This Page