The **Orangemart** plugin allows players on your Rust server to buy and sell in-game units and VIP status using Bitcoin payments through the Lightning Network. This plugin integrates LNBits into the game, enabling secure transactions for game items and services.
---
## Features
- **In-Game Currency Purchase:** Players can purchase in-game currency using Bitcoin payments.
- **Send In-Game Currency:** Players can send currency to others, facilitating peer-to-peer transactions.
- **VIP Status Purchase:** Players can purchase VIP status through Bitcoin payments, unlocking special privileges.
- **Configurable:** Server admins can set up command names, currency items, prices, and more through the configuration file.
---
## Commands
The following commands are available to players:
- **`/buyblood`**
Players can purchase in-game currency using Bitcoin. The amount purchased is configurable.
- **`/sendblood <amount> <targetPlayer>`**
Players can send a specified amount of in-game currency to another player.
- **`/buyvip`**
Players can purchase VIP status using Bitcoin. The VIP price and associated permission group are configurable.
- A list of domains that are exclusively allowed for use in Lightning addresses. If this list is populated, only addresses from these domains are permitted.
Place the `Orangemart.cs` file in your server's `oxide/plugins` folder.
2.**Configuration**
Modify the plugin’s configuration file to fit your server’s settings (currency item, prices, VIP group, etc.). The configuration file will be automatically generated upon running the plugin for the first time.
3.**Create VIP Group (Optional)**
Create a VIP group to assign permssions to.
4.**Reload the Plugin**
Once configured, reload the plugin using the command:
```
oxide.reload Orangemart
```
---
## Permissions
The plugin uses the following permissions:
- **`orangemart.buycurrency`**
Grants permission to players who are allowed to buy your currency item via Bitcoin.
- **`orangemart.sendcurrency`**
Grants permission to players who are allowed to send Bitcoin for your in-game currency unit.
- **`orangemart.buyvip`**
Grants permission to players to purchase VIP via Bitcoin.
---
## Logging and Troubleshooting
- **Logs:**
Transaction details, such as purchases and currency sends, are logged for auditing purposes. Logs can be found in the `oxide/data/Orangemart` directory.
- **Troubleshooting:**
If any issues arise, check the server logs for errors related to the plugin. Ensure that the configuration file is correctly set up and that Bitcoin payment services are running as expected.