Skip to content

Commit

Permalink
Fixed: Sending a message to the wrong player in PCCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
Bram1903 committed Apr 28, 2024
1 parent bf5dd37 commit 1780903
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public void crash(CommandSender sender, OnlinePlayer toCrash, @Optional @Single
}

if (target.hasPermission("PlayerCrasher.Bypass")) {
adventure.sendComponent(target, Component.text("You cannot crash this player.", NamedTextColor.RED));
adventure.sendComponent(sender, Component.text("You cannot crash this player.", NamedTextColor.RED));
return;
}

Expand Down

0 comments on commit 1780903

Please sign in to comment.