Economy Handling.

Discussion in 'Plugin Development' started by tyzoid, Apr 6, 2012.

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

    tyzoid

    Hello.

    I finally ditched register after a week of frustration.

    I have coded my own lightweight version of it, and am receiving an error while checking for Essentials Economy.

    Error:
    Code:
    [SEVERE] Could not pass event PluginEnableEvent to HeavenActivity
    org.bukkit.event.EventException
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:343)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:250)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:232)
        at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:374)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:361)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:187)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
    Caused by: java.lang.NoClassDefFoundError: com/earth2me/essentials/api/UserDoesNotExistException
        at tk.tyzoid.plugins.HeavenActivity.Economy.Economy.onPluginEnable(Economy.java:63)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
        ... 11 more
    Caused by: java.lang.ClassNotFoundException: com.earth2me.essentials.api.UserDoesNotExistException
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
        ... 17 more
    
    I'm not quite sure how to avoid this error...
    Here is the code: https://github.com/tyzoid/HeavenAct...ugins/HeavenActivity/Economy/Economy.java#L63
     
  2. Offline

    DrAgonmoray

    ..use Vault.
     
  3. Offline

    tyzoid

    No.
     
  4. Offline

    DrAgonmoray

    Yes.
     
    kumpelblase2 likes this.
  5. Offline

    tyzoid

     
  6. Offline

    DrAgonmoray

    tyzoid
    Then you shouldn't be making this plugin.
     
  7. Offline

    tyzoid

    At least help me out...
     
  8. Offline

    DrAgonmoray

    You need to use Vault.
     
    Iron_Crystal likes this.
  9. Offline

    Iron_Crystal

    I agree with DrAgonmoray. Vault is great for hooking up to economy plugins and other things
     
  10. Offline

    tyzoid

    Fixed the problem.

    Thanks for the "help"
     
  11. Offline

    IcyRelic

    i use Vault for my permissions and Economy it works great!
     
  12. Offline

    billofbong

    HeavenActivity was hell.
     
  13. Offline

    tyzoid

    What do you mean?

    The original was, but now I am making a rewrite of it.
     
  14. Offline

    billofbong

    Yeah, the original.
     
Thread Status:
Not open for further replies.

Share This Page