Skip to content

Commit

Permalink
refactor: Rename FoodLevelChangeListener to EatListener
Browse files Browse the repository at this point in the history
  • Loading branch information
SeriousGuy888 committed Feb 1, 2024
1 parent 10daa58 commit e5d23c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e5d23c2

Please sign in to comment.