From 191c2c183f3bc76f97fdff88f20d7cf303089d5b Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Wed, 27 Nov 2013 14:14:51 -0700 Subject: [PATCH] Add a Thanksgiving check for eating cooked chicken. --- BankEconomyMod/src/me/kaZep/Base/PlayerListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BankEconomyMod/src/me/kaZep/Base/PlayerListener.java b/BankEconomyMod/src/me/kaZep/Base/PlayerListener.java index 7de3af4..b630f08 100644 --- a/BankEconomyMod/src/me/kaZep/Base/PlayerListener.java +++ b/BankEconomyMod/src/me/kaZep/Base/PlayerListener.java @@ -845,7 +845,7 @@ implements Listener @EventHandler public void onPlayerItemConsume(PlayerItemConsumeEvent e) { Player p = e.getPlayer(); - if (e.getItem().getType() == Material.COOKED_CHICKEN) { + if (e.getItem().getType() == Material.COOKED_CHICKEN && this.plugin.getConfig().getBoolean("thanksgiving-enabled")) { p.addPotionEffect(new PotionEffect(PotionEffectType.SATURATION, 18000, 0), true); p.addPotionEffect(new PotionEffect(PotionEffectType.HEALTH_BOOST, 18000, 4), true); p.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 18000, 2), true);