# Paragon Network — Stock Market commands and permissions

Updated: October 2, 2026

Reference for **StockMarket-Lite-1.0.1-Hologram-Fix.jar**, including the NPC menu command, live placeholders, and fixed hologram create/move/remove controls. The internal plugin version remains `1.0.1-STANDALONE-FIX2`.

This is a reference file, not a configuration file. You do not need to install it or replace your plugin again. Examples are in-game commands; omit the leading `/` in the server console. Commands that open player menus or use your position must be run in-game.

Replace arguments such as `TICKER`, `ID`, `PlayerName`, `STAFFNAME`, `PRICE`, and `FIELD` with your actual values. Do not type angle brackets from syntax examples. Building markers such as N02 are **not** Citizens NPC IDs.

## 1. Stock Market permissions

The plugin defines only these two permission nodes:

| Permission | Default | What it allows |
|---|---|---|
| `stockmarket.use` | Everyone (`true`) | Main menu, stock menus, information, portfolio, history, news, statistics, buying and selling |
| `stockmarket.admin` | OPs | Admin menu, creating/editing/deleting stocks, triggering events, reload, and all `/stocks hologram` controls |

Administrators need **both** nodes: the command first checks `stockmarket.use`, then checks `stockmarket.admin` for privileged actions. There are no separate `stockmarket.buy`, `stockmarket.sell`, or `stockmarket.hologram` nodes in this build.

Ordinary players do not need Citizens management, DH management, or AJ management permissions to click brokers or view normal displays. Trade quantities, funds, shares, and trading-enabled settings still apply.

### Optional LuckPerms examples

Allow the existing default group to use the exchange:

```text
/lp group default permission set stockmarket.use true
```

Give a specific trusted staff member Stock Market administration:

```text
/lp user STAFFNAME permission set stockmarket.use true
/lp user STAFFNAME permission set stockmarket.admin true
```

These are examples to run deliberately, not a script. Do not give `stockmarket.admin` to the default group. Check inherited permissions and contexts if access differs from expectations. [LuckPerms permission command reference](https://github.com/LuckPerms/LuckPerms/wiki/Command-Usage:-Permission).

## 2. Player commands

All require `stockmarket.use`.

| Command | Result |
|---|---|
| `/stocks` | Opens the main exchange GUI; console receives the stock list instead |
| `/stocks list` | Lists currently configured stocks and their prices in chat |
| `/stocks open TICKER` | Opens that stock's GUI, containing Buy and Sell buttons; players only |
| `/stocks info TICKER` | Shows company, price, regime, session change, and high/low information in chat |
| `/stocks buy TICKER SHARES` | Purchases the requested quantity, subject to the existing trading rules; players only |
| `/stocks sell TICKER SHARES` | Sells the requested quantity; players only |
| `/stocks sell TICKER all` | Sells the player's whole position in that ticker |
| `/stocks portfolio` | Shows the player's own holdings, cash, values, and P/L **in chat**, not a portfolio GUI |
| `/stocks history` | Shows the player's ten most recent recorded trades in chat |
| `/stocks news` | Opens Market News; console receives the saved-event count |
| `/stocks stats` | Opens Trading Statistics; players only |
| `/stocks statistics` | Same as `/stocks stats` |

`/stock` and `/market` are aliases for `/stocks`, but another plugin can claim those aliases. Prefer `/stocks`. If it conflicts, use `/stockmarketlite:stocks`.

Example stock menu:

```text
/stocks open NOVA
```

## 3. Stock administration

Requires `stockmarket.use` and `stockmarket.admin`.

| Command | Result |
|---|---|
| `/stocks admin` | Opens the admin GUI; players only |
| `/stocks admin create TICKER PRICE SECTOR Company Name` | Creates a listing with the chosen starting price and the plugin's existing default stock settings |
| `/stocks admin set TICKER FIELD VALUE` | Changes one supported field; name/sector values may contain spaces |
| `/stocks admin delete TICKER` | Deletes a listing; refused if saved portfolios still own shares |
| `/stocks event EVENT-ID` | Triggers a configured market event; changes the affected market prices |
| `/stocks reload` | Reloads configuration, market, and GUI; not a plugin-JAR hot-reload |

Supported `FIELD` values:

```text
name
sector
icon
price
min-price
max-price
volatility
drift
market-sensitivity
```

New tickers must be 2–6 letters/numbers. Starting price must be positive. An icon must be a valid item material. Back up configuration and saved market data before changing listings or prices. Do not run create/delete/event commands simply as permission tests.

The source defaults contain eight listings; the building has 21 named stock booths. The additional booth labels do not create priced listings. Your server's `/stocks list` is the authority for available stocks—keep your existing expanded configuration if already set up.

## 4. Holograms — use the fixed Stock Market controls

Requires `stockmarket.use` and `stockmarket.admin`. Run in-game. Creation requires enabled PlaceholderAPI and DecentHolograms; leaderboard creation also requires AJLeaderboards. Move/remove do not require an AJ board or currently listed stock to remain present.

**Your feet position is the highest/top text anchor. Lines extend downward.** Fly to the desired text position before creating or moving. Original relative coordinates no longer apply unchanged after a WorldEdit flip/rotation; follow the physical markers.

| Display | Creation command | Placement guide | DH name |
|---|---|---|---|
| Welcome, H01 | `/stocks hologram welcome` | Just inside the grand entrance, central walkway; top about 5 blocks above the walking floor | `paragon_market_h01_welcome` |
| Market status, H02 | `/stocks hologram status` | Rear centre of the trading hall; top about 7 blocks above its ground-floor walkway | `paragon_market_h02_status` |
| Live ticker, H03 | `/stocks hologram ticker` | Open centre of the atrium under the glass dome; top about 5 blocks above balcony-floor height | `paragon_market_h03_ticker` |
| Island arrival, H04 | `/stocks hologram arrival` | Outside above the central arrival-plaza path; top about 5 blocks above its walking floor | `paragon_market_h04_arrival` |
| Portfolio top ten | `/stocks hologram leaderboard` | Your chosen open gallery/lounge location; top about 6 blocks above the floor | `paragon_market_portfolio_top` |
| Individual stock | `/stocks hologram stock NOVA` | Above NOVA's booth header, clear of the balcony and NPC nameplate; replace NOVA for other stocks | `paragon_market_stock_nova` |

Placement heights are starting points; check the view from the player's walking level. The ticker is a tall list. Creation does not overwrite an existing display's content or location.

### Move an existing display

```text
/stocks hologram move welcome
/stocks hologram move status
/stocks hologram move ticker
/stocks hologram move arrival
/stocks hologram move leaderboard
/stocks hologram move stock NOVA
```

Fly to the new top-text anchor first. Moving keeps the existing lines. These controls can recover API-only holograms missing from DH's command-manager list; missing targets are not silently recreated.

### Remove only a display

```text
/stocks hologram remove welcome
/stocks hologram remove status
/stocks hologram remove ticker
/stocks hologram remove arrival
/stocks hologram remove leaderboard
/stocks hologram remove stock NOVA
```

Each command removes **only that named display and its DH configuration**. It does not delete stock portfolios, money, AJ ranking data, or unrelated holograms. Replace NOVA with the intended ticker. Do not remove an AJ board merely to remove floating text.

DH's native commands remain available for other management, but the Stock Market helpers above need the Stock Market admin permission, **not** `dh.admin`. DH's separate management permissions are documented below.

## 5. Citizens NPCs and skins

Create an NPC while standing on its NPC floor marker and facing the public aisle. Creating a new NPC selects it; select an existing one before editing instead of creating a duplicate.

### Stock broker example

```text
/npc create NOVA Broker
/npc command add -p -r stocks open NOVA
```

Right-click opens NOVA's existing Buy/Sell menu. `-p` runs the command as the clicking player; `-r` binds right-click. **Do not add `-o`**, which elevates the player. [Citizens command reference](https://wiki.citizensnpcs.co/Commands).

### Existing NPC selection and command inspection

```text
/npc list
/npc select ID
/npc command
```

Use the numeric Citizens ID from the list. The building's N01–N26 markers are not those IDs. To remove a wrong click binding from the selected NPC, use:

```text
/npc command remove COMMAND-ID
```

`COMMAND-ID` is the binding ID shown by `/npc command`, not the NPC's ID. Remove only the wrong binding before adding its replacement; do not use `remove all` unless you intend to remove every binding.

### All 21 booth tickers

For each selected broker, use `/npc command add -p -r stocks open TICKER` with its matching ticker. Individual price holograms use `/stocks hologram stock TICKER`.

| Booth marker | Ticker | Booth marker | Ticker |
|---|---|---|---|
| N01 | PARA | N12 | CROP |
| N02 | NOVA | N13 | WAVE |
| N03 | CRFT | N14 | OREX |
| N04 | EMBR | N15 | DASH |
| N05 | AQUA | N16 | MEDX |
| N06 | MINE | N17 | PIXEL |
| N07 | VRTX | N18 | BYTE |
| N08 | SKY | N19 | FOOD |
| N09 | PULSE | N20 | BANK |
| N10 | FORGE | N21 | HOME |
| N11 | VOLT | — | — |

A stock must appear in `/stocks list` for its trading menu and new stock hologram to work.

### Service NPCs

Run the binding while the intended NPC is selected. These labels are example names; the actual Citizens ID is what matters.

| Marker | Role/location | Suggested create command | Click binding |
|---|---|---|---|
| N24 | Market Guide / MARKETHELP, central hall | `/npc create Market Guide` | `/npc command add -p -r stocks` |
| N23 | Portfolio Advisor, entrance counter | `/npc create Portfolio Advisor` | `/npc command add -p -r stocks portfolio` |
| N25 | Administrator, upstairs control room | `/npc create Market Administrator` | `/npc command add -p -r stocks admin` |
| N22 | Optional entrance receptionist | `/npc create Market Receptionist` | `/npc command add -p -r stocks` |
| N26 | Optional outdoor island guide | `/npc create Island Guide` | `/npc command add -p -r stocks` |

N22 and N26 duplicate N24's menu function; you can leave them unused. MARKETHELP/N24 is an NPC location, not an additional hologram type. The Portfolio Advisor prints holdings in chat. The Admin NPC still checks the clicking player's `stockmarket.admin`; using `-p` does not bypass that check.

### Apply a Minecraft account's skin

```text
/npc list
/npc select ID
/npc skin PlayerName
```

Replace `PlayerName` with the Java account whose skin you want. Example for your own account: `/npc skin kedraidorth`. This changes the selected player-type NPC's skin, not its name or click bindings. Skin downloads need connectivity to the skin services. Custom PNG files use Citizens' separate file/URL skin options; an account-name command is not a local-file upload. [Citizens skin command syntax](https://wiki.citizensnpcs.co/Commands).

### Citizens management permissions — staff only

| Node | Operation |
|---|---|
| `citizens.npc.list` | List NPCs |
| `citizens.npc.select` | Select an NPC |
| `citizens.npc.create` | Access NPC creation |
| `citizens.npc.create.player` | Allow creation of player-type NPCs; required in addition to creation access unless a broader type permission applies |
| `citizens.npc.command` | Inspect/add/remove click-command bindings |
| `citizens.npc.skin` | Set skins |

Citizens ownership rules and configured NPC limits can still restrict management. Do not give these management nodes to regular players merely so they can click a broker. Avoid broad Citizens administrative permissions for staff who only need limited NPC editing. Nodes checked against the [Citizens command implementation](https://github.com/CitizensDev/Citizens2/blob/master/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java).

## 6. AJLeaderboards — portfolio ranking

First test the player-specific numeric placeholder:

```text
/papi parse me %stockmarket_portfolio_value%
```

`0.00` is valid for a player with no shares. On the first request, saved holdings may need a moment to load; repeat if the token is initially unresolved. Then register the board once:

```text
/ajlb add %stockmarket_portfolio_value%
```

The board name is `stockmarket_portfolio_value`. It ranks current owned-share value, **excluding cash**, not profit or a historic highest balance. Use its `alltime` ranking, not daily/monthly differences. Holdings are cached for 30 seconds; AJ's own update schedule can add further delay.

Useful inspection commands:

```text
/ajlb list
/ajlb list stockmarket_portfolio_value alltime
```

The visible top-ten display is created/moved/removed through `/stocks hologram leaderboard` and the helpers in section 4.

**Ranking-data removal — not hologram removal:**

```text
/ajlb remove stockmarket_portfolio_value
```

This unregisters the board and deletes its cached ranking data. It does not remove the world display or underlying stock portfolios. Only use it when you actually intend to remove the ranking. `/ajlb add %stockmarket_portfolio_value%` registers it again; scores are repopulated according to AJ's player-update settings.

| AJ permission | Meaning |
|---|---|
| `ajleaderboards.use` | Access AJ management commands; staff only |
| `ajleaderboards.dontupdate.stockmarket_portfolio_value` | Excludes a player from updates for this board; **do not grant this to players you want ranked** |

[AJ setup](https://wiki.ajg0702.us/ajLeaderboards/setup/), [AJ commands](https://wiki.ajg0702.us/ajLeaderboards/commands/), [AJ permissions](https://wiki.ajg0702.us/ajLeaderboards/setup/permissions/).

## 7. Live PlaceholderAPI values

The Stock Market expansion is included in the JAR; there is no separate Stock Market eCloud download. Global values work without a player; portfolio value needs a player/UUID.

| Placeholder example | Output |
|---|---|
| `%stockmarket_price_NOVA%` | Formatted current price |
| `%stockmarket_price_raw_NOVA%` | Plain current price; global, not a player-ranking metric |
| `%stockmarket_change_NOVA%` | Signed change since session open, without the percent symbol |
| `%stockmarket_change_colored_NOVA%` | Colored session change with the percent symbol |
| `%stockmarket_name_NOVA%` | Company name |
| `%stockmarket_sector_NOVA%` | Sector |
| `%stockmarket_high_NOVA%` / `%stockmarket_low_NOVA%` | Session high/low |
| `%stockmarket_exists_NOVA%` | `true` / `false` |
| `%stockmarket_row_NOVA%` | Complete live ticker row |
| `%stockmarket_status%` / `%stockmarket_status_colored%` | OPEN or PAUSED based on trading enabled |
| `%stockmarket_regime%` / `%stockmarket_regime_colored%` | Current market regime |
| `%stockmarket_count%` | Number of configured live stocks |
| `%stockmarket_update_seconds%` | Simulation update interval |
| `%stockmarket_news%` / `%stockmarket_news_impact%` | Latest saved event title/impact |
| `%stockmarket_portfolio_value%` | Player-specific plain decimal for AJ ranking, without currency/color/grouping |

Replace NOVA with another configured ticker. Unknown prices return N/A instead of invented zero prices. A displayed booth name does not imply a live listing exists.

## 8. Native DecentHolograms permissions

Use the `/stocks hologram` helpers for this market's normal placement/removal. If staff also need native DH editing:

| DH permission | Meaning |
|---|---|
| `dh.admin` | Broad access to all DH management commands; trusted administrators only |
| `dh.command.list` | `/dh list` |
| `dh.command.hologram` | Hologram command group |
| `dh.command.hologram.movehere` | Move a named registered DH hologram |
| `dh.command.hologram.delete` | Delete a named registered DH hologram |

For native subcommands, grant the applicable command-group permission as well as the specific subcommand permission. Native deletion is not an AJ ranking deletion. The fixed integration registers newly created market displays into DH's command manager.

[DH permission reference](https://wiki.decentholograms.eu/commands/permissions/), [DH move](https://wiki.decentholograms.eu/commands/hologram/movehere/), [DH delete](https://wiki.decentholograms.eu/commands/hologram/delete/).

## 9. Final checks

- Use a non-OP player to verify a broker opens the correct stock's Buy/Sell GUI.
- Verify the Portfolio Advisor shows that player's own portfolio in chat.
- Verify the Admin NPC refuses unauthorized access.
- Confirm stock prices and the top-ten display resolve values rather than raw `%placeholder%` tokens.
- Inspect placement at normal walking height, including NPC nameplates and balcony clearance.
- If an NPC menu fails, test `/stocks open TICKER` manually, check `/stocks list`, then inspect the selected NPC's `/npc command` bindings and the player's `stockmarket.use` permission.
- Do not reinstall or repaste the structure just to change a skin, click binding, permission, or hologram location.

Stock Market commands/permissions checked against the fixed source and plugin descriptor. External management syntax/permissions checked against the official sources linked in the relevant sections. This reference does not execute any commands or alter server settings.
