Need Help With Small Bug... onPlayerFish Event.

Discussion in 'Plugin Development' started by bcohen9685, Aug 20, 2014.

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

    bcohen9685

    Hello! I am a new developer named Braden, and I have been working on my own KitPvP plugin for my soon to be server. I have setup all the kits (And they work perfectly with the given command) but my "onPlayerFish" event isn't working.

    My code:
    @EventHandler
    public void onPlayerFish(PlayerFishEvent event)
    {
    Player p = event.getPlayer();
    Entity e = event.getCaught();
    if (!p.hasPermission("fisherman.use")) {
    return;
    }
    Location loc = e.getLocation();
    p.teleport(loc);
    p.sendMessage(ChatColor.RED + "You Caught By" + ChatColor.BLUE + e.getName());

    Console:


    http://pastebin.com/74QMRuVw


    I know it's a simple error but could someone help?
     
  2. Offline

    Gerov

  3. Offline

    bcohen9685

    I tested the event on line 78.
     
  4. Offline

    JaguarJo

    Locked. These forums only support CraftBukkit servers. If you choose to use other server software, then please seek support from the makers of that software.
     
    yewtree8 likes this.
Thread Status:
Not open for further replies.

Share This Page