⚙️Example Plugin Config file
This is how the default plugin's configuration file look's like
# ------------------
# DeluxeGens by abhiram
# --------------------
# Global Settings
datastorage:
mysql:
driver: "com.mysql.cj.jdbc.Driver"
host: "mySql.host.com"
port: 3306
username: "abhiram"
password: "deluxegens"
database: "deluxegens"
poolSize: 10 # don't touch this unless you know what you are doing
maxLifetime: 1800 # the maximum lifetime of a connection in a pool (don't touch this unless you know what you are doing)
sellwands:
'1':
item-type: "STICK"
item-name: "&e&lSELLWAND" # name of the item when its held in or viewed etc..
item-description:
- "| Info "
- "&7Multiplier: %current_multiplier%x"
- "&7Uses: %current_uses%/100"
- " "
- "| Stats "
- "&7Sold items: %sold_items%"
- "&7Money made: %money_made%$"
- " "
- "&e&l(!)&r &eRight click on a container to sell its items!"
wand-uses: 100 # how many times a sell wand can be used
cooldown: 60 # wait like 1 min before selling other stuff
sell-multiplier: 1.5
optimization:
should-gens-run-when-chunkunload: true # when the chunk where the gen are placed unload the gens will stop producing items
online-mode: false # if this is true then the gens will only tick if the owner of the gen is online on the server
item-despawn-time: 300 # 300 (5 minutes in seconds) will be the time when the items spawned by gens despawn
limit-settings:
enabled: true
# If this is true then the plugin will use permission system for making limits for example if a player has deluxegens.limit.50 they can place 50 gens
user-permission: false
# default limit for all users
default-limit: 20
event:
enabled: false
time-between-events: 30 # after an event is done the plugin will do 30 seconds cooldown before doing next event
event-duration: 60 # every event last's atleast 60 seconds
broadcast:
enabled: false
message: "&e&lThe event %event% has started enjoy the %multiplier%x sell Multiplier"
events:
funevent:
name: "Fun Event #1"
sell-multiplier: 5
Generator-tiers:
'1':
production-time: 20 # generator output produce time in seconds for eg.. this tier gen will produce the items every 20 sec
upgrade-amount: 1000 # will take $1000 to upgrade to this gen can be 0 as this is a basic tier
hologram:
enabled: true
lines:
- "&e&lGenerator Tier - 1"
showcase-block:
type: "BLACK_CONCRETE"
name: "&4Generator Tier - 1"
lore:
- "&eThis generator produces item per 20 seconds"
output-item:
item-amount: 5
item-sell-value: 50 # when the players sell the item they will get $50
type: "WHITE_DYE"
item-name: "&eGenerator output item"
item-lore:
- "&eA good item worth $50"
'2':
production-time: 10 # generator output produce time in seconds for eg.. this tier gen will produce the items every 20 sec
upgrade-amount: 5000
hologram:
enabled: true
lines:
- "&e&lGenerator Tier - 2"
showcase-block:
type: "WHITE_CONCRETE"
name: "&4Generator Tier - 2"
lore:
- "&eThis generator produces item per 10 seconds"
output-item:
item-amount: 64
item-sell-value: 500 # when the players sell the item they will get $50
type: "WHITE_DYE"
item-name: "&eGenerator output item"
item-lore:
- "&eA good item worth $500"
Last updated