Task not running

Discussion in 'Plugin Development' started by Gopaintman, Sep 29, 2013.

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

    Gopaintman

    So in my onEnable() method I have this:
    I don't know which run to use.
    Would someone give me an example of what an async method does versus a sync method?
    Code:java
    1. this.getServer().getScheduler().runTask(this, new Runnable(){
    2.  
    3. public void run() {
    4.  
    5. for(int i = 0; i < leaderboards.size(); i++ ){
    6. String name = leaderboards.get(i);
    7. createSigns(leaderboards.get(i), leaderboardClass.getPoint1(name), leaderboardClass.getPoint2(name));
    8. }
    9.  
    10. }
    11. });


    I use this to keep my signs up to date. I don't see any errors in console.
     
  2. Offline

    xTrollxDudex

  3. Offline

    Gopaintman

    xTrollxDudex
    Why the task is not running.
     
  4. Offline

    xTrollxDudex

  5. Offline

    Gopaintman

    I tried multiple different ways of running and followed tutorials and it never runs.
     
  6. Offline

    xTrollxDudex

    Gopaintman
    What are you trying to achieve anyways??
     
  7. Offline

    Gopaintman

    A "Worker" that will update some signs periodically.
     
Thread Status:
Not open for further replies.

Share This Page