java.lang.NullPointerException bukkit repeatable

Discussion in 'Plugin Development' started by MRANDOM, Nov 8, 2020.

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

    MRANDOM

    at me.MRANDOM.mobhunt.commands.OnGoal.ongoal(OnGoal.java:26) ~[?:?]

    OnGoal.java:26 :

    BukkitScheduler sched = plugin.getServer().getScheduler();

    ive searched far and wide (approximately 40 threads) for the java nullPointer bla bla with a bukkit repeatable
    and only one person had it but its because he put code before on enable. this is not the case and it is off of a command. kinda useless info but yeah here it is
     
  2. Offline

    timtower Administrator Administrator Moderator

    Please post development questions in plugin development.
    And plugin is null.
     
  3. Offline

    MRANDOM

    timtower

    ok so i fixed plugin being null but now List<Entity> nearby = stande1.getNearbyEntities(radius, radius, radius);

    is throwing the same error and i have a filter for it being null if(nearby != null)
     
  4. Offline

    The_Spaceman

    is it possible that 'stande1' is null?
     
  5. Offline

    MRANDOM

    @The_Spaceman

    yep that's the problem, thanks. edit: interesting how that's the problem because it's not null and I can use it in a different class.

    so with that said, how would I change features of an entity in a different class

    edit 2: Fixed it, tried doing something dum like creating a public stande then using that stande instead of a different one which was obviously null
     
    Last edited by a moderator: Nov 8, 2020
Thread Status:
Not open for further replies.

Share This Page