I need Help with Timers

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

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


    Hi I need help with a timer.
    My problem is the timer when I always get this fault 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:

    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 ---
  2. Offline


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

Share This Page