Solved Can't spawn a wolf?

Discussion in 'Plugin Development' started by Blackwing_Forged, Jan 14, 2018.

Thread Status:
Not open for further replies.
  1. I have no idea what im doing wrong, this should work and i don't know why it doesn't. There are no console errors, i have the command registered, and i get the message "Summoned" but no wolf appears, if anyone can help that'd be great.


    Code:
    if(args[0].equalsIgnoreCase("wolf"))
    {
               Wolf wolf = (Wolf) p.getWorld().spawnEntity(p.getLocation(), EntityType.WOLF);
                wolf.setOwner(p);
               wolf.setCollarColor(DyeColor.RED);
                p.sendMessage("Summoned");
    }
    EDIT: Im just stupid and forgot i had world guard spawn mobs to false :/
     
    Last edited: Jan 14, 2018
Thread Status:
Not open for further replies.

Share This Page