mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 04:17:48 +00:00
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:
parent
86efa0aae6
commit
a38a5c67f1
@ -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()
|
||||||
));
|
));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user