mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-25 10:14:43 +02:00
Fix breeding sending incorrect messages
This commit is contained in:
@ -744,14 +744,17 @@ public class EntityListener implements Listener {
|
||||
Animals mom = (Animals) event.getMother();
|
||||
Animals father = (Animals) event.getFather();
|
||||
|
||||
//Prevent love mode spam
|
||||
mom.setLoveModeTicks(0);
|
||||
father.setLoveModeTicks(0);
|
||||
|
||||
//Inform the player
|
||||
if(event.getBreeder() instanceof Player) {
|
||||
Player player = (Player) event.getBreeder();
|
||||
NotificationManager.sendPlayerInformationChatOnly(player, "Taming.Summon.COTW.BreedingDisallowed");
|
||||
}
|
||||
}
|
||||
|
||||
if(event.getBreeder() instanceof Player) {
|
||||
Player player = (Player) event.getBreeder();
|
||||
NotificationManager.sendPlayerInformationChatOnly(player, "Taming.Summon.COTW.BreedingDisallowed");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -616,14 +616,11 @@ permissions:
|
||||
children:
|
||||
mcmmo.ability.taming.callofthewild.horse: true
|
||||
mcmmo.ability.taming.callofthewild.ocelot: true
|
||||
mcmmo.ability.taming.callofthewild.renamepets: true
|
||||
mcmmo.ability.taming.callofthewild.wolf: true
|
||||
mcmmo.ability.taming.callofthewild.horse:
|
||||
description: Allows players to summon Horses with Call of the Wild
|
||||
mcmmo.ability.taming.callofthewild.ocelot:
|
||||
description: Allows players to summon Ocelots with Call of the Wild
|
||||
mcmmo.ability.taming.callofthewild.renamepets:
|
||||
description: Allows players to rename pets with Call of the Wild
|
||||
mcmmo.ability.taming.callofthewild.wolf:
|
||||
description: Allows players to summon Wolves with Call of the Wild
|
||||
mcmmo.ability.taming.environmentallyaware:
|
||||
|
Reference in New Issue
Block a user