Make /npc tphere include the coordinates it was teleported to

This commit is contained in:
fullwall 2020-07-22 00:54:49 +08:00
parent be592d1f54
commit 5907c1c8b2
2 changed files with 3 additions and 2 deletions

View File

@ -2157,7 +2157,8 @@ public class NPCCommands {
} else {
npc.teleport(args.getSenderLocation(), TeleportCause.COMMAND);
}
Messaging.sendTr(sender, Messages.NPC_TELEPORTED, npc.getName());
Messaging.sendTr(sender, Messages.NPC_TELEPORTED, npc.getName(),
Util.prettyPrintLocation(args.getSenderLocation()));
}
@Command(

View File

@ -224,7 +224,7 @@ citizens.commands.npc.tp.location-not-found=Couldn''t find the target NPC''s loc
citizens.commands.npc.tpto.success=Teleported successfully.
citizens.commands.npc.tpto.to-not-found=Destination entity not found.
citizens.commands.npc.tpto.from-not-found=Source entity not found.
citizens.commands.npc.tphere.teleported=[[{0}]] was teleported to your location.
citizens.commands.npc.tphere.teleported=[[{0}]] was teleported to {1}.
citizens.commands.npc.type.set=[[{0}]]''s type set to [[{1}]].
citizens.commands.npc.type.invalid=[[{0}]] is not a valid type.
citizens.commands.npc.vulnerable.set=[[{0}]] is now vulnerable.