[MISC] Meals v2.0 - Region-Based Automatic Item Delivery (Like Food!) [803]

Discussion in 'Inactive/Unsupported Plugins' started by dv90, May 3, 2011.

  1. Offline


    Feed your players automatically!
    Credit to chernobyl360 for the idea.
    Now With Regions and Persistence!

    Download: v2.0_03 (new!)
    Requirements: Permissions

    This plugin is perfect for survival servers! Just create a region, then add some items (They don't have to be food either!) Set your meal times with a few simple commands and then invite people. When it's meal time, everybody get's fed automatically! You can even make private regions and add only your friends to it. Plus, add your friends as co-owners so they can help you out. Once you've added some items, set the region to random and everybody get's a random meal consisting of the items you added. The possibilities and uses are endless!​
    Default Times:
    • Breakfast - 6 (am)
    • Lunch - 12 (pm)
    • Dinner - 18 (6 pm)
    • Supports full featured regions
    • Create/Delete regions
    • Add/Remove items to/from regions
    • Add/Remove players to/from regions (owners)
    • Individual meal times for each region (See defaults above)
    • Private, Random, and Server-wide regions
    • Full Permissions support
    • No more config!
    • Saves and loads regions after restarts/reloads!
    /meals region create - Create a region
    /meals region delete - Delete a region
    /meals region radius [#] - Sets the region's radius size
    /meals region breakfast|lunch|dinner [hour] - Sets the meal time
    /meals region add - Adds the item you're holding to the region
    /meals region remove - Removes the current item
    /meals region users add [username] (owner) - Adds the user (As owner if specified)
    /meals region users remove [username] - Removes the user
    /meals region random - Toggles random mode
    /meals region private - Toggles private mode
    /meals region serverwide - Toggles server-wide mode (Need special permission)
    Setup Simple Breakfast/Lunch/Dinner for Entire Server (open)

    1. /meals region create
    2. Select a type of food you want to give out
    3. /meals region add
    4. Repeat steps 2-3 with every type of food you want
    5. /meals region serverwide
    6. /meals region random
    Now every morning, noon, and night, players will receive random meals consisting of whatever items you added.

    • meals.region.create - Create regions
    • meals.region.edit - Edit existing regions that belong to the user
    • meals.region.admin - Edit any region and create server-wide regions
    • meals.use - Receive food while in region
    Common Food Items:
    • Apple - 260
    • Mushroom Soup - 282
    • Raw Porkchop - 319
    • Cooked Porkchop - 320
    • Raw Fish - 349
    • Cooked Fish - 350
    • Cake - 354
    • Cookie - 357
    v2.0_01-03 (Current)

    • Fixed some bugs
    • Completely rewrote plugin for region-based functionality
    • Added "random" functionality.
    • Initial release
    jamescosten and chernobyl360 like this.
  2. Offline


    Feature for area specific please. So only people within a certain area can get the food.
  3. Offline


    I agree, like having them go home to eat their meal.
  4. Offline


    Seems like a useful plug-in for some servers! I like the little common food list in the thread, it's a nice touch. =)
    dv90 likes this.
  5. Offline


    • Radius around an object as the zone (mark a block by hitting it with the food you want spawned)
    • Permission support (use, ignore zones)
  6. Offline


    Alright, I'll look into that. Should have an update out within 48 hours.
  7. Offline


    Also, you should make it serve different food according to the time of the day. Noone wants to eat the same meal all day long! Example: Cookies for breakfast, mushroom stew for lunch and cooked porkchop for dinner.
  8. Offline


    If you use the random option, everybody will get something different every time.

    I'm working on converting the plugin to regions. Here's how it will work:

    If you have the permission "meals.create" you'll be able to use the "/meals region create" command and create a 10x10x10 default region. You can then do "/meals region add" ("meals.edit") to add the item you're holding to the list of items in that region. Then to set the times you would do, "/meals region breakfast 6". The plugin will constantly check each region to see if it's mealtime. If so, every player (that has "meals.use") receives a meal based on the items added to the region. If you want randomly generated meals, you just add all the different items you want, like normal. Then, type "/meals region random". You'll also be able to define a private region with "/meals region private". Then you can use "/meals region users add [username]" to add a user to the region, then only those users will receive meals.

    If you have any suggestions/requests, feel free to let me know.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 14, 2016
  9. Offline


    Honestly, this is far more useful than the name "Meals" indicates.

    I've configured it to pass out TNT and coal once a day rather than food. Quite useful!
  10. Offline


    Haha I was waiting for somebody to do that. I knew eventually people would figure that out.
  11. Offline


    The name "Dinner is served bitches!" fits this addon better! xD
    Mafidog, jamescosten and dv90 like this.
  12. Offline


    Like some prison canteen officer.

    I like this a lot, i run a survival server and this will add some realism to it.
  13. Offline


    The major update is out. Check it out :)
  14. Offline


    Is or make the message configurable so this can be used for, say, daily currency distribution?

    Is it possible to give a quantity of an item, and multiple entries of that item with different quantities so the quantity is randomized as well?
  15. Offline


    I have that planned for the next update.

    Just add the item multiple times. If the region is set to random, it will give you a random one for however many items you added. If not, it will give you all of the items. I'll also be making the quantity randomized in the next update. (Eg. If you add one item, it will give you 1-1 of that item, if you add 3 items, it will give you 1-3 random items from the added ones)
  16. Offline


    Someone there wanna help me? :i
  17. Offline


  18. Offline


    Wow this plugin Really took off! This Is Amazing What your adding to this! keep up the work :D
    dv90 likes this.
  19. Offline


    Just need help with the set up in game
  20. Offline


    The zones thing about serving meals can be pretty useful for RPG servers. Imagine wandering in the wastelands of a post-apocalyptic world, and then, tired and with low health, you return back to the safetiness of your city to have a meal! Sweet!
    dv90 likes this.
  21. Offline


    With the region you should make a region selection tol and make it work like cuboid because some areas are hard to make a region that would make this plugin perfect
  22. Offline


    A tutorial would be usefull.
  23. Offline


    I thought about that. Maybe in a future update.

    It's pretty self explanatory but I'll put some basic examples in my first post.
  24. Offline

    Justin Hawtree

    when i do /meals region radius 5 nuthing happens and i dont get a error in the console.
  25. Offline


    Sorry about that. Grab the latest update; it should work now.
  26. Offline

    Justin Hawtree

    THANK YOU SIR needed it ^^

    Request: Could you add a option just for time intervals like the items spawn every 2 mins or something like that?

    Also you forgot to add meals.use to the permissions node in the first post ^^

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 14, 2016
  27. Offline


    Thanks for catching that. And yeah, I have that planned.
  28. Offline


    Yes Please. that would be very useful, Why would you want reality in a game, when you can just have Reality,
    but for the reality games lovers, make it an option, like [breakfast,luch,dinner] or [intervals]
  29. Offline


    Yep, it'll be in the next update.

    Sorry about not getting it out soon, it's just been a busy week and I've had a ton of stress. I'll try to get an update out within the next week or so. If you have any more ideas/suggestions/requests, tell me now so I have time to add them in!
  30. Offline


    you should make this work with iconomy so they have to pay and let everyone choose if they want to pay

Share This Page