e.getEntity() instanceof Player

Discussion in 'Plugin Development' started by ThatBox, Mar 24, 2012.

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

    ThatBox

  2. Offline

    Lolmewn

    The code is fine, the problem is here:
    Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
    at java.util.ArrayList.remove(Unknown Source)
    at net.arcation.devs.ac.tp.Queue.cancelTeleport(Queue.java:57)
     
  3. Offline

    Technius

    ThatBox
    What event is that? Or object. Can NMS classes be passed as event objects? More info needed.

    By the way, you owe me $21.
     
  4. Offline

    ThatBox

    Well i figured it out.
    if(e.getEntity() instanceof EntityPlayer) {

    }

    That fixed it.
     
Thread Status:
Not open for further replies.

Share This Page