[HELP] Need to spawn a egg!

Discussion in 'Plugin Development' started by beeDevop, Dec 15, 2014.

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

    beeDevop

    So i'm creating a random plugin, i'm starting on bukkit and i need to spawn a egg. Look at this:
    Code:
     if (cmd.getName().equalsIgnoreCase("luckyegg")){}
    p.sendMessage(ChatColor.YELLOW + "Chicken?");
    //I need to spawn a egg now, how???
     
  2. mine-care likes this.
  3. Offline

    beeDevop

    No.. Isn't that. I just would like to throw a egg, not to spawn a chicken or a monster egg.
     
  4. @beeDevop player.launchProjectile(Egg.class);
     
Thread Status:
Not open for further replies.

Share This Page