Development Assistance RespawnEvent is not being registered

Discussion in 'Plugin Help/Development/Requests' started by Tut, Mar 27, 2015.

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

    Tut

  2. Offline

    Tut

    Bump!
     
  3. Offline

    nverdier

    @Tut Well 'item' is probably null... Please post all code from all relevant classes.
     
  4. Offline

    Tut

    Why would the error occur if there is a null check?
     
  5. Offline

    TheDiamond06

    @Tut .... You can't just do ItemStack item;
    Hes right its obviously going to return null, you never declared what the ItemStack was. Do you want it to be dirt? Define what you want.
    You are testing if the item is not null, it obviously will be if you don't declare what it is beforehand.
     
  6. Offline

    Tut

    It's being defined in another class.
     
  7. Offline

    TheDiamond06

    @Tut Yes it is after you check if it is null. Define it before you check if it is null.
     
  8. Offline

    Tut

    Oh. Whoops. There we go. I'll ask if anything more goes to shit.
     
Thread Status:
Not open for further replies.

Share This Page