Configuration
The configuration file for Nexal Jackpot. Located at plugins/Nexal Jackpot/config.yml.
# ══════════════════════════════════════════════════════════
# NEXAL JACKPOT CONFIG
# ══════════════════════════════════════════════════════════
# Most of these settings can also be changed in-game: /jp admin, then Configuration.
# Every percentage in this file is written as a percentage: 5.0 means 5%.
# How amounts of money are shown: the pot, bets, minimum and maximum, winnings and rake, in
# messages, the GUIs, the boss bar, the history and the _formatted placeholders (the plain
# money placeholders always return the bare number, e.g. 1000.5). %amount% is the number.
price-format: "$%amount%"
# The number, as a Java DecimalFormat pattern: , groups thousands, .00 gives two decimals
number-format: "#,##0.00"
# Leave out the decimals of whole amounts: $1,000 rather than $1,000.00 (but $1,000.50)
hide-zero-decimals: true
# Countdown duration in seconds (starts when 2nd unique player deposits)
countdown-duration: 300
# Rake (house cut) taken from the pot before the winner is paid
rake:
# false pays the winner the whole pot
enabled: true
# Share of the pot kept by the house, in percent (5.0 = 5%)
percentage: 5.0
# Minimum deposit settings
min-deposit:
# "flat" = always use flat-amount
# "percentage" = use percentage of current pot (falls back to flat-amount when pot is 0)
mode: percentage
flat-amount: 10.0
# Share of the current pot, in percent (2.0 = 2%)
percentage: 2.0
# Maximum total deposit per user per round (0 = disabled)
max-deposit-per-user: 0
# Cooldown between deposits in seconds
deposit-cooldown: 10
# Quick-bet buttons next to Place Bet in /jp, one click bets that amount. Up to 4; [] hides them
quick-bets: [100, 500, 1000, 5000]
# Anti-snipe protection
# Resets timer when a large deposit is made in the final seconds
anti-snipe:
enabled: true
# A deposit of at least this share of the pot triggers anti-snipe, in percent (5.0 = 5%)
percentage: 5.0
# Anti-snipe triggers when timer is below this many seconds
window-seconds: 60
# Timer resets to this many seconds when anti-snipe triggers
reset-seconds: 60
# Boss bar countdown display
bossbar:
enabled: true
# PINK, BLUE, RED, GREEN, YELLOW, PURPLE or WHITE
color: PURPLE
# SOLID, SEGMENTED_6, SEGMENTED_10, SEGMENTED_12 or SEGMENTED_20
style: SOLID
# PARTICIPANTS = only players who deposited see it
# EVERYONE = all online players see it
# NONE = disabled
display-mode: PARTICIPANTS
# Placeholders: %pot% (formatted with price-format), %time%, %players%
title: "<gradient:#9B59B6:#A569BD><bold>JACKPOT</bold></gradient> <gray>|</gray> <gradient:#B983CE:#C99DDA>%pot%</gradient> <gray>|</gray> <white>%time%s</white> <gray>|</gray> <gradient:#2ECC71:#52D68A>%players% players</gradient>"
# Winner rolling animation
animation:
enabled: true
# Total duration of the animation in ticks (20 ticks = 1 second)
duration-ticks: 100
# Display type: SUBTITLE or ACTIONBAR
type: SUBTITLE
# Disable Vault payout (if true, no money will be given to winners)
disable-vault-payout: false
# Data storage
storage:
# json = plugins/NexalJackpot/data.json
# sql = a MySQL or MariaDB database (the sql section below)
# To move data between them: /jp admin export, change the type, restart the server,
# then /jp admin import. /jp admin reload does not switch storage.
type: json
sql:
host: localhost
port: 3306
database: minecraft
username: root
password: ""
# Commands to run when a player wins the jackpot
# Placeholders: %player%, %amount%, %pot%, %rake_amount%
winner-commands: []
# - "crates givekey %player% jackpot_key 1"
Configuration Options
Below is a reference of the main configuration sections:
price-format
══════════════════════════════════════════════════════════ NEXAL JACKPOT CONFIG ══════════════════════════════════════════════════════════ Most of these settings can also be changed in-game: /jp admin, then Configuration. Every percentage in this file is written as a percentage: 5.0 means 5%.
How amounts of money are shown: the pot, bets, minimum and maximum, winnings and rake, in messages, the GUIs, the boss bar, the history and the _formatted placeholders (the plain money placeholders always return the bare number, e.g. 1000.5). %amount% is the number.
number-format
The number, as a Java DecimalFormat pattern: , groups thousands, .00 gives two decimals
hide-zero-decimals
Leave out the decimals of whole amounts: $1,000 rather than $1,000.00 (but $1,000.50)
countdown-duration
Countdown duration in seconds (starts when 2nd unique player deposits)
rake
Rake (house cut) taken from the pot before the winner is paid
min-deposit
Minimum deposit settings
max-deposit-per-user
Maximum total deposit per user per round (0 = disabled)
deposit-cooldown
Cooldown between deposits in seconds
quick-bets
Quick-bet buttons next to Place Bet in /jp, one click bets that amount. Up to 4; [] hides them
anti-snipe
Anti-snipe protection Resets timer when a large deposit is made in the final seconds
bossbar
Boss bar countdown display
animation
Winner rolling animation
disable-vault-payout
Disable Vault payout (if true, no money will be given to winners)
storage
Data storage
winner-commands
Commands to run when a player wins the jackpot Placeholders: %player%, %amount%, %pot%, %rake_amount%