Skip to content

Commit

Permalink
Minor adjustment to ride listener
Browse files Browse the repository at this point in the history
  • Loading branch information
WizardCM committed Nov 12, 2023
1 parent d9c2704 commit e4fd32f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/me/damo1995/AnimalProtect/RideListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public RideListener(AnimalProtect I) {
}

@EventHandler(priority = EventPriority.LOWEST)
public void onRideEvent1(PlayerInteractEntityEvent event) {
public void onRideEvent(PlayerInteractEntityEvent event) {
if (plugin.getConfig().getBoolean("horse-rideprotect") == true) {
Player p = event.getPlayer();
Entity e = event.getRightClicked();
Expand Down Expand Up @@ -49,8 +49,8 @@ public void notifyAdmin(Player player) {
for (Player onlinePlayer : Bukkit.getServer().getOnlinePlayers()) {
if (!onlinePlayer.hasPermission("animalprotect.notify") && !onlinePlayer.isOp())
continue;
onlinePlayer.sendMessage(ChatColor.RED + player.getName() + " " + plugin.failMsg);
NewDamageListeners.plugin.logMessage(player.getName() + " " + plugin.failMsg);
onlinePlayer.sendMessage(ChatColor.RED + player.getName() + " " + plugin.ridemsg);
NewDamageListeners.plugin.logMessage(player.getName() + " " + plugin.ridemsg);
}
}
}
Expand Down

0 comments on commit e4fd32f

Please sign in to comment.