Fix wrong locale being used for teleporting others to coordinates

This commit is contained in:
William committed 2022-10-26 21:16:45 +01:00
1 parent 4854f0df01
commit 8aa0529cc8
1 file changed
+1 -1
@@ -98,7 +98,7 @@ public class TpCommand extends CommandBase implements TabCompletable, ConsoleExe
final Position destination = result.getDestination().get();
result.getTeleporter()
.flatMap(teleporter -> plugin.getLocales()
.getLocale("teleporting_other_complete", teleporter.username,
.getLocale("teleporting_other_complete_position", teleporter.username,
Integer.toString((int) destination.x),
Integer.toString((int) destination.y),
Integer.toString((int) destination.z)))