Update For servers where paper-api is not available(ex. spigot server), NBTAPI plugin is required. - This is an important update - The plugin code has been rewritten.
- Delete or backup the previous config.yml, customfood.yml, message.yml and then create a new one.
- Configuration in config.yml has changed to be easier to use than before.
- Previous /hunger, /saturation commands changed to /consumefood hunger, /consumefood saturation
- Added '/consumefood customhunger' command
- Support for placeholders in commands and messages
- If the PlaceholderApi plugin is on the server, you can use %consumefood_foodlevel% and %consuemfood_max_foodlevel%
# Changing this doesn't change the hunger bar. # If 'Enabled-CustomFoodLevel' is true, can change the player's max foodlevel. # Available placeholder = [ %consumefood_foodlevel%, %consumefood_max_foodlevel% ] # # If 'Sync-CustomFoodLevel' is true, the player's foodlevel and custom foodlevel will be synchronized. ('Sync-CustomFoodLevel' recommends true) # For example, if the custom foodlevel is 10/40(value/max), the player's foodlevel will be 5 | 15/40 = 8 # # 'Sprint-FoodLevel' is the minimum foodlevel at which the player can run. # 'Sprint-FoodLevel' is applied only when 'Sync-CustomFoodLevel' is true. CustomSetting:
Enabled-CustomFoodLevel: true
Sync-CustomFoodLevel: true
Max-FoodLevel: 20
Max-Saturation: 10
Sprint-FoodLevel: 6
# If 'Max-Consumable' is true, the player can eat food even if the player's hunger bar is full.. # But this doesn't play the food eating animation. Max-Consumable:
Enabled: false
# Available Type values: [global, personal, disable] # If Type is global, all food cooldown is applied as global_cooldown value # If Type is personal, the cooldown is applied for each food # If Type is disable, cooldown is disabled Cooldown-Setting:
Type: 'disable'
Global_Cooldown: 3
#If you don't need a message, leave a blank. Placeholders are available (ex. %player_name%) Customfood-GlobalCooldown: "Time left: <customfood_global_timeleft>" Customfood-PersonalCooldown: "<customfood_name> &fTime left: <customfood_personal_timeleft>" VanillaFood-GlobalCooldown: "Time left: <vanilla_global_timeleft>" VanillaFood-PersonalCooldown: "<food_name> Time left: <vanilla_personal_timeleft>" Max-foodlevel: "&aFood level reached the maximum value of <max_foodlevel>." Max-saturation: "&aSaturation reached the maximum value of <max_saturation>."