> For the complete documentation index, see [llms.txt](https://lethium.gitbook.io/lethium-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lethium.gitbook.io/lethium-docs/how-to/sell-ranks-and-gems.md).

# Sell ranks and Gems

Connect a webstore (Tebex or similar) to ranks, Gems and crate keys using console commands.

ClickEm takes **no real money** itself. Your webstore sells a product, and when the payment clears the store runs **console commands** on the server. Everything below works with Tebex, BuiltByBit, or any store that can run a command after purchase.

In the commands, `{name}` or `{username}` stands for the store's player-name placeholder. Use your store's exact spelling.

### A permanent rank

```
lp user {name} parent set vip
```

Use `parent add` if you want to keep another group. The group names are `vip`, `mvp`, `elite`, `supreme`, `legend`, `ultimate`, `clicker`. ClickEm VIP tiers follow automatically. See [VIP Perks](/lethium-docs/gameplay/vip-perks.md).

Set the matching `price-tag` in `vip-perks.yml` so the in-game menu shows your real price.

### A temporary rank

```
lp user {name} permission settemp clickem.vip.mvp true 30d accumulate
```

`accumulate` adds time if they buy again before it runs out. The Gems Shop and rank vouchers use the same command.

### Gems

```
ceadmin economy give {name} 500 gems
```

If your store runs commands without the `/`, use exactly that form. From the console you can also use `clickem admin give {name} 500 gems`.

Every Gem pack is one command with a different amount. Decide prices against the [Gems Shop](/lethium-docs/gameplay/gems-shop.md) costs, for example a legend rank for 45 000 Gems.

### A crate key

```
crates key give {name} celestial 1
```

Key ids: `starter`, `afk`, `vote`, `hero`, `celestial`, `cosmetic`, `grandcosmetic`. See [Crates](/lethium-docs/server-setup/excellentcrates.md).

### A cosmetic or a rank as a tradable voucher

```
voucher admin cosmetic {name} dragon_wrath 1
voucher admin rank {name} elite 30 1
```

A voucher is an item the player can redeem, trade or sell. See [Vouchers](/lethium-docs/gameplay/vouchers.md).

### A boost or an item bundle

```
ceadmin boosts grant {name} currency_rush_3 60
```

For anything else, run the command of the module that owns it from the [admin command list](/lethium-docs/commands/admin-commands.md).

### A promo code as a gift

```
ceadmin codes create SUMMER 0 500 2026-12-31
ceadmin codes addcommand SUMMER ceadmin economy give %player% 100 gems
```

### Testing a package

1. Buy (or simulate) the product with a **test player**.
2. Run the command yourself in the console.
3. Check the result in game (`/vip`, `/coins`, `/gemsshop`, `/lp user <name> info`).

### Keeping it fair

* Sell Gems and ranks that **save time or add looks**. Avoid anything that would break Rebirth progress.
* Announce the store link in the hub and through LethiumMessages (see [LethiumMessages](/lethium-docs/server-setup/lethium-plugins.md)).
* Keep the Gems price of ranks in `gemsshop.yml` aligned with your money price. Players compare them.
