|
@@ -99,16 +99,16 @@ public class Combat {
|
|
}
|
|
}
|
|
else if (itemInHand.getType().equals(Material.BONE) && mcPermissions.getInstance().taming(attacker) && targetType.equals(EntityType.WOLF)) {
|
|
else if (itemInHand.getType().equals(Material.BONE) && mcPermissions.getInstance().taming(attacker) && targetType.equals(EntityType.WOLF)) {
|
|
Wolf wolf = (Wolf) target;
|
|
Wolf wolf = (Wolf) target;
|
|
- String message = "Combat.BeastLore" + " ";
|
|
|
|
|
|
+ String message = mcLocale.getString("Combat.BeastLore") + " ";
|
|
int health = wolf.getHealth();
|
|
int health = wolf.getHealth();
|
|
event.setCancelled(true);
|
|
event.setCancelled(true);
|
|
|
|
|
|
if (wolf.isTamed()) {
|
|
if (wolf.isTamed()) {
|
|
- message.concat(mcLocale.getString("Combat.BeastLoreOwner", new Object[] {Taming.getOwnerName(wolf)}) + " ");
|
|
|
|
- message.concat(mcLocale.getString("Combat.BeastLoreHealthWolfTamed", new Object[] {health}));
|
|
|
|
|
|
+ message = message.concat(mcLocale.getString("Combat.BeastLoreOwner", new Object[] {Taming.getOwnerName(wolf)}) + " ");
|
|
|
|
+ message = message.concat(mcLocale.getString("Combat.BeastLoreHealthWolfTamed", new Object[] {health}));
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
- message.concat(mcLocale.getString("Combat.BeastLoreHealthWolf", new Object[] {health}));
|
|
|
|
|
|
+ message = message.concat(mcLocale.getString("Combat.BeastLoreHealthWolf", new Object[] {health}));
|
|
}
|
|
}
|
|
|
|
|
|
attacker.sendMessage(message);
|
|
attacker.sendMessage(message);
|