Hi, I'm a french nooby dev, and here is my code : http://pastebin.com/40X8kZ9v . I'm using a ActionBarAPI but anyway, I want for each choosed players do my void with their own timer and task, please I need help !
i know, lmao. 940% of the things posted on these forums i dont unserstand for example somone once said: "me player sotre loop for list update."
I'm french and my written english is not very technical, i want for each player to do a void with their own timer and task, but i can't declare and use them in the same void because of the scheduler I think : http://prntscr.com/b4qnw7
I'm not sure what it is you're asking but maybe you're trying to make a enhanced for loop, ex; For(Player p : Bukkit.getOnlinePlayers()) //do something
loop through all the players with a for loop e.g. for player : player allPlayers { doMethod(); } ^^ Sniped @NickMD
You don't understand xD, when a player do /rad ImWazzix i want to do the void, when i'm doing my void and do again the command with another player we will had the same timer and the same task i want to separate them !
use BukkitRunnable runTimer(Player){ new BukkitRunnable(){ //Add unimplemented methodss urself } } then when you do runTimer(player) it will make a new bukkit runnable giving it the players data.
a runnable is a repeating task which you set aan interval with .runTaskTimer(plugin, 20L, 20L); and it repeates every that value so 20L will be 1 second.