Make ArrayLists work with multiple arenas

Discussion in 'Plugin Development' started by i3ick, Jan 18, 2014.

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

    i3ick

    Hi, I've made a system that creates multiple arenas in such a way that it saves world information in the config under different arena names.
    Code:
    ArenaList:
      test:
        greenspawn:
          X: -71
          Y: 63
          Z: 148
          Yaw: 2.8501527
          Pitch: 18.599987
          World: CraftBukkit
        redspawn:
          X: -72
          Y: 63
          Z: 155
          Yaw: 181.6499
          Pitch: 16.800032
          World: CraftBukkit
      frog:
        redspawn:
          X: -45
          Y: 79
          Z: 157
          Yaw: 272.80096
          Pitch: 9.850015
          World: CraftBukkit
        greenspawn:
          X: -35
          Y: 79
          Z: 157
          Yaw: 87.8504
          Pitch: 4.000036
          World: CraftBukkit
    But I've realized that my arrays won't work properly with this since for example the array ftred will be used twice if two arenas are running at the same. Basically half of the red team would be in the other game. How can i fix this and make arrays arena specific? Thank you.

    GitHub of the main class:
    https://github.com/i3ick/Winter-Slash/blob/master/WinterSlash/src/me/i3ick/com/WinterSlashMain.java


    Thank you!
    i3ick
     
  2. Offline

    SuperOmegaCow

    i3ick Objects. Objects everywhere.
     
Thread Status:
Not open for further replies.

Share This Page