Skip to content

Commands

Lightman edited this page Sep 30, 2024 · 5 revisions

Commands

Lightman's Currency adds a few commands to the game, and this page lists them all out for your convenience.

Notes: Arguments surrounded in <> are required, while arguments surround in [] are optional

/lcbaltop

/lcbaltop [page] Lists the top bank account balances of all players on the server. Only displays 10 entries per page.

Can be run by all players

/lctrade

Command used to initialize a Player Trade

/lctrade <player> request a trade with the given player

/lctradeaccept <tradeID> accept the player trade with the given trade id (typically auto-filled by clicking on the "Accept" button from the request message)

/lcconfig

/lcconfig reload reloads all config files added by my mod (including the Master Coin List and other such configs)

If run by an Admin, all config files will be reloaded on the server

If run by a non-Admin, only their personal client config will be reloaded

/lcconfig view <fileName> <configOption> allows you to view the value of the given config option

/lcconfig edit <fileName> <configOption> <newValue> allows you to edit the value of the given config option

/lcconfig edit <fileName> <listConfigOption> add <newValue> allows you to add a new entry to the given config option

/lcconfig edit <fileName> <listConfigOption> replace <index> <newValue> allows you to replace the list entry at the given index with the new value

/lcconfig edit <fileName> <listConfigOption> remove <index> allows you to remove the list entry at the given index (starting at 0)

Note: The newValue inputs must be formatted exactly as expected by the config file including quotation marks, square brackets, etc.

/lcconfig reset <fileName> <configOption> allows you to reset the value of the given config option back to its default value

Note: All editing/resetting commands can only be run by Admins for Server & Common config files. All such commands run for Client config files will only edit the players local client configs.

/lcadmin

/lcadmin toggleadmin Enables or Disables Admin Mode

/lcadmin traderdata list Lists helpful info on all traders in existence, such as world position, owner, etc.

/lcadmin traderdata search <searchText> Similar to /lcadmin traderdata list, but it filters the traders based on the searchText (useful for finding all traders owned by a player, or with an inappropriate name, etc.)

/lcadmin traderdata delete <traderID> Allows you to forcibly delete a trader. Note that doing so will forfeit all items/money within the trader, so manually locating and breaking the traders block is preferred. You may use /lcadmin traderdata list/search to get a traders ID for deletion.

/lcadmin traderdata debug <traderID> Allows you to see a traders raw NBT tag for debug purposes.

/lcadmin traderdata addToWhitelist <traderID> <player> Allows you to add the given player(s) to the traders whitelist trade rule. Requires that the whitelist rule be enabled by the traders owner.

/lcadmin prepareForStructure <traderPos> Allows you to save a trader blocks current trader state into the trader blocks NBT data. When used on a trader, it allows it to be safely copied to a different location via tools such as vanilla Structures, World Edit, and even NBT copying via middle click (only if used on a traders core block, which would be the bottom-left block for multi-block traders).