LWCX-EconomicAddon | Charge Players for LWC protections (Mys
1.0Adds Proper Economic Support to LWCX. Allow protections to be charged.
By the way! Check out my server at play.sunknights.fun!
About
This plugin allows servers to charge players a certain amount of money when locking blocks or entities through LWCX.
Additionally, if you use MysqlPlayerDataBridge, you can enable the hook in the config to use its offline balance system to make sure your players' balances are kept in sync and money is not lost between servers.
Addon Features
- Charge players for the amount of money defined in the config when they register protection on blocks and entities they lock.
- Refund the money they paid to players when a protection they own is removed by either themselves or others.
- Refund feature can be disabled in the config.
- All messages sent by the addon can be modified in the config to suit your server's needs
- Compatible with MysqlPlayerDataBridge! Just enable the option in the config
Dependency
- LWCX
- Vault
- Any Vault Compatible Economic Plugin
- MysqlPlayerDataBridge (If enabled in config)
Installation
1. Put LWCX-EconAddon.jar into the plugins folder along with the dependencies.
2. Start the server
3. Edit the config
4. Reload the plugin
Commands
/lwc admin reload - reload LWCX as well as this addon
Permissions
lwcxecon.bypass - Allows a player to bypass the charge (and therefore bypassing the refund as well) [default: false]
Default Config
Show Config
LWCEcoAddonSettings:
#How much money will be charged per protection
ProtectionCharge: 250.0
#Should money be refunded to the owner (whether online or offline) when a protection is unlocked or destroyed
RefundAfterUnlock: true
Hooks:
#Must enabled if you use MysqlPlayerDataBridge
MysqlPlayerDataBridge: false
StopIfHooksNotFound: true
Messages:
Charge: "&eCharged $%FEE% for protection. Thank you."
Refund: "&eRefunded $%FEE% for protection removal."
NotEnoughtMoney: "&cYou do not have enought money to lock this! Requires $%FEE%"Report problems in the discussion, not in a review. Thanks :)
Disclaimer: I am not the creator of LWC or LWCX, I created this plugin for my own server use, but since it works quite well, I decided it would be nice to share it with the community.
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta