idk what to do else... [ScheduleAsycRepeatingTask problem!]

Discussion in 'BungeeCord Plugin Development' started by OfirTIM, May 17, 2015.

  1. hello! my name is OfirTIM as i said... soo... i find away to do all this automatic tasks but i have a problem...
    i changed the settings of it that when there are 2 players the game would start automatic and the codes will work normaly... but for some reason its not being doing it automaticly... i will post full code at Pastebin:

    Thanks if someone will answer!

    Regards, OfirTIM.
  2. Code (Text):
    public void gamestart(){
            if(Bukkit.getOnlinePlayers().length >= 1){
    Check the online players within the runnable and don't call gamestart each time or the server will crash
    EDIT: This is the bungeecord plugin development section, not spigot plugin development :p
  3. thanks bro... but still little problem... the game seconds is running normaly... just if the player amount that requests running and begging the game... its like running autoamticly when none players online but when there are player that join its starts the game without saying the amount of time that game is gonna start... (cooldown).
  4. Show me your current code