Ah yes I read wrong it seems to me that this is functional PHP: $player->getInventory->setItem($slot, Item::get(Item::STAINED_GLASS_PANE, 15, 1)->setCustomName("§cBarrier"), true);