Quick soup

Discussion in 'Archived: Plugin Requests' started by mastermustard, Feb 15, 2014.

  1. Offline

    mastermustard

    I simply don't have enough time to finish this. I want it to add 3 hearts after eating soup if food bar is full (or filled by that soup). No commands or perms needed here's the code that I've started if you want to use it, it's up to you. If you can finish it by late Sunday it'd be great but not trying to rush.
    Code:java
    1. public final Logger logger = Logger.getLogger("Minecraft");
    2. @Override
    3. public void onDisable() {
    4. logger.info("QuickSoup has been disabled");
    5. }
    6.  
    7. @Override
    8. public void onEnable() {
    9. logger.info("QuickSoup has been enabled");
    10. PluginManager pm = getServer().getPluginManager();
    11. pm.registerEvents((Listener) this, this);
    12. }
    13.  
    14. public void EatEvent(PlayerItemConsumeEvent event){
    15. Player player = event.getPlayer();
    16.  
    17. if(player.getItemInHand().getType() instanceof ){ //Add in the MUSHROOM_SOUP here
    18.  
    19. }
    20. }
     
  2. Offline

    timtower Administrator Administrator Moderator

    Last edited by a moderator: Jun 6, 2016
    jacklin213 likes this.
  3. Offline

    mastermustard

    I noticed the code was wrong just before you posted. I attempted this past midnight and stopped because I had other things to do with my server before release. Thanks.
     
    timtower likes this.

Share This Page