Calling A Timer On Plugin Enable

Discussion in 'Plugin Development' started by Jbitters3, Mar 28, 2014.

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

    Jbitters3

    I made a timer, but I am not sure how I actually call in when the plugin is enabled. Any help?
     
  2. Offline

    ShadowLAX

    Jbitters3 Put it in the onEnable() method of your main class.
     
  3. Offline

    Jbitters3

    ShadowLAX Yeah, I understand that. I named the class votetimer, how would I put that onEnable()
     
  4. Offline

    ShadowLAX

    Jbitters3 Have the class extend JavaPlugin, then making it your main class, and put it in the onEnable method you create.
     
Thread Status:
Not open for further replies.

Share This Page