Custom Mobs?

Discussion in 'Plugin Development' started by stuntguy3000, Jan 31, 2014.

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

    stuntguy3000

    Hey,

    I am trying to update a certin plugin and this is what is happening to me: (All the code is there, scroll down) http://pastebin.com/RbCbVQXR
     
  2. Offline

    Iaccidentally

    When you catch any exception while using reflection, you get an InvocationTargetException, when the real cause is something else.
    (What it means is the method you invoked with reflection threw an exception, but you caught it)
     
  3. Offline

    stuntguy3000

    I believe the issue is that methods don't exist. I really don't know how to do this stuff so im stuck in the waters.
     
  4. Offline

    xTrollxDudex

    stuntguy3000
    Jacek's tutorial hasn't been updated to 1.7, and you have an IllegalArgumentException thrown by your main class in the onEnable.
     
  5. Offline

    Iaccidentally

    The methods not existing would throw a NoSuchMethodException. The method exists and is being called, but is throwing an exception.
     
  6. Offline

    stuntguy3000


    (The line) CustomEntityType.registerEntities();

    I didn't make this code, i am only trying to update it
     
  7. Offline

    xTrollxDudex

    stuntguy3000
    This is what you are invoking:
    PHP:
        private static void a(Class oclassString sint i) {
            if (
    c.containsKey(s)) {
                throw new 
    IllegalArgumentException("ID is already registered: " s);
            } else if (
    e.containsKey(Integer.valueOf(i))) {
                throw new 
    IllegalArgumentException("ID is already registered: " i);
            } else {
                
    c.put(soclass);
                
    d.put(oclasss);
                
    e.put(Integer.valueOf(i), oclass);
                
    f.put(oclassInteger.valueOf(i));
                
    g.put(sInteger.valueOf(i));
            }
        }
    Instead of updating the code, I suggest you look at an updated tutorial such as TeeePeee 's tutorial.
     
  8. Offline

    TeeePeee

Thread Status:
Not open for further replies.

Share This Page