Could not pass event

Discussion in 'Plugin Development' started by fussionzz97, Mar 12, 2014.

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

    fussionzz97

  2. Offline

    Assult

    You never initiated your plugin variable, it's null.

    Since you are in the main class that extends JavaPlugin you don't have to call "plugin.getConfig()", You can just call "getConfig()" since it is a part of JavaPlugin.java (wich your class extends). If you still don't understand, then please learn java before you start with bukkit. It will save you from alot of failure
     
  3. Offline

    staniboy

    Have same problem...need help, explanation :D
     
  4. Offline

    97WaterPolo

    fussionzz97
    Also, we need to see the SpawnerCreatures class, the stacktrace says the event exception was at

    Code:
     at net.minecraft.server.v1_7_R1.SpawnerCreature.spawnEntities(SpawnerCreature.java:161) 
    staniboy
    What part? Explain your problem, what is the same?
     
  5. Offline

    staniboy

    Thank you for your reply I got it fixed by referring Main class in listener's constructor...But now I have another problem...If you could take a look at the main post...many thanks! Here is the post
    http://forums.bukkit.org/threads/set-entity-metadata.243560/
    I am trying to do the same thing this gentlemen is trying to do... For that matter I need to master metadata :D

    Basically I'm trying to edit metadata of newly spawned entities. In my case it is SkeletonType of Skeleton Entity

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 7, 2016
Thread Status:
Not open for further replies.

Share This Page