mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-28 13:45:32 +01:00
Correct translation of Zombie Pigman
This commit is contained in:
parent
88e8abcead
commit
fcda4d45e9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user