Config
This file is the central control panel for the plugin's global settings.
database
: Configure your MySQL connection here. Ifenabled
isfalse
, the plugin will use YAML files in the/playerdata/
folder for storage.settings
: General plugin behavior.disabled-worlds
is useful for preventing coin drops in specific worlds like creative or lobby worlds.mob-drops
: Controls how coins are awarded.DIRECT
is the simplest method.ITEM
is more interactive and allows for custom item appearances, including custom textures via thetexture-base64
option forPLAYER_HEAD
materials.rotating-market
: This optional feature creates a dynamic shop. Set theopen-duration
andclosed-duration
in seconds (e.g., 1 hour = 3600, 1 day = 86400).death-penalty
: A simple way to add risk.loss-percentage
determines what fraction of a player's balance is lost on death. A value of10.0
means 10% loss.
Example config.yml
:
# Enable this to use a MySQL database for player data storage.
database:
enabled: false
host: "localhost"
port: 3306
database: "minecraft"
username: "user"
password: "password"
settings:
mob-drops-enabled: true
shop-enabled: true
check-updates: true
# MobCoins will not drop in these worlds.
disabled-worlds:
- "world_creative"
- "lobby"
mob-drops:
# DIRECT: Coins go straight to the player's balance.
# ITEM: A physical item is dropped that must be right-clicked.
drop-method: "DIRECT"
# Configuration for the physical coin item if drop-method is ITEM.
item:
material: "SUNFLOWER"
name: "&6&lMobCoin"
lore:
- "&7Value: &e{amount}"
- "&aRight-click to claim!"
# Optional: For PLAYER_HEAD material. Get values from sites like minecraft-heads.com.
texture-base64: ""
rotating-market:
enabled: false
open-duration: 3600 # Shop is open for 1 hour
closed-duration: 7200 # Shop is closed for 2 hours
death-penalty:
enabled: true
loss-percentage: 5.0 # Players lose 5% of their balance on death.
Last updated