fix: update error message of /p remove <player> if player does not need to be removed (#4592)

This commit is contained in:
TheJonstone✓ 2025-02-22 20:25:49 +01:00 committed by GitHub
parent f533e194f4
commit 4e2ea67992
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -117,8 +117,8 @@ public class Remove extends SubCommand {
} }
if (count == 0) { if (count == 0) {
player.sendMessage( player.sendMessage(
TranslatableCaption.of("errors.invalid_player"), TranslatableCaption.of("member.player_not_removed"),
TagResolver.resolver("value", Tag.inserting(Component.text(args[0]))) TagResolver.resolver("player", Tag.inserting(Component.text(args[0])))
); );
} else { } else {
player.sendMessage( player.sendMessage(