eating the bowl

Discussion in 'Archived: Plugin Requests' started by ZakPvP, Mar 23, 2014.

  1. Offline

    ZakPvP

    When you eat a soup there's a 10% chance you'll also consume the bowl.
    config:
    ############################################################
    eat-bowl-msg: [Example]: While eating your soup you also consumed the bowl!
    ############################################################
     
  2. Offline

    unon1100

    Sure thing. Shouldn't take long. I'll also add a permission.
     
  3. Offline

    Benlewis9000

    unon1100
    Just out of interest, how did you/are you going to go about this? I was going to try but I couldn't figure out how to register that the bow was being eaten from, as there is no onPlayerEat event or whatever.
     
  4. Offline

    unon1100

    Benlewis9000 PlayerInteractEvent. Submitting my plugin to bukkit soon.
     
  5. Offline

    Samthelord1

    unon1100 bug test... Listening for interact won't work. Use playerconsume, check if it was soup, if so 10% chance of consuming bowl
     
    Benlewis9000 likes this.
  6. Offline

    snivell

    Out of curiosity, what is the point of this? xD
     
  7. Offline

    unon1100

    Samthelord1 PlayerConsume? There is no event for when a player eats something. What I'm going to do is reprogram the plugin though, to detect when the food level changes rather than using a PlayerInteract call.


    EDIT: Done with the plugin. BukkitDev is currently glitching (at least for me) and I can't create the bukkit project. I'll post it on the bukkit forums and link you to it instead.
     
  8. Offline

    Samthelord1

  9. Offline

    unon1100

  10. Offline

    Samthelord1

    unon1100 the community would appreciate it if you changed it to consume, would take about 10 minutes unless you're new?
     
  11. Offline

    unon1100

    Samthelord1 Nah, I could change it. I'm working on a separate plugin right now that broadcasts whenever a new song comes on in a specified plug.dj... So I'm a bit busy. I'll do that quick change soon, though
     

Share This Page