Best way to do this?

Discussion in 'Plugin Development' started by Newby, Oct 1, 2013.

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

    Newby

    I'm making a mini game on my server and instead of having a command to start the minigame I want it to automatically start every 20 minutes, what would be the best way to do this?
     
  2. Offline

    1Achmed1

    Have a countdown or timer.
     
    MrSnare likes this.
  3. Offline

    Newby

    1Achmed1 Alright, thanks

    I got a new question now though so instead of making a new topic I am going to ask it on this thread, how can I get all the players in a array list? I tried
    Code:java
    1. for(Player p : hgp){

    but that didn't work, it made me change it to a String but that messed up all the code I was trying to do to people in the array list
     
  4. Offline

    remremrem

    You really should have players names in an array list, not players. You will have to change your code so that instead of "Player" you use "Bukkit.getPlayer(playername)"
     
  5. Offline

    1Achmed1

Thread Status:
Not open for further replies.

Share This Page