Skip to content
This repository has been archived by the owner on Apr 11, 2022. It is now read-only.

Commit

Permalink
Fix #10
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonw4331 committed Jul 19, 2019
1 parent ce5bb0d commit 2b24f2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ChestShop/ChestShop.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ public function onCommand(CommandSender $sender, Command $command, string $label
switch ($command->getName()) {
case "id":
$name = array_shift($args);
if(empty($name))
return false;
$constants = array_keys((new \ReflectionClass(ItemIds::class))->getConstants());
foreach ($constants as $constant) {
if (stripos($constant, $name) !== false) {
Expand Down

0 comments on commit 2b24f2d

Please sign in to comment.