LnVault is installed as a standard SpigotMC/PaperMC plugin.
Obtain a copy of the plugin by either building or downloading the latest release.
A Minecraft 1.16+ server supporting plugins
LnVault integrates with multiple economy plugins using the VaultAPI
A plugin that provides an economy LnVault has currently been tested with
A plugin that provides permissions LnVault has currently been tested with
LnVault uses OpenNode to access the lightning network. You will need to create an account and generate API keys for deposits and withdrawal.
Copy the lnvault jar to the plugins folder located in the root of your minecraft server. You can now start your minecraft server
Configuration is performed using the /lnconfig command
deposit.limit
1000
deposit.description
LnVault Deposit ${0}
withdrawal.limit
1000
withdrawal.description
LnVault Withdrawal ${0} {1}
vault.exchangerate
1000000
–> 0.01 in game = 1 Satoshivault.joingreeting
opennode.deposit.key
opennode.withdraw.key
opennode.callback.port
opennode.callback.url
opennode.callback.port
http.retries
3
http.timeoutmillis
1000
–> 1 secondFor a minimal configuration only the opennode.deposit.key must be set.
/lnconfig set opennode.deposit.key <APIKey>
Caution any user with lnvault.config permission will be able to read the API keys
To improve the detection of completed withdrawals it is advised to configure the internal web hook server. Configure the opennode.callback.port to a port number that is reachable from the internet.
/lnconfig set opennode.callback.port <PortNumber>
To complete the web hook configuration you must set the URL at which the web hook server can be reached
/lnconfig set opennode.callback.url http://yourserver:portnumber
** Remember to set the port number in the URL. **
Now restart the minecraft server to start the web hook server.
During deposits and withdrawals opennode will now make calls to the web hook server to update the status of the deposit/withdrawal.
The following permissions are supported
Permission | Description |
---|---|
lnvault.deposit | Enables a user to deposit via the lndeposit command |
lnvault.withdraw | Enables a user to withdraw via the lnwithdraw command |
lnvault.config | Enables a user to read and write configuration via the lnconfig command |
Caution any user with lnvault.config permission will be able to read the API keys
User specific configuration is performed using the /lnuser command
lnaddress