Skip to content

Commit

Permalink
GH-591 Update parameters for teleport command, fix parse placeholder …
Browse files Browse the repository at this point in the history
…in message to sender.
  • Loading branch information
vLuckyyy authored Dec 23, 2023
1 parent 09f7409 commit 0bf8286
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void other(Viewer sender, @Arg Player player, @Arg Player target) {
void execute(Player sender, Viewer senderViewer, @Arg Player player) {
this.teleportService.teleport(sender, player.getLocation());

Formatter formatter = this.formatter(sender, player.getLocation());
Formatter formatter = this.formatter(player, player.getLocation());

this.noticeService.viewer(senderViewer, translation -> translation.teleport().teleportedToPlayer(), formatter);
}
Expand All @@ -76,7 +76,7 @@ void to(Player sender, @Arg Location location, @Arg World world) {
}

@Execute(min = 4, max = 5)
@DescriptionDocs(description = "Teleport player to specified player, location and world", arguments = "<player> <x> <y> <z> <world>")
@DescriptionDocs(description = "Teleport player to specified player, location and world", arguments = "<x> <y> <z> <player> <world>")
void to(Viewer sender, @Arg Location location, @Arg Player player, @Arg World world) {
location.setWorld(world);

Expand Down

0 comments on commit 0bf8286

Please sign in to comment.