Moved it outside the loop, boom works great :-) You're awesome, I really honestly appreciate your work. Keep up the great work!
Oh my goodness. YOU ARE RIGHT. Holy crap! I forgot, in the /koth start code I'm calling a for loop for all players, then inside that loop i'm...
I think you're not getting my wording Tiger c: It's not the code brotha, it's the for loop. You see c: ? I'm asking how would somebody loop...
I'm calling updateScoreboard in a command called /KOTH start, which on /koth start a scheduled delayed task starts that in 10 minutes...
What I'm trying to accomplish: I'm scheduling a repeating task that loops through an arraylist of players in the King of the Hill Event, for...
Yes, I've tried all our options so far. : - ( Do you by chance have an idea how to do something like this?
I have tried honestly moving the break around, it does nothing but break it even more, as it stops the loop from looping through all players to...
public void updatescoreboard() { Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this, new Runnable() {...
Where in my if statement should I break this? EDIT: I put the break at the end of the my if statement, and it does not stop the for loop...
The players list is not the problem. The problem is that the For{} is repeating for ALL the players on the list, so it is adding +1 to a players...
Still is updating the score by +3 everytime it's ran. The scorebaord showing isn't the problem, it's how it's running the for loop over and over...
Like so? public void updatescoreboard(){ Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this, new Runnable(){...
So are you saying instead to just put the for{ } loop inside the runnable? Tried that as well, changed nothing knowing it was still running the +1...
Can you give me an example of code for this? Thank you.
What do you mean "do my thing" if you don't mind. Where would you recommend I break the for loop at?
Separate names with a comma.