Array not Cycling through player

Discussion in 'Spigot Plugin Development' started by Fluoro, Apr 17, 2017.

  1. Personally, I would pursue a resolution from a more object-orientated perspective. You are, afterall, writing Java. For example, create your own object called Arena, or just use the WorldGuard API and resolve to using its ProtectedRegion; perhaps create an implementation of it.
    • Like Like x 1
  2. You don't remove it, you ideally fix the implementation like several people have suggested before (creating game objects which manage a single game). The actual issue that caused your issues is that you need to compare it against iterate instead of i.
    • Useful Useful x 1
  3. Wow I think you're the most professional person i've ever met, the word choice, the explanation, and the detail in your answers. Wow.

    So uh if i is small than iterate? And do I only put it for the first big if loop?
  4. No, you want to compare iterate against the bridge size (bridge1, bridges2, etc), since iterate resets every time a game is full (when game1 is set to true, game2, etc)
    • Useful Useful x 1
  5. YES IT WORKS THANKS! Also sorry for late reply.