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?
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 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
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)"
Use hash maps... Code:java public void List<ArraySchmegma> addArray() { } Here's an example: https://github.com/Bukkit/Bukkit/blob/master/src/main/java/org/bukkit/Bukkit.java#L190