event.getEntity() instanceof - Not Working

Discussion in 'Plugin Development' started by Justin Quach, Jun 3, 2012.

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

    Justin Quach

    event.getEntity() instanceof Wolf
    or any other sort of entity, like a Creeper.

    It tells me that it cannot find the symbol.

    Here's a snippet:
    public void onEntityDamage(EntityDamageEvent event) {
    if (event.getEntity() instanceof Wolf) {
    }
    }

    Not working. :/

    Nevermind, missed an import :'(
    i'm so bad at Java.

    Edit: If anyone has time, can someone add me on Skype or TeamSpeak and help me out? :D

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 26, 2016
  2. Offline

    caldabeast

    I'm not very advanced at coding, but I know enough to help you out with basic stuff. I would send you a request on Skype, but you didn't include your Skype name and there are a whole bunch of "Justin Quach"es. I PM'd you my Skype name.
     
Thread Status:
Not open for further replies.

Share This Page