GiveCommand: show the search term in audit message, instead of the ID

this is more useful in the longer term.
This commit is contained in:
Dylan K. Taylor 2022-05-21 15:49:17 +01:00
parent 86efa0aae6
commit a38a5c67f1
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -99,7 +99,7 @@ class GiveCommand extends VanillaCommand{
$player->getInventory()->addItem($item); $player->getInventory()->addItem($item);
Command::broadcastCommandMessage($sender, KnownTranslationFactory::commands_give_success( Command::broadcastCommandMessage($sender, KnownTranslationFactory::commands_give_success(
$item->getName() . " (" . $item->getId() . ":" . $item->getMeta() . ")", $item->getName() . " (" . $args[1] . ")",
(string) $item->getCount(), (string) $item->getCount(),
$player->getName() $player->getName()
)); ));