diff --git a/src/main/java/io/github/seriousguy888/billzovillagers/BillzoVillagers.java b/src/main/java/io/github/seriousguy888/billzovillagers/BillzoVillagers.java index 0703695..9101502 100644 --- a/src/main/java/io/github/seriousguy888/billzovillagers/BillzoVillagers.java +++ b/src/main/java/io/github/seriousguy888/billzovillagers/BillzoVillagers.java @@ -79,7 +79,7 @@ private void registerListeners() { pluginManager.registerEvents(new EntityBreedListener(), this); pluginManager.registerEvents(new VillagerMeatListener(), this); pluginManager.registerEvents(new DeathMessageListener(), this); - pluginManager.registerEvents(new FoodLevelChangeListener(), this); + pluginManager.registerEvents(new EatListener(), this); pluginManager.registerEvents(new JoinLeaveListener(), this); pluginManager.registerEvents(new LeashingListener(), this); pluginManager.registerEvents(new PlayerJoinListener(this), this); diff --git a/src/main/java/io/github/seriousguy888/billzovillagers/listeners/FoodLevelChangeListener.java b/src/main/java/io/github/seriousguy888/billzovillagers/listeners/EatListener.java similarity index 90% rename from src/main/java/io/github/seriousguy888/billzovillagers/listeners/FoodLevelChangeListener.java rename to src/main/java/io/github/seriousguy888/billzovillagers/listeners/EatListener.java index 2b95270..f203d3a 100644 --- a/src/main/java/io/github/seriousguy888/billzovillagers/listeners/FoodLevelChangeListener.java +++ b/src/main/java/io/github/seriousguy888/billzovillagers/listeners/EatListener.java @@ -6,11 +6,10 @@ import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; -import org.bukkit.event.entity.FoodLevelChangeEvent; import org.bukkit.event.player.PlayerItemConsumeEvent; import org.bukkit.inventory.ItemStack; -public class FoodLevelChangeListener implements Listener { +public class EatListener implements Listener { @EventHandler public void onFoodLevelChange(PlayerItemConsumeEvent event) { MainConfig mainConfig = BillzoVillagers.getPlugin().getMainConfig();