Help with using register

Discussion in 'Plugin Development' started by tyzoid, Mar 25, 2012.

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

    tyzoid

    Hello everyone.

    I am currently working on re-writing HeavenActivity, and I am having trouble using register.

    Here is the error I am getting:
    Code:
    java.lang.NullPointerException
    [SEVERE] at tk.tyzoid.plugins.HeavenActivity.tasks.Payday.run(Payday.java:30)
    [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    [SEVERE] at java.lang.Thread.run(Thread.java:679)
    
    The error is occurring here: https://github.com/tyzoid/HeavenAct.../plugins/HeavenActivity/tasks/Payday.java#L30
    I am using register because it was already implemented in the original HeavenActivity, so it only took a bit of copying and pasting.
    I will NOT and I repeat NOT use vault. My philosophy is that under NO circumstances, any of my plugins will have required dependencies.
     
  2. Offline

    haveric

    Well, your first problem is that you are using Register, which hasn't been updated since Sep 28, 2011. Vault is not the demon you think it is and if you are concerned with having it be required, make it a soft dependency. This way you can benefit from the ease of implementation and still not have it be forced upon anyone who doesn't want to use it.

    Also note that I used to use register and it was a pain to work with. You are only hurting yourself by not moving on.
     
    Mitsugaru and desht like this.
  3. Offline

    tyzoid

    Found the problem, just don't know how to solve it.

    After extensive testing and debugging, it appears that none of the plugins I have are registering as "compatable plugins", and therefore, being thrown out.
     
Thread Status:
Not open for further replies.

Share This Page