Grappler Kit, FishingHook Error

Discussion in 'Spigot Plugin Development' started by GamerNock_, Apr 28, 2017.

  1. I have no idea how to do this! And I researched and found a code
    But it is in error and I do not know how to solve it, I used pastebin because the code is a little big, I will be grateful if someone can help me

    FishingHook class
    https://pastebin.com/Y6fgyEw3

    Grappler class
    https://pastebin.com/t9ZSLwEg

    Error
    [​IMG]
     
  2. What's on line 34 of copyoffishinghook.java?


    Sent from my iPhone using Tapatalk
     
  3. Code (Text):
    31    public void h() {
    32        if (!this.lastControllerDead && this.controller.dead) {
    33            ((Player)this.owner.getBukkitEntity()).sendMessage(ChatColor.GREEN + "You are now hooked!");
    34        }
    35        this.lastControllerDead = this.controller.dead;
    36        for (final Entity entity : this.controller.world.getWorld().getEntities()) {
    37            if (!(entity instanceof Firework) && entity.getEntityId() != this.getBukkitEntity().getEn
    It's a nonsensical thing
     
  4. Not possible. Update your Plugin.. A bracket can't throw a NPE.
     
  5. Unlikely that looks like something decompiled or mildly obfuscated with the letter method names


    Sent from my iPhone using Tapatalk