CookMe - 'Cause raw food ain't good Version: v1.7.2 BukkitDev: Click! Description This plugin adds some realism and fun to your gameplay! If you try to eat raw food a random effect will appear (controlled by percentages). Comes with a config, permissions & commands. Only effects raw food! Affects now every configured food tem! Demonstration (Video and Presentation) Video of the presentation can be found here! Features Control now the percentages! 0.00% means disabled! With a percentage of 8.0% one of these effects will occur when you eat raw (or other) food You will get some random damage You will get poisoned (like a Cave Spider bite) Your foodbar will get poisoned Your hunger increases (the bar decreases ) You will get confused (portal effect) You will get weak (not as powerful as before) You will get blind (black fog/smoke around your head) You will mine slower You will get slower (movement) Magic damage (random damage) Refusing of raw food The poison of the wither occurs With a percentage of 4.0% this effect will occur DEATH Additionally Permissions & Commands for an easy administration Control the time of an effect! And a cooldown, too! Disable vanilla poison of RottenFlesh and raw chicken This plugin sends usage statistics! If you wish to disable the usage stats, look at /plugins/PluginMetrics/config.yml! Config Code: # For help please refer to http://bit.ly/cookmebukkitdev or http://bit.ly/cookmebukkit configuration: # Should permissions be used? permissions: true # Display a message when eating? messages: true # The minimum and maximum duration of the effect in seconds duration: min: 15 max: 30 # Cooldown in seconds, how long the player is safe before the next effect happens. cooldown: 30 # Should /cookme debug be enabled (modifies the food level) debug: false # Should the vanilla poison from raw chicken and rotten flesh be prevented if the player has the permission cookme.safe preventVanillaPoison: false # The percentage for each effect. Make sure all together are exactly 100! 0 means disabled! effects: damage: 8.0 death: 4.0 venom: 8.0 hungervenom: 8.0 hungerdecrease: 8.0 confusion: 8.0 blindness: 8.0 weakness: 8.0 slowness: 8.0 slowness_blocks: 8.0 instant_damage: 8.0 refusing: 8.0 wither: 8.0 # Add your own stuff here, IDs are supported, too! food: - RAW_BEEF - RAW_CHICKEN - RAW_FISH - PORK - ROTTEN_FLESH Commands & Permissions Only the bukkit permissions are supported! I highly recommend that you use a plugin for permissions like bPermissions! If the config value permission is set to false, all people can use the commands! If no permission system is found, all commands are for OPs only! (as long as permissions is set to true) Of course the console can use the commands, too! Node: cookme.safe Description: No effects will appear, if a player has got this permission /cookme reload Node: cookme.reload Description: Reloads the config /cookme help Node: cookme.help Description: Displays the help /cookme set <effect> <percentage> Node: cookme.set.<effect> Description: Sets the percentage for the specified effect /cookme enable permissions Node: cookme.enable.permissions Description: Enables the permissions! (Only OPs or player with the permission can use a specific command) /cookme enable messages Node: cookme.enable.messages Description: Enables the messages! /cookme disable permissions Node: cookme.disable.permissions Description: Disables the permissions! ALL players can use the commands! /cookme disable messages Node: cookme.disable.messages Description: Disables the messages! /cookme set cooldown <value> Node: cookme.cooldown Description: Sets the cooldown value in seconds /cookme set duration min <value> Node: cookme.duration Description: Sets the minimum duration value in seconds /cookme set duration max <value> Node: cookme.duration Description: Sets the maximum duration value in seconds /cookme debug Description: If debug is enabled, reduces food level for testing usage Of course you can use something like cookme.* or cookme.enable.* Download/Source Code/Dev Builds (Latest recommend version on Dropbox) - - Download (tracked via bit.ly) |||| Download (direct) (Latest dev builds/bleeding edge builds) - - Dev builds from Jenkins (tracked via bit.ly) |||| Dev builds from Jenkins (direct) (Source code hosted on Github) - - Source Code (tracked via bit.ly) |||| Source Code (direct) Future Plans (a.k.a. ToDo) add some new "effects" in 1.0 Done change code, after 1.0 recommend build is released (won't effect the user) Done maybe make the effects controllable with percentage by the user Done Make sure to take a look at the always up to date ToDo! Known Bugs None at the moment! If you want a better solution than the right click, support this issue: PlayerEatEvent #280 Added/Changed in 1.7 Changelog Version 1.7.2 Cleanup and optimizations Build against Bukkit 1.5.2 Added option to disable vanilla poison Version 1.7.1 Fixed error when food level was 0 Version 1.7 Use the new PlayerItemConsumeEvent Overall cleanup and speed improvement Use Sun coding conventions Added debug mode to modify the food level (/cookme debug, config value) NEEDS AT LEAST BUILD #2636 Improved the material check of the items Version 1.6 Compiled against latest 1.4 builds Small changes like logging Added wither effect (similar to poison) Version 1.5 Added support if IDs in the item list Optimized the code CooldownManager improved Prints the wrong item in the list Cleanup! Version 1.4.1 Metrics updated Code improvements at the commands and CooldownManager Fixed percentage calculation Version 1.4 Added percentage of effects (0.00% -> disabled!) Redesigned commands and permissions (stated above) Improvement here and there Version 1.3.1 Added effect refusing Uses now bukkit standard Version 1.3 Added cooldown Added localization Added (optional) check for block like chests, workbench etc. New effect: magic damage (similar to random damage) New commands & permissions Improvements Version 1.2 Control which items should be affected (even non food!) Fixed NPE Changed again the stats system! Added method to set the duration of an effect Version 1.1 Added new effects (5 more!) Version 1.0.1 Added a new stats system Fixed config bug - works above builds #1395 Version 1.0 initial release Credits @nisovin for his awesome code for effects Thanks to MatthewEnderle for the improved logo on the bukkit-dev site! Banner Feel free to use this banner!! Statistics (from MCStats) Donations I worked really hard on this plugin and I'm very happy about any donation. Support me & buy me some beer, this makes me happy and keeps me interested in this plugin. License This plugin is released under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0) license!