From a38a5c67f1666fb5cdc00ebdf63ec766e53c5a97 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sat, 21 May 2022 15:49:17 +0100 Subject: [PATCH] GiveCommand: show the search term in audit message, instead of the ID this is more useful in the longer term. --- src/command/defaults/GiveCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command/defaults/GiveCommand.php b/src/command/defaults/GiveCommand.php index 8fd5c4298..b883c1165 100644 --- a/src/command/defaults/GiveCommand.php +++ b/src/command/defaults/GiveCommand.php @@ -99,7 +99,7 @@ class GiveCommand extends VanillaCommand{ $player->getInventory()->addItem($item); Command::broadcastCommandMessage($sender, KnownTranslationFactory::commands_give_success( - $item->getName() . " (" . $item->getId() . ":" . $item->getMeta() . ")", + $item->getName() . " (" . $args[1] . ")", (string) $item->getCount(), $player->getName() ));