I need Help with Timers

Discussion in 'Plugin Development' started by rene3233, Jan 25, 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
    --- merged: Jan 25, 2011 1:21 PM ---
    CLOSE
     
  2. Offline

    eisental

    plugin == null ?
    It's hard to say without line numbers and more code
     
Thread Status:
Not open for further replies.

Share This Page