[Unsolved] Saving and restarting arena?

Discussion in 'Plugin Development' started by Hadenir, Feb 28, 2014.

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

    Hadenir

    Hi!

    I'm creating own TheWalls plugin. Of course you know, arena must reset after every game, but I don't know: How can I save blocks on arena(chests, signs, block, ect.), and restart them?

    Thanks for all your answers!
     
  2. Offline

    MrAwellstein

    Configs, objects, and java
     
  3. Offline

    Hadenir

    @MrAwellstein
    Config - How save it in config?
    Objects - :O
    Java - Of course
     
  4. Offline

    Hadenir

    Nobody want to help?
     
  5. well you should think it by yourself. probably I would iterate through all area and put BlockType : Location into the hashmap. If it would be chest, then I would put Location : ItemStack. And on restart I just iterate with
    Code:java
    1. for(BlockType b : map.keySet() {
    2. }

    Something similar..
     
  6. Offline

    Hadenir

Thread Status:
Not open for further replies.

Share This Page