Home›Java›Mods›LWCX-EconomicAddon | Charge Players for LWC protections (MysqlPlayerDataBridge Compatible)
LWCX-EconomicAddon | Charge Players for LWC protections (MysqlPlayerDataBridge Compatible)
ModsJava

LWCX-EconomicAddon | Charge Players for LWC protections (MysqlPlayerDataBridge Compatible)

Java mod listed for Minecraft 1.8–1.16. Downloads from the MC Java Mods app on Android.

⬇ Download on Spigot
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
Spoiler: Show Config
Code (YAML):
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.

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

LWCX-EconomicAddon | Charge Players for LWC protections (MysqlPlayerDataBridge Compatible) is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10, 1.11 and newer. Downloaded 126 times (via Spigot). Download it and open it directly in the game.

Explore more