Merge branch 'master' into dev
This commit is contained in:
commit
8e0c9aee38
@ -847,7 +847,7 @@ implements Listener
|
|||||||
@EventHandler
|
@EventHandler
|
||||||
public void onPlayerItemConsume(PlayerItemConsumeEvent e) {
|
public void onPlayerItemConsume(PlayerItemConsumeEvent e) {
|
||||||
Player p = e.getPlayer();
|
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.SATURATION, 18000, 0), true);
|
||||||
p.addPotionEffect(new PotionEffect(PotionEffectType.HEALTH_BOOST, 18000, 4), true);
|
p.addPotionEffect(new PotionEffect(PotionEffectType.HEALTH_BOOST, 18000, 4), true);
|
||||||
p.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 18000, 2), true);
|
p.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 18000, 2), true);
|
||||||
|
@ -49,6 +49,7 @@ import sig.ItemSets.DiabloDropsHook;
|
|||||||
import sig.ItemSets.DiabloDropsHook.Tier;
|
import sig.ItemSets.DiabloDropsHook.Tier;
|
||||||
|
|
||||||
import sig.ItemSets.DiabloDropsHook;
|
import sig.ItemSets.DiabloDropsHook;
|
||||||
|
import sig.ItemSets.DiabloDropsHook.Tier;
|
||||||
|
|
||||||
import com.sk89q.worldedit.CuboidClipboard;
|
import com.sk89q.worldedit.CuboidClipboard;
|
||||||
import com.sk89q.worldedit.EditSession;
|
import com.sk89q.worldedit.EditSession;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user