"Claim" chunk!?

Discussion in 'Plugin Development' started by CraftCreeper6, Sep 30, 2014.

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

    CraftCreeper6

    Hi! I was just wondering how I could let a player claim a chunk of land (The size of an in-game chunk of course.)
    How would I do this?
    I tried:
    Code:java
    1. Chunk chunk = player.getWorld().getChunkAt(x, z);
    2. getConfig().set(player.getName() + " Land", chunk);
    3.  


    But that doesn't seem to work :/
     
  2. Offline

    SmooshCakez

    Try storing the location and retrieve the chunk later from that.
     
  3. Offline

    CraftCreeper6

    SmooshCakez
    I also tried this :p But it saves the position your standing at :/
     
  4. Offline

    fireblast709

  5. Offline

    CraftCreeper6

  6. Offline

    ZachBora

    This
    Code:java
    1. player.getWorld().getChunkAt(x, z);

    is confusing me
    shouldn't you be doing
    Code:java
    1. player.getLocation().getChunk();
     
  7. Offline

    CraftCreeper6

Thread Status:
Not open for further replies.

Share This Page