Timerhelp

Discussion in 'Plugin Development' started by rene3233, Jan 24, 2011.

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

    rene3233

    Hi I need help with a timer.
    My problem is the timer when I always get this fault code:

    Code:
    Exception in thread "Timer-0" java.lang.NullPointerException
            at com.bukkit.KingGenius.ServerSecurityBukkit.timer$automsg.run(timer.ja
    va:48)
            at java.util.TimerThread.mainLoop(Unknown Source)
            at java.util.TimerThread.run(Unknown Source)
    This comes and I work with players.

    Here, the timer code:
    Code:
        private class automsg   extends TimerTask
            {
            public void run()
              {
                //System.out.println(veriablen.getAuto_MSGData(2));
                plugin.getServer().broadcastMessage("test");
                }
              }
    I hope someone can help me.

    Sincerely rene3233
     
Thread Status:
Not open for further replies.

Share This Page