Need Help in a SkyWars Plugin!

Discussion in 'Plugin Development' started by Zer0PvP, Sep 25, 2014.

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

    Zer0PvP

    Hey Guys!, This is Zer0!, i Need a Simple Help!, But for Me I dont know How To Fix That!

    The Code Is:
    Code:
            if (players.size() == spawns.size() && state == ArenaState.ENTRAR) {
                    countdown = new Countdown(this, 30, 20, 10, 5, 4, 3, 2, 1);
                    countdown.runTaskTimerAsynchronously(Main.getPlugin(), 0, 20);
                    ArenaChest();
            }
    However, If The Arena Has All Slots Occupied, And A Player Exits and Enters the Code Remake, Starting The Timing Again and Makes A Big Bug!, Help Please.
     
  2. Offline

    macboinc

    Can you define what the "big bug" is>
     
  3. Offline

    Zer0PvP

    The countdown restart and the arena start 2 times
     
  4. Offline

    macboinc

    Post more code please...
     
  5. Offline

    Konato_K

    What if you change your ArenaState enum when the match is starting so the if will not be true again and it will not start again?
     
  6. Offline

    Regablith

    The Amount Of Capitals Is Really Annoying
     
  7. Offline

    fireblast709

    Zer0PvP cancel the task if the countdown restarts. Also, don't use async for this.
     
  8. Offline

    Zer0PvP

    how i do this? that is my question!

    Help me please!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 14, 2016
  9. Offline

    fireblast709

    Zer0PvP try countdown.cancel() before you create a new Countdown
     
Thread Status:
Not open for further replies.

Share This Page