[READ ME] For everyone asking questions on here.

Discussion in 'Spigot Plugin Development' started by SubSide, Jun 20, 2015.

  1. You sir, have just done the forum a favour. I take my hat off to you :cool::):D
     
  2. i need help i have Problem

    if (e.getCurrentItem().getItemMeta().getDisplayName().contains("Sheep")) {
    if(e.getWhoClicked().hasPermission("Spawning.V")){
    e.setCancelled(true);
    Spawning(e.getWhoClicked());
    e.getWhoClicked().sendMessage(ChatColor.GREEN+"Spawning Sheep");
    e.getWhoClicked().closeInventory();
    }else{
    e.setCancelled(true);
    e.getWhoClicked().closeInventory();
    e.getWhoClicked().sendMessage(ChatColor.RED+"You Don't have Premssion !!");
    }

    }
    if (e.getCurrentItem().getItemMeta().getDisplayName().contains("Cow")) {
    if(e.getWhoClicked().hasPermission("Spawning.C")){
    e.setCancelled(true);
    CowSp(e.getWhoClicked());
    e.getWhoClicked().sendMessage(ChatColor.GREEN+"Spawning Cow");
    e.getWhoClicked().closeInventory();
    e.getWhoClicked().getWorld().setTicksPerAnimalSpawns(0);



    }else{
    e.setCancelled(true);
    e.getWhoClicked().closeInventory();
    e.getWhoClicked().sendMessage(ChatColor.RED+"You Don't have Premssion !!");
    }

    }
    if (e.getCurrentItem().getItemMeta().getDisplayName().contains("Pig")) {
    if(e.getWhoClicked().hasPermission("Spawning.Ce")){
    e.setCancelled(true);
    CeeSp(e.getWhoClicked());
    e.getWhoClicked().sendMessage(ChatColor.GREEN+"Spawning Pig");
    e.getWhoClicked().closeInventory();
    }else{
    e.setCancelled(true);
    e.getWhoClicked().closeInventory();
    e.getWhoClicked().sendMessage(ChatColor.RED+"You Don't have Premssion !!");
    }

    }

    this my code i want to click pig remove cow and spawn pig !! i need help pls !!
     
    • Funny Funny x 4
  3. no
     
    • Agree Agree x 3
  4. Wath no ?
     
  5. This isn't the place to ask. Create a thread here: https://www.spigotmc.org/forums/spigot-plugin-development.52/
    With a good title and explain what you need help with.
    It might also be a good idea to put that in using the code option inside of a spoiler!

    Hope you find your answer soon :)
     
  6. k i will create a thread Ty
     
  7. I don't really understand the need to bump a stickied thread, but ok xd
     
  8. Thats cuz im crazy.
     
    • Informative Informative x 1
  9. Very helpful post. Thanks :)
     
  10. How I start a kingdom plugin
     
  11. good Post. Agree.
     
  12. If everyone followed this, it would make our lives soooooo much easier
     
  13. Such a pity that 90% of the people asking help ignore stickied threads...
     
  14. If everyone would read this thread..
     

Share This Page