Solved runTaskLater deprecated

Discussion in 'Plugin Development' started by envic, Jul 28, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    envic

    Hi,

    I wanted to use "runTaskTimer" in OnEnable but it say the method for bukkitscheduler deprecated!

    Code:
    Bukkit.getScheduler().runTaskTimer(this, startRefresh(), 1L, this.interval * 20L);
    Any other way for doing this task instead?
     
    Last edited: Jul 28, 2016
  2. Offline

    I Al Istannen

    mine-care and bwfcwalshy like this.
  3. Just curious, how can I do this? I'm using eclipse and it shows no javadocs, only available classes, methods and variables from the craftbukkit api
     
  4. Offline

    I Al Istannen

    @bwfcwalshy @FisheyLP
    And because I don't know why you probably must do this for bukkit.
    I read somewhere they are blocking any user agent starting with "Java", which is the one eclipse uses to fetch the javadoc. This means you must download the Javadoc. I don't know if it is true, but the online one didn't work for me, but the offline did.
     
  5. Offline

    ArsenArsen

    They are. Maven is useful in this case.
     
  6. Offline

    I Al Istannen

    @ArsenArsen
    Never used maven, may need to look into it. Never used git before, too :p

    But isn't it a bit unintelligent to block IDEs from accessing the Javadoc??

    Offtopic, here we are. I am sorry.
     
  7. Offline

    envic

    :oops: None Static O.O
    How do i supposed to use
    or
    in static way?
     
  8. Offline

    envic

Thread Status:
Not open for further replies.

Share This Page