Changed Call of the Wild, newly summoned pet's will have a custom name

Closes #972
This commit is contained in:
TfT_02
2013-04-18 23:04:27 +02:00
parent d57c253b19
commit e831f0561a
4 changed files with 10 additions and 0 deletions

View File

@ -198,6 +198,11 @@ public class TamingManager extends SkillManager {
entity.setHealth(entity.getMaxHealth());
}
if (Permissions.renamePets(player)) {
entity.setCustomName(player.getName() + "\'s " + StringUtils.getPrettyEntityTypeString(entity.getType())); //TODO Localize, perhaps in a different language it makes more sense to switch this around
entity.setCustomNameVisible(true);
}
player.setItemInHand(new ItemStack(heldItem.getType(), heldItemAmount - summonAmount));
player.sendMessage(LocaleLoader.getString("Taming.Summon.Complete"));
}