Intercept and limit world generation

Discussion in 'Plugin Development' started by MrRump, May 28, 2014.

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

    MrRump

    Hey people!

    I am currently working on a bridge between WorldGuard and an economy plugin. As you might know, WorldGuard allows one to create protected regions and assign those to players. On my server, I want to divide the whole world into 16x16 (chunk-sized) regions, which can be bought, and sold etc.

    How? My plugin allows one to spend money on getting access to a region. That's not a problem at all. But obviously, I do not want to define all regions by hand. Whenever a chunck is newly created, I want to create a region. But which event do I have to used to accomplish that? The ChunckLoadedEvent?

    Secondly, do you know how I can limit the world size, so that the server's world doesn't grow beyond 1000x1000 chunks?
     
  2. Offline

    Adriani6

    WorldBorder
     
  3. Offline

    MrRump

    :) I am looking for a way to program it, not a plugin. I want to learn how to do things myself.
     
Thread Status:
Not open for further replies.

Share This Page