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?
Hi guys, I've got a problem. I've got a King of the Hill plugin I've been making. Basically, once a player is in a certain area on top of the...
Hey fellas, I'm in a bit need of help. I'm making a drag & drop shop plugin that gives players a certain amount based on my config.yml and it's...
This is not how you help somebody, at all. Learn to be constructive in your responses. Offering somebody a "wow you suck at coding here's a very...
Hmm.. I dont think this did anything. I think my brackets are a little off now though because putting a bracket after the if statement caused a...
Hi there fellas. I just wanted to say how wonderful of a community this appears to be. I've just recently got into developing Java plugins for my...
Separate names with a comma.