# Commands

{% code fullWidth="false" %}

```yaml
// settings.yml from LightCoins
# While I register commands after Server start, you can change the command prefix here.
# After changing the command prefix, you have to reload the plugin with /lightcoins reload
# To see autocomplete suggestions for the new command prefix you must rejoin the server!
# HINT: to remove the previous command prefix, you have to RESTART the server.
commands:
  # The command prefix for the Vault currency
  coins: 'coins'
  # The command prefix for the Virtual currency
  virtual: 'virtual'
  # The command prefix for baltop command
  baltop: 'baltop'
  # The command prefix for the vault pay command
  pay: 'pay'
  # The command prefix for the voucher command
  voucher: 'voucher'
```

{% endcode %}

## **Default Currency Commands**

<table data-full-width="true"><thead><tr><th width="236">Command</th><th width="361">Description</th><th>Permission</th></tr></thead><tbody><tr><td>/coins add &#x3C;<mark style="color:yellow;">player</mark>> &#x3C;<mark style="color:yellow;">amount</mark>></td><td>Give some player a specified amount of money. Also supported 10k, 2m and so on.</td><td><p></p><pre><code>lightcoins.command.admin.coins.add
</code></pre></td></tr><tr><td>/coins remove &#x3C;<mark style="color:yellow;">player</mark>> &#x3C;<mark style="color:yellow;">amount</mark>></td><td>Remove some player a specified amount of money. Also supported 10k, 2m and so on.</td><td><p></p><pre><code>lightcoins.command.admin.coins.remove
</code></pre></td></tr><tr><td>/coins set &#x3C;<mark style="color:yellow;">player</mark>> &#x3C;<mark style="color:yellow;">amount</mark>></td><td>Set some player a specified amount of money. Also supported 10k, 2m and so on.</td><td><p></p><pre><code>lightcoins.command.admin.coins.set
</code></pre></td></tr><tr><td>/coins show &#x3C;<mark style="color:yellow;">player</mark>></td><td>Show the current coins from a specified player</td><td><p></p><pre><code>lightcoins.command.admin.coins.show
</code></pre></td></tr><tr><td>/coins</td><td>Show your current Coins</td><td>-</td></tr><tr><td>/baltop</td><td>Shows a Top 10 List of the richest player</td><td><p></p><pre><code>lightcoins.command.player.coins.baltop
</code></pre></td></tr><tr><td>/pay &#x3C;<mark style="color:yellow;">player</mark>></td><td>Pay some specified player some money. Supports 10k, 2m and so on.</td><td><p></p><pre><code>lightcoins.command.player.coins.pay
</code></pre></td></tr></tbody></table>

## **Virtual Currency Commands**

<table data-full-width="true"><thead><tr><th width="276">Command</th><th width="323">Description</th><th>Permission</th></tr></thead><tbody><tr><td>/virtual add &#x3C;<mark style="color:yellow;">currency</mark>> &#x3C;<mark style="color:yellow;">player</mark>> &#x3C;<mark style="color:yellow;">amount</mark>></td><td><strong>Give</strong> some player a specified amount of the specified custom currency. Also supported 10k, 2m and so on.</td><td><p></p><pre><code>lightcoins.command.admin.virtual.add
</code></pre></td></tr><tr><td>/virtual remove &#x3C;<mark style="color:yellow;">currency</mark>> &#x3C;<mark style="color:yellow;">player</mark>> &#x3C;<mark style="color:yellow;">amount</mark>></td><td><strong>Remove</strong> some player a specified amount of the specified custom currency. Also supported 10k, 2m and so on.</td><td><p></p><pre><code>lightcoins.command.admin.virtual.remove
</code></pre></td></tr><tr><td>/virtual set &#x3C;<mark style="color:yellow;">currency</mark>> &#x3C;<mark style="color:yellow;">player</mark>> &#x3C;<mark style="color:yellow;">amount</mark>></td><td><strong>Set</strong> some player a specified amount of the specified custom currency. Also supported 10k, 2m and so on.</td><td><p></p><pre><code>lightcoins.command.admin.virtual.set
</code></pre></td></tr><tr><td>/virtual show &#x3C;<mark style="color:yellow;">player</mark>> &#x3C;<mark style="color:yellow;">currency</mark>></td><td>Show the current custom currency from a specified player</td><td><p></p><pre><code>lightcoins.command.player.virtual.show
</code></pre></td></tr><tr><td></td><td></td><td></td></tr></tbody></table>

## **Admin Commands**

<table data-full-width="true"><thead><tr><th width="278">Command</th><th width="325">Description</th><th>Permission</th></tr></thead><tbody><tr><td>/lightcoins reload</td><td>Reload all files and read custom currencies</td><td><p></p><pre><code>lightcoins.command.admin.reload
</code></pre></td></tr><tr><td>/lightcoins debug</td><td>Shows some system specs including current ram usage/tps/mspt + some database and redis informations</td><td><pre><code>lightcoins.command.admin.debug
</code></pre></td></tr></tbody></table>

## Console Commands

<table data-full-width="true"><thead><tr><th width="280">Command</th><th width="323">Description</th><th>Permission</th></tr></thead><tbody><tr><td>/coins add &#x3C;<mark style="color:yellow;">player</mark>> &#x3C;<mark style="color:yellow;">amount</mark>></td><td>Give some player a specified amount of money. Also supported 10k, 2m and so on.</td><td><mark style="color:red;">Console command only</mark></td></tr><tr><td>/coins remove &#x3C;<mark style="color:yellow;">player</mark>> &#x3C;<mark style="color:yellow;">amount</mark>></td><td>Remove some player a specified amount of money. Also supported 10k, 2m and so on.</td><td><mark style="color:red;">Console command only</mark></td></tr><tr><td>/coins show &#x3C;<mark style="color:yellow;">player</mark>></td><td>Pay some specified player some money. Supports 10k, 2m and so on.</td><td><mark style="color:red;">Console command only</mark></td></tr><tr><td>/lightcoins transfer lighteconomy sqlite</td><td>Transfer old LightEconomy balances to LightCoins via SQLite.<br>More information in the migration tab. Make sure you have the old .db from LightEconomy in the LightCoins Plugin directory!</td><td><mark style="color:red;">Console command only</mark></td></tr><tr><td>/lightcoins transfer lighteconomy mysql &#x3C;<mark style="color:yellow;">host</mark>> &#x3C;<mark style="color:yellow;">port</mark>> &#x3C;<mark style="color:yellow;">username</mark>> &#x3C;<mark style="color:yellow;">password</mark>> &#x3C;<mark style="color:yellow;">databaseName</mark>></td><td>Transfer old LightEconomy balances to LightCoins via MySQL. More information in the migration tab.</td><td><mark style="color:red;">nsole command only</mark></td></tr></tbody></table>
