Correct translation of Zombie Pigman

This commit is contained in:
PikaMug 2019-08-16 23:40:19 -04:00
parent 88e8abcead
commit fcda4d45e9

View File

@ -249,9 +249,13 @@ public class LocaleQuery {
} else {
key = oldEntities.get(type.name());
}
} else {
if (type.name().equals("PIG_ZOMBIE")) {
key = "entity.minecraft.zombie_pigman";
} else {
key = "entity.minecraft." + type.toString().toLowerCase();
}
}
String msg = message.replace("<mob>", "\",{\"translate\":\"" + key + "\"},\"");
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "tellraw " + player.getName() + " [\"" + msg + "\"]");
return true;