Create rounds [HELP]

Discussion in 'Plugin Development' started by PistoFrancoPuumm, Nov 26, 2015.

Thread Status:
Not open for further replies.
  1. hello, im pisto and i have a question, im noob at java and i don't know how to do a round, can u send me a code or tell me how i do that? thanks [tutorials accepted too]

    if(round.1 == STARTED) {
    //DO STUFF
    }
    if(round.1 == FINISHED) {
    //STUFF
    }

    Somethink like that?

    THANKS :D
     
  2. Offline

    SuperSniper

  3. @SuperSniper like "ROUND 1 HAS STARTED"
    "60 seconds left"

    PD: I edit the post
     
  4. Offline

    mcdorli

    We won't spoonfeed, and you should learn java before bukkit, it is pretty much necessary.
     
  5. Offline

    Zombie_Striker

    mcdorli likes this.
  6. Offline

    tommyhoogstra

    Some advice with booleans, you dont need a seperate conditional to check both its states, its either in progress, or its not.

    Checking if its started or finished is unnecessary, if its in game do this, if its not in game, then prepare the next one.

    if(round1.INGAME){

    }else{

    }
     
  7. Offline

    lilian58660

    DON'T USE == BUT .equals() !
    Always !
     
  8. Offline

    Scimiguy

    @lilian58660
    No. That's downright wrong.
    Don't ever tell people that again, because it's simply not true.

    == is mostly for primitive comparisons, and enums.
    .equals() is for object wrapper value comparisons.

    == compares the memory location of two objects
    .equals() compares the effective value of two objects.
     
    Zombie_Striker likes this.
  9. thanks, i gonna use now :D

    thanks, next time i do this :D thanks :p

    ok, i gonna do this now, thanks :D

    <Edit by mrCookieSlime: Merged posts. Please don't triple post. There is an Edit Button right next to the Date.>
     
    Last edited by a moderator: Nov 28, 2015
  10. Offline

    Scimiguy

    You're not serious, right?
     
    Zombie_Striker likes this.
  11. What?

    obvoulsy i don't gonna take this ever, but i learned something today :D

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
  12. Offline

    Mrs. bwfctower

    Zombie_Striker likes this.
Thread Status:
Not open for further replies.

Share This Page