Problem with Register and iConomy

Discussion in 'Plugin Development' started by Phiwa, Oct 27, 2011.

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

    Phiwa

    Hey guys and lads,

    during the development of my first plugin "Mortar" I got a problem which I cannot solve on my own.

    When throwing an egg, I want to check the throwing player's account's balance.

    In this code I got my import and the variables connected to the check (Register-1.5.jar is imported correctly, Ecplise offers me all methods).

    Ecplise doesn't state any problem, so the Java itself should be fine.

    This is my code, does anyone here see a mistake which I simply don't get?

    http://pastebin.com/8WT8Hust

    I get a NullPointerException when running the plugin, stating the error is in line 14 (of the Pastebin-File).

    If you cannot see an error in this part of the code, simply tell me so I can paste more of it, even though the problem should be in line 14. -.-


    Big thanks

    Phiwa
     
  2. Offline

    StClaus

    Interesting question, had the same problem some weeks ago.
     
  3. Offline

    Phiwa

    Sorry for the push, but I just asked myself if my mistake is too stupid to get an answer to my question or if you simply cannot find the problem in the few lines of code... ;)
     
  4. Offline

    shadowmax507

    OK, as far as I understand this there are three two possibilities:
    1. Your Method "economy" is null (it would help to know how you obtain it)
    2. The player does not have an account
    3. The player does not exist (I hope this isn't the case) Well, then you would get an error at line 12, wouldn't you? ;)
     
  5. Offline

    Phiwa

    Here is my complete sourcecode.

    mortar.java
    players.java

    It might look strange and somehow mixed up but this is my first plugin. ;;)

    Thanks for your help mate.
     
  6. Offline

    shadowmax507

    Ah, OK, as far as I can tell you never assign anything to the variable "economy". To do so, put this somewhere in the onEnable method (after you got your plugin manager):
    Code:
    if(Methods.setMethod(pm))
    {
        economy = Methods.getMethod();
    }
    else
    {
        //Anything here is executed if there is no economy plugin installed...
    }
     
  7. Offline

    Phiwa

    Code:
    ...
    
    pm = this.getServer().getPluginManager();
    
                if(Methods.setMethod(pm))
                    {
                        economy = Methods.getMethod();
                    }
                else
                    {
                        System.out.println("[Mortar]No Economy-Plugin found! Proceeding without Economy-Support!");
                    }
    
            Listener player = new players(this);
    
    ...
    Code:
    2011-10-30 20:11:42 [SEVERE] Error occurred while enabling Mortar v1.2 (Is it up to date?): com/nijikokun/register/payment/Methods
    java.lang.NoClassDefFoundError: com/nijikokun/register/payment/Methods
        at phiwa.mortar.mortar.onEnable(mortar.java:282)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:170)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:957)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:171)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:154)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.ClassNotFoundException: com.nijikokun.register.payment.Methods
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 11 more
    
     
  8. Offline

    Acrobot

    Did you put the register .jar into the /plugins directory?
     
  9. Register isn't a plugin, you won't need it. It's an API.
    Just like you don't need Bukkit.jar on your server.
     
  10. Offline

    Acrobot

    @Pandemoneus
    ...
    Are you kidding me?
    https://raw.github.com/iConomy/Register/master/README

    Register IS a plugin.
    You can just put it in your /plugins directory, and it will work fine.
    However, if you do so, remember to do
    depends: [Register]
    in your plugin.yml
    You can also pull its sources to your plugin, but you have to change the packages (for example, from com.nijikokun.Register to com.nijikokun.Register.forMyPlugin), otherwise you will end up with problems with other plugins using Register with the same class path.
     
  11. Offline

    Phiwa

    Oh okay, I added the Register.jar as an external JAR into my plugin's JAR.
    You mean I got to import the packages manually into my project?
     
  12. Offline

    desht

    Register is really intended to be used as a plugin, not statically imported (you can get it working, but it's a lot more effort - you'll need to to re-import every time a new version of Register comes out, and you need to make sure you correctly change the package every time... not fun).

    I would recommend reading the Register thread - in particular, there's a good post from @Don Redhorse here: http://forums.bukkit.org/threads/re...s-economy-api-stable.16849/page-8#post-747714

    The most common problem you might encountered after that is an IncompatibleClassChangeError, which is almost certainly because some other plugin has statically imported the Register library and not correctly changed the package name.

    Having said that, it would be really nice if @Nijikokun would update the Register thread with some more authoritative docs and examples, because there is a lot of confusion surrounding Register right now. The current docs at the start of the thread are just plain wrong (and contradict what Niji states later in the plugin thread here).
     
  13. Offline

    Don Redhorse

    wow... I got referenced... thanks @desht ..

    btw: you could also look into Vault which supports also all economies and permission systems.

    and I agree with desht and the others... DON'T include a jar inside your plugin, except you are QUITE sure that nobody else is using that yar OR you did refactor the package name, otherwise all kind of crap comes up.

    and yes @Nijikokun needs to update the thread and OP with better and correct information, especially for new starters.
     
  14. Offline

    Phiwa

    Okay, I'll take another look at it and see if I can find the other plugin which causes it.
    Thanks mate.
     
  15. Offline

    desht

    Wow, Vault actually looks really good. Using sk89q's services API... elegant. The code is well written, and the API is properly documented. I'm seriously tempted to drop support for Register in the next versions of my plugins and require Vault instead.
     
  16. Offline

    Sleaker

    Go for it :) - always recommending people to switch over, if there are issues or inconsistencies we're active and patching Vault to make it work for you!
     
    desht and mung3r like this.
  17. Offline

    pandiZz

    @Sleaker I am switching to Vault and i would like your help, since you made Vault. I added Vault and removed Register, Register re-downloaded when i started the server, im fucked. Please help.

    --
    Regards,
    pandiZz
     
  18. Offline

    Sleaker

    sounds like a plugin has auto-downloading stuff, was the only plugin you're using your own on the test server?
     
  19. Offline

    pandiZz

    No, i think the plugin that's re-downloading it is iConomy. Why is it doing so, and how can i stop it?

    Error Log:
    Show Spoiler

    G:\Servere\minebkit01>"C:\Program Files (x86)\Java\jre6\bin\java.exe" -Xincgc -X
    mx1G -jar craftbukkit.jar
    161 recipes
    17 achievements
    16:10:58 [INFO] Starting minecraft server version Beta 1.8.1
    16:10:58 [INFO] Loading properties
    16:10:58 [INFO] Starting Minecraft server on *:10
    16:10:58 [WARNING] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    16:10:58 [WARNING] The server will make no attempt to authenticate usernames. Be
    ware.
    16:10:58 [WARNING] While this makes the game possible to play without internet a
    ccess, it also opens up the ability for hackers to connect with any username the
    y choose.
    16:10:58 [WARNING] To change this, set "online-mode" to "true" in the server.set
    tings file.
    16:10:58 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-1131
    -g86b7fa8-b1337jnks (MC: 1.8.1)
    16:10:59 [INFO] LWC: Loading shared objects
    16:10:59 [INFO] LWC: Protection cache: 0/10000
    16:10:59 [INFO] LWC: Native library: plugins/LWC/lib/native/Windows/x86/sqlitejd
    bc.dll
    16:10:59 [INFO] [Pail] Pail 0.7.1 Enabled
    16:10:59 [INFO] Spout 510 has been initialized
    16:10:59 [INFO] Preparing level "Yay!"
    16:10:59 [INFO] Default game type: 0
    16:10:59 [INFO] Preparing start region for level 0 (Seed: 4467149748644585714)
    16:11:00 [INFO] Preparing start region for level 1 (Seed: 2128155634917102717)
    16:11:00 [INFO] Preparing spawn area: 44%
    16:11:01 [INFO] AntiCreeper v2.0 - by Rothens
    16:11:01 [INFO] Anticreeper v2.0 - STARTED
    16:11:01 [INFO] Loading ColoredSigns
    16:11:01 [INFO] CommandSigns version1.1.0 is enabled.
    16:11:01 [INFO] [FalseBook Block] 3100 Books loaded!
    16:11:01 [INFO] FalseBookBlock v0.88alpha by GeMo enabled
    16:11:01 [INFO] [FalseBook Block] 2 Cauldrons successfully loaded.
    16:11:01 [INFO] FalseBookCart v0.88alpha by GeMo enabled
    16:11:01 [INFO] [FalseBook Chat] No ChatRooms loaded.
    16:11:01 [INFO] FalseBookChat v0.88alpha by GeMo enabled
    16:11:01 [INFO] [FalseBook Core] FalseBookCore v0.88alpha by GeMo enabled!
    16:11:01 [INFO] FalseBookExtra v0.88alpha by GeMo enabled
    16:11:01 [SEVERE] [HELP] Error loading weclip.yml
    while scanning for the next token
    found character '\t' that cannot start any token
    in "<reader>", line 7, column 1:

    ^

    16:11:01 [WARNING] [HELP] Help entry node "expandvert" is missing a description
    in wesel.yml
    16:11:01 [INFO] [HELP] 165 extra help entries loaded from files: iconomy(10), co
    mmandsigns(9), weutil(15), lwc(26), wehistory(4), wesel(15), PermissionsBukkit(1
    6), wenav(8), iconomy_bankaccount(14), weregion(11), wegen(7), worldedit(17), we
    tool(13)
    16:11:01 [WARNING] [HELP] A permission plugin isn't loaded.
    16:11:01 [INFO] [HELP] 0.3.2 enabled
    16:11:01 [INFO] [iConomy - Celty] Enabled (47 ms)
    16:11:01 [INFO] [MobDisguise] by desmin88 version 1.63 enabled.
    16:11:01 [INFO] Permission system not detected, defaulting to OP
    16:11:01 [INFO] mobSpawner 1.7.3 enabled
    16:11:01 [INFO] [MotherNature] Neither Permissions or GroupManager found. Using
    ops.txt for permission handling
    16:11:01 [INFO] [MotherNature] Plugin enabled! (version 1.3.2)
    16:11:01 [INFO] [MyHome] 2 homes loaded
    16:11:01 [WARNING] [MyHome] A permission plugin isn't loaded.
    16:11:01 [INFO] [MyHome] Help plugin support enabled.
    16:11:01 [INFO] [MyHome] MyHome 2.0 enabled
    16:11:01 [INFO] [MyMessages] version 1.5 enabled.
    16:11:01 [INFO] [MyMessages] Made by redpois0n.
    16:11:01 [INFO] [MYWARP] [MYWARP]: 16 warps loaded
    16:11:01 [WARNING] [MYWARP] A permission plugin isn't loaded.
    16:11:01 [INFO] [MYWARP] Help plugin support enabled.
    16:11:01 [INFO] [MYWARP] MyWarp 2.0 enabled
    16:11:01 [INFO] PlgSetspawn version 5.0 is enabled!
    16:11:01 [INFO] [SignLift] Version 1.0 - Copyright 2011 - Shannon Wynter (http:/
    /fremnet.net) is enabled
    16:11:01 [INFO] SimpleGodMode is enabled now.
    16:11:01 [INFO] [Simple Prefix v1.0.1] Configuration Loaded.
    16:11:01 [INFO] [Simple Prefix v1.0.1] Plugin enabled!
    16:11:01 [INFO] [Vault][Economy] MultiCurrency not found.
    16:11:01 [INFO] [Vault][Economy] 3co not found.
    16:11:01 [INFO] [Vault][Economy] BOSEconomy6 not found.
    16:11:01 [INFO] [Vault][Economy] BOSEconomy7 not found.
    16:11:01 [INFO] [Vault][Economy] Essentials Economy not found.
    16:11:01 [INFO] [Vault][Economy] iConomy 4 not found.
    16:11:01 [INFO] [Vault][Economy] iConomy 5 not found.
    16:11:01 [INFO] [Vault][Economy] iConomy 6 hooked.
    16:11:01 [INFO] [Vault][Economy] iConomy 6 found: Loaded
    16:11:01 [INFO] [Vault][Permission] PermissionsEx not found.
    16:11:01 [INFO] [Vault][Permission] PermissionsBukkit hooked.
    16:11:01 [INFO] [Vault][Permission] PermissionsBukkit found: Waiting
    16:11:01 [INFO] [Vault][Permission] bPermissions not found.
    16:11:01 [INFO] [Vault][Permission] GroupManager not found.
    16:11:01 [INFO] [Vault][Permission] Permissions 3 (Yeti) not found.
    16:11:01 [INFO] [Vault][Permission] SuperPermissions loaded as backup permission
    system.
    16:11:01 [INFO] [Vault][Chat] PermissionsEx not found.
    16:11:01 [INFO] [Vault][Chat] mChat not found.
    16:11:01 [INFO] [Vault][Chat] bPermissions not found.
    16:11:01 [INFO] [Vault][Chat] GroupManager not found.
    16:11:01 [INFO] [Vault][Chat] Permissions 3 (Yeti) not found.
    16:11:01 [INFO] [Vault] Enabled Version 1.1.0dev-b66
    16:11:01 [INFO] WorldEdit 4.7 enabled.
    16:11:01 [INFO] WorldEdit: Using the Bukkit Permissions API.
    16:11:01 [INFO] PermissionsBukkit v1.2 is now enabled
    16:11:01 [INFO] [Vault][Permission] PermissionsBukkit hooked.
    16:11:01 [INFO] [ChestShop] LWC version 3.53 loaded.
    16:11:01 [INFO] [ChestShop] version 3.24 initialized!
    16:11:01 [INFO] [ChestShop] iConomy 6 loaded.
    16:11:01 [INFO] LWC: Loaded 137 locale strings (0 overrides)
    16:11:01 [INFO] LWC: Permissions API: BukkitPermissions
    16:11:01 [INFO] LWC: Currency API: iConomy6Currency
    16:11:01 [INFO] LWC: Loading SQLite
    16:11:01 [INFO] LWC: Using: Native
    16:11:01 [INFO] LWC: Precached 106 protections.
    16:11:01 [INFO] LWC: At version: 3.53 (b294)
    16:11:01 [INFO] Version: 101
    16:11:02 [INFO] Downloading Register.jar (66kb) ...
    16:11:02 [INFO] 27%
    16:11:02 [INFO] Download finished
    16:11:03 [SEVERE] Could not pass event PLUGIN_ENABLE to Register
    java.lang.IncompatibleClassChangeError: Expected static method com.nijikokun.reg
    ister.payment.Methods.hasMethod()Z
    at com.nijikokun.register.listeners.server.onPluginEnable(server.java:37
    )
    at org.bukkit.plugin.java.JavaPluginLoader$47.execute(JavaPluginLoader.j
    ava:585)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:339)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:964)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:280)
    at com.narrowtux.narrowtuxlib.NarrowtuxLib.checkForRegister(NarrowtuxLib
    .java:310)
    at com.narrowtux.narrowtuxlib.NarrowtuxLib.onEnable(NarrowtuxLib.java:10
    8)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:174)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:957)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:280)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:171)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:154
    )
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    16:11:03 [INFO] [NarrowtuxLib] v1.0.1 by [narrowtux] enabled.
    16:11:03 [SEVERE] Could not pass event PLUGIN_ENABLE to Register
    java.lang.IncompatibleClassChangeError: Expected static method com.nijikokun.reg
    ister.payment.Methods.hasMethod()Z
    at com.nijikokun.register.listeners.server.onPluginEnable(server.java:37
    )
    at org.bukkit.plugin.java.JavaPluginLoader$47.execute(JavaPluginLoader.j
    ava:585)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:339)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:964)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:280)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:171)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:154
    )
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    16:11:03 [INFO] [Showcase] Registered type [basic] (0 items loaded)
    16:11:03 [INFO] [Showcase] Registered type [finite] (0 items loaded)
    16:11:03 [INFO] [Showcase] Registered type [infinite] (11 items loaded)
    16:11:03 [INFO] [Showcase] Registered type [exchange] (0 items loaded)
    16:11:03 [INFO] [Showcase] Registered type [tutorial] (0 items loaded)
    16:11:03 [WARNING] Permissions not found! All Operations are allowed!
    16:11:03 [INFO] [Showcase] version 0.7.7.11 has been enabled.
    16:11:03 [SEVERE] Could not pass event PLUGIN_ENABLE to Register
    java.lang.IncompatibleClassChangeError: Expected static method com.nijikokun.reg
    ister.payment.Methods.hasMethod()Z
    at com.nijikokun.register.listeners.server.onPluginEnable(server.java:37
    )
    at org.bukkit.plugin.java.JavaPluginLoader$47.execute(JavaPluginLoader.j
    ava:585)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:339)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:964)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:280)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:171)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:154
    )
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    16:11:03 [INFO] Done (0.345s)! For help, type "help" or "?"
    16:11:25 [SEVERE] Exception in thread "AWT-EventQueue-0"
    16:11:25 [SEVERE] java.lang.IllegalAccessError: tried to access method org.bukki
    t.command.ConsoleCommandSender.<init>(Lorg/bukkit/Server;)V from class me.escape
    NT.pail.GUIComponents.ServerMenu$2
    16:11:25 [SEVERE] at me.escapeNT.pail.GUIComponents.ServerMenu$2.actionPer
    formed(ServerMenu.java:44)
    16:11:25 [SEVERE] at javax.swing.AbstractButton.fireActionPerformed(Unknow
    n Source)
    16:11:25 [SEVERE] at javax.swing.AbstractButton$Handler.actionPerformed(Un
    known Source)
    16:11:25 [SEVERE] at javax.swing.DefaultButtonModel.fireActionPerformed(Un
    known Source)
    16:11:25 [SEVERE] at javax.swing.DefaultButtonModel.setPressed(Unknown Sou
    rce)
    16:11:25 [SEVERE] at javax.swing.AbstractButton.doClick(Unknown Source)
    16:11:25 [SEVERE] at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknow
    n Source)
    16:11:25 [SEVERE] at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseR
    eleased(Unknown Source)
    16:11:25 [SEVERE] at java.awt.Component.processMouseEvent(Unknown Source)
    16:11:25 [SEVERE] at javax.swing.JComponent.processMouseEvent(Unknown Sour
    ce)
    16:11:25 [SEVERE] at java.awt.Component.processEvent(Unknown Source)
    16:11:25 [SEVERE] at java.awt.Container.processEvent(Unknown Source)
    16:11:25 [SEVERE] at java.awt.Component.dispatchEventImpl(Unknown Source)
    16:11:25 [SEVERE] at java.awt.Container.dispatchEventImpl(Unknown Source)
    16:11:25 [SEVERE] at java.awt.Component.dispatchEvent(Unknown Source)
    16:11:25 [SEVERE] at java.awt.LightweightDispatcher.retargetMouseEvent(Unk
    nown Source)
    16:11:25 [SEVERE] at java.awt.LightweightDispatcher.processMouseEvent(Unkn
    own Source)
    16:11:25 [SEVERE] at java.awt.LightweightDispatcher.dispatchEvent(Unknown
    Source)
    16:11:25 [SEVERE] at java.awt.Container.dispatchEventImpl(Unknown Source)
    16:11:25 [SEVERE] at java.awt.Window.dispatchEventImpl(Unknown Source)
    16:11:25 [SEVERE] at java.awt.Component.dispatchEvent(Unknown Source)
    16:11:25 [SEVERE] at java.awt.EventQueue.dispatchEventImpl(Unknown Source)

    16:11:25 [SEVERE] at java.awt.EventQueue.access$000(Unknown Source)
    16:11:25 [SEVERE] at java.awt.EventQueue$1.run(Unknown Source)
    16:11:25 [SEVERE] at java.awt.EventQueue$1.run(Unknown Source)
    16:11:25 [SEVERE] at java.security.AccessController.doPrivileged(Native Me
    thod)
    16:11:25 [SEVERE] at java.security.AccessControlContext$1.doIntersectionPr
    ivilege(Unknown Source)
    16:11:25 [SEVERE] at java.security.AccessControlContext$1.doIntersectionPr
    ivilege(Unknown Source)
    16:11:25 [SEVERE] at java.awt.EventQueue$2.run(Unknown Source)
    16:11:25 [SEVERE] at java.awt.EventQueue$2.run(Unknown Source)
    16:11:25 [SEVERE] at java.security.AccessController.doPrivileged(Native Me
    thod)
    16:11:25 [SEVERE] at java.security.AccessControlContext$1.doIntersectionPr
    ivilege(Unknown Source)
    16:11:25 [SEVERE] at java.awt.EventQueue.dispatchEvent(Unknown Source)
    16:11:25 [SEVERE] at java.awt.EventDispatchThread.pumpOneEventForFilters(U
    nknown Source)
    16:11:25 [SEVERE] at java.awt.EventDispatchThread.pumpEventsForFilter(Unkn
    own Source)
    16:11:25 [SEVERE] at java.awt.EventDispatchThread.pumpEventsForHierarchy(U
    nknown Source)
    16:11:25 [SEVERE] at java.awt.EventDispatchThread.pumpEvents(Unknown Sourc
    e)
    16:11:25 [SEVERE] at java.awt.EventDispatchThread.pumpEvents(Unknown Sourc
    e)
    16:11:25 [SEVERE] at java.awt.EventDispatchThread.run(Unknown Source)
    16:21:06 [INFO] [MotherNature] Server is now raining.
    16:21:07 [INFO] New max size: 484
    16:21:07 [INFO] New max size: 784
    16:23:06 [INFO] [MotherNature] Server is no longer raining.
    16:33:11 [INFO] [MotherNature] Server is now raining.
    16:35:11 [INFO] [MotherNature] Server is no longer raining.
    16:45:16 [INFO] [MotherNature] Server is now raining.
    16:47:16 [INFO] [MotherNature] Server is no longer raining.
    >


    Thanks in advance,
    ~pandiZz
     
  20. Offline

    Sleaker

    LWC auto-dls register - it is then conflicting with another version that's loaded in an included lib in another of your plugins.
    Also - Vault doesn't use the same methods as Register - it's an alternative for plugin developers - not server owners. meaning, the plugin must be build to support Vault rather than register. So unless you're developing a plugin and switching it from Register to Vault - it probably wont help you.
     
  21. Offline

    pandiZz

    Lolwut? im not a coder, so please speak "newb-friendly" thanks xD
     
  22. Offline

    Sleaker

    This is a development thread in the development section, and the topic here has nothing to do with using Vault on a server. It has to do with using Vault as a library for plugin development.
     
  23. Offline

    pandiZz

    Thanks Sleaker, but since your so nice and all, could you help me fix the errors? ill send u a log without Vault.
    Log:
    Show Spoiler

    G:\Servere\minebkit01>"C:\Program Files (x86)\Java\jre6\bin\java.exe" -Xincgc -X
    mx1G -jar craftbukkit.jar
    161 recipes
    17 achievements
    17:04:24 [INFO] Starting minecraft server version Beta 1.8.1
    17:04:24 [INFO] Loading properties
    17:04:24 [INFO] Starting Minecraft server on *:10
    17:04:24 [WARNING] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    17:04:24 [WARNING] The server will make no attempt to authenticate usernames. Be
    ware.
    17:04:24 [WARNING] While this makes the game possible to play without internet a
    ccess, it also opens up the ability for hackers to connect with any username the
    y choose.
    17:04:24 [WARNING] To change this, set "online-mode" to "true" in the server.set
    tings file.
    17:04:24 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-1131
    -g86b7fa8-b1337jnks (MC: 1.8.1)
    17:04:24 [INFO] LWC: Loading shared objects
    17:04:24 [INFO] LWC: Protection cache: 0/10000
    17:04:24 [INFO] LWC: Native library: plugins/LWC/lib/native/Windows/x86/sqlitejd
    bc.dll
    17:04:24 [SEVERE] com.nijikokun.register.payment.Methods.setPreferred(Ljava/lang
    /String;)Z initializing Register v1.5 (Is it up to date?)
    java.lang.NoSuchMethodError: com.nijikokun.register.payment.Methods.setPreferred
    (Ljava/lang/String;)Z
    at com.nijikokun.register.Register.hasPreferred(Register.java:41)
    at com.nijikokun.register.Register.onLoad(Register.java:55)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:139)
    at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:112)
    at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigur
    ationManager.java:52)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:136)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    17:04:25 [INFO] [Pail] Pail 0.7.1 Enabled
    17:04:25 [INFO] Spout 510 has been initialized
    17:04:25 [INFO] Preparing level "Yay!"
    17:04:25 [INFO] Default game type: 0
    17:04:25 [INFO] Preparing start region for level 0 (Seed: 4467149748644585714)
    17:04:26 [INFO] Preparing start region for level 1 (Seed: 2128155634917102717)
    17:04:26 [INFO] Preparing spawn area: 4%
    17:04:27 [INFO] AntiCreeper v2.0 - by Rothens
    17:04:27 [INFO] Anticreeper v2.0 - STARTED
    17:04:27 [INFO] Loading ColoredSigns
    17:04:27 [INFO] CommandSigns version1.1.0 is enabled.
    17:04:27 [INFO] [FalseBook Block] 3100 Books loaded!
    17:04:27 [INFO] FalseBookBlock v0.88alpha by GeMo enabled
    17:04:27 [INFO] [FalseBook Block] 2 Cauldrons successfully loaded.
    17:04:27 [INFO] FalseBookCart v0.88alpha by GeMo enabled
    17:04:27 [INFO] [FalseBook Chat] No ChatRooms loaded.
    17:04:27 [INFO] FalseBookChat v0.88alpha by GeMo enabled
    17:04:27 [INFO] [FalseBook Core] FalseBookCore v0.88alpha by GeMo enabled!
    17:04:27 [INFO] FalseBookExtra v0.88alpha by GeMo enabled
    17:04:27 [SEVERE] [HELP] Error loading weclip.yml
    while scanning for the next token
    found character '\t' that cannot start any token
    in "<reader>", line 7, column 1:

    ^

    17:04:27 [WARNING] [HELP] Help entry node "expandvert" is missing a description
    in wesel.yml
    17:04:27 [INFO] [HELP] 165 extra help entries loaded from files: iconomy(10), co
    mmandsigns(9), weutil(15), lwc(26), wehistory(4), wesel(15), PermissionsBukkit(1
    6), wenav(8), iconomy_bankaccount(14), weregion(11), wegen(7), worldedit(17), we
    tool(13)
    17:04:27 [WARNING] [HELP] A permission plugin isn't loaded.
    17:04:27 [INFO] [HELP] 0.3.2 enabled
    17:04:27 [INFO] [iConomy - Celty] Enabled (43 ms)
    17:04:27 [INFO] [MobDisguise] by desmin88 version 1.63 enabled.
    17:04:27 [INFO] Permission system not detected, defaulting to OP
    17:04:27 [INFO] mobSpawner 1.7.3 enabled
    17:04:27 [INFO] [MotherNature] Neither Permissions or GroupManager found. Using
    ops.txt for permission handling
    17:04:27 [INFO] [MotherNature] Plugin enabled! (version 1.3.2)
    17:04:27 [INFO] [MyHome] 2 homes loaded
    17:04:27 [WARNING] [MyHome] A permission plugin isn't loaded.
    17:04:27 [INFO] [MyHome] Help plugin support enabled.
    17:04:27 [INFO] [MyHome] MyHome 2.0 enabled
    17:04:27 [INFO] [MyMessages] version 1.5 enabled.
    17:04:27 [INFO] [MyMessages] Made by redpois0n.
    17:04:27 [INFO] [MYWARP] [MYWARP]: 16 warps loaded
    17:04:27 [WARNING] [MYWARP] A permission plugin isn't loaded.
    17:04:27 [INFO] [MYWARP] Help plugin support enabled.
    17:04:27 [INFO] [MYWARP] MyWarp 2.0 enabled
    17:04:27 [INFO] PlgSetspawn version 5.0 is enabled!
    17:04:27 [INFO] [SignLift] Version 1.0 - Copyright 2011 - Shannon Wynter (http:/
    /fremnet.net) is enabled
    17:04:27 [INFO] SimpleGodMode is enabled now.
    17:04:27 [INFO] [Simple Prefix v1.0.1] Configuration Loaded.
    17:04:27 [INFO] [Simple Prefix v1.0.1] Plugin enabled!
    17:04:27 [INFO] WorldEdit 4.7 enabled.
    17:04:27 [INFO] WorldEdit: Using the Bukkit Permissions API.
    17:04:27 [INFO] PermissionsBukkit v1.2 is now enabled
    17:04:28 [INFO] [ChestShop] LWC version 3.53 loaded.
    17:04:28 [INFO] [ChestShop] version 3.24 initialized!
    17:04:28 [INFO] [ChestShop] iConomy 6 loaded.
    17:04:28 [INFO] LWC: Loaded 137 locale strings (0 overrides)
    17:04:28 [INFO] LWC: Permissions API: BukkitPermissions
    17:04:28 [INFO] LWC: Currency API: iConomy6Currency
    17:04:28 [INFO] LWC: Loading SQLite
    17:04:28 [INFO] LWC: Using: Native
    17:04:28 [INFO] LWC: Precached 106 protections.
    17:04:28 [INFO] LWC: At version: 3.53 (b294)
    17:04:28 [INFO] Version: 101
    17:04:28 [INFO] [NarrowtuxLib] v1.0.1 by [narrowtux] enabled.
    17:04:28 [INFO] [Showcase] Registered type [basic] (0 items loaded)
    17:04:28 [INFO] [Showcase] Registered type [finite] (0 items loaded)
    17:04:28 [INFO] [Showcase] Registered type [infinite] (11 items loaded)
    17:04:28 [INFO] [Showcase] Registered type [exchange] (0 items loaded)
    17:04:28 [INFO] [Showcase] Registered type [tutorial] (0 items loaded)
    17:04:28 [WARNING] Permissions not found! All Operations are allowed!
    17:04:28 [INFO] [Showcase] version 0.7.7.11 has been enabled.
    17:04:28 [SEVERE] Could not pass event PLUGIN_ENABLE to Register
    java.lang.IncompatibleClassChangeError: Expected static method com.nijikokun.reg
    ister.payment.Methods.hasMethod()Z
    at com.nijikokun.register.listeners.server.onPluginEnable(server.java:37
    )
    at org.bukkit.plugin.java.JavaPluginLoader$47.execute(JavaPluginLoader.j
    ava:585)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:339)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:964)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:280)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:171)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:154
    )
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    17:04:28 [INFO] Done (0.270s)! For help, type "help" or "?"
    >

    Plugin list:
    Show Spoiler

    AntiCreeper
    ChestShop
    ColoredSigns
    CommandSigns
    FalseBook (No IC's) - I think the problem lies here, because the problem began when i installed the plugin :3
    Help 3
    iConomy 6
    LWC
    MobDisguise
    mobSpawner
    MotherNature
    MyHome
    MyMessages
    MyWarp
    NarrowTuxLib (it came with something i think=
    Pail
    PermissionsBukkit
    PlgSetSpawn
    Register (came with iConomy or LWC)
    Showcase
    SignLift (removing it when i get falsebook to work)
    SimpleGodMode
    simpleprefix
    Spout
    WorldEdit


    --
    Regards,
    pandiZz
     
  24. Offline

    Sleaker

    Sorry, I don't do Register support. And this is the wrong thread for it anyway.
     
    Smex likes this.
  25. Offline

    Smex

    Hey, Im using Vault now and I have to say, it's so simple.
    It tooked me like less than 5 minutes to set it up.
    Great work, I will teach Phiwa on how to use it rightly.
    Btw: Is there a way how to delete the huge output on the server start
    when using vault, wouldn't it be better if you just print out plugins which it finds?
     
  26. Offline

    Phiwa

    Yeah, Smex will help me (if I don't manage to finish it on my own). :p
     
  27. Offline

    Reclof

    Hi,

    I have problems with Towyn, Register.jar and BOSEconomy. On my gaming server I use a Linux system (it is an root server). But on my test system (Windows 7) I have no problems.

    If I starting my server on Linux, i become errors like this:

    Code:
    2011-11-05 13:51:06 [SEVERE]  com.nijikokun.register.payment.Methods.setPreferred(Ljava/lang/String;)Z  initializing Register v1.5 (Is $
    java.lang.NoSuchMethodError: com.nijikokun.register.payment.Methods.setPreferred(Ljava/lang/String;)Z
            at com.nijikokun.register.Register.hasPreferred(Register.java:41)
            at com.nijikokun.register.Register.onLoad(Register.java:55)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:141)
            at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:114)
            at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:52)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:136)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    
    ... an lot more.

    On the Windows system it is clean without any error.

    Is there someone who can help?
     
  28. Offline

    DomovoiButler

    make your own register...xD...once i trusted other plugins like this but i dont want to say the name...and i just wasted my time cause some of the methods doesnt work...so i made my own
     
Thread Status:
Not open for further replies.

Share This Page