Configuration
The configuration file for Nexal Vote. Located at plugins/Nexal Vote/config.yml.
# Nexal Vote Plugin Configuration
# Storage type: "json" or "sql"
storage:
type: "json"
sql:
host: "localhost"
port: 3306
database: "minecraft"
username: "root"
password: ""
# Minutes between background saves of data.json (0 to disable). Changes are already saved
# in the background as they happen; this is a safety net.
auto-save-minutes: 5
# Vote command behavior: "gui" or "chat"
vote-command-mode: "gui"
# Vote sites shown by /vote. The keys (planetminecraft, ...) are only names for this list:
# per-site vote counts (%nexalvote_votes_<site>% and /vote admin stats) use the service name
# the voting site sends through Votifier, which you can see in the console on each vote.
#
# The /vote menu shows whether a player can vote on a site again. For that, a site needs:
# service: the Votifier service name of the site (defaults to the key, any case)
# cooldown-hours: how long the site waits between votes (defaults to 24)
vote-sites:
planetminecraft:
name: "<green><bold>PlanetMinecraft</bold></green>"
material: EMERALD
url: "https://www.planetminecraft.com/server/yourserver/vote/"
service: "PlanetMinecraft"
cooldown-hours: 24
lore:
- "<gray>Vote on PlanetMinecraft</gray>"
- "<gray>and earn rewards!</gray>"
minecraftservers:
name: "<aqua><bold>Minecraft-Servers</bold></aqua>"
material: DIAMOND
url: "https://minecraft-server-list.com/server/yourserver/vote/"
lore:
- "<gray>Vote on Minecraft-Servers</gray>"
- "<gray>for exclusive rewards!</gray>"
topg:
name: "<gold><bold>TopG</bold></gold>"
material: GOLD_INGOT
url: "https://topg.org/minecraft-servers/server/yourserver/vote/"
lore:
- "<gray>Vote on TopG</gray>"
- "<gray>to support us!</gray>"
# Rewards for voting. Commands run from the console and support %player%, %service% (the voting
# site's Votifier service name) and %points% (the points this vote gave, streak bonus included).
rewards:
# With 2, every streak multiplier below gives whole points (3, 4, 5 and 6)
points-per-vote: 2
commands:
- "eco give %player% 100"
# - "give %player% diamond 1"
# Streak bonuses: multipliers applied to vote points once a player has voted this many days
# in a row. The vote that reaches a bonus already gets it. The message is sent through
# streak-bonus in messages.yml.
streak-bonuses:
3:
multiplier: 1.5
message: "<green><bold>3-Day Streak!</bold></green> <gray>+50% vote points!</gray>"
7:
multiplier: 2.0
message: "<gold><bold>Weekly Streak!</bold></gold> <gray>Double vote points!</gray>"
14:
multiplier: 2.5
message: "<yellow><bold>2-Week Streak!</bold></yellow> <gray>2.5x vote points!</gray>"
30:
multiplier: 3.0
message: "<light_purple><bold>Monthly Dedication!</bold></light_purple> <gray>Triple vote points!</gray>"
# Vote milestones: rewards for reaching vote counts, each given once. Commands support %player%.
# The sound plays with the milestone-reached message.
milestones:
10:
name: "<gold>Bronze Voter</gold>"
commands:
- "lp user %player% parent add bronze_voter"
- "give %player% gold_ingot 10"
sound: ENTITY_PLAYER_LEVELUP
50:
name: "<gray>Silver Voter</gray>"
commands:
- "lp user %player% parent add silver_voter"
- "give %player% gold_ingot 32"
sound: UI_TOAST_CHALLENGE_COMPLETE
100:
name: "<white>Gold Voter</white>"
commands:
- "lp user %player% parent add gold_voter"
- "give %player% diamond 16"
sound: UI_TOAST_CHALLENGE_COMPLETE
500:
name: "<aqua><bold>Diamond Voter</bold></aqua>"
commands:
- "lp user %player% parent add diamond_voter"
- "give %player% netherite_ingot 5"
sound: UI_TOAST_CHALLENGE_COMPLETE
# Vote party: rewards every online player when the server reaches the goal. The reward commands
# run once per online player and support %player%. The sound is set on vote-party-triggered in
# messages.yml.
vote-party:
enabled: true
# Votes from all players needed to start a vote party; the count starts over after each party
threshold: 100
rewards:
- "give %player% diamond 5"
- "eco give %player% 500"
# Vote reminders, sent to online players who have not voted today
reminders:
enabled: true
# At least 1
interval-minutes: 15
# Vote shop items. cost.vote-points is the price in vote points. Other keys under cost are
# Cost API prices charged as well: vault (money), playerpoints, exp, levels, items, ...
# Commands run from the console and support %player%.
shop:
items:
diamond_kit:
name: "<aqua><bold>Diamond Kit</bold></aqua>"
material: DIAMOND
lore:
- "<gray>A starter diamond kit</gray>"
- "<gray>with tools and armor!</gray>"
cost:
vote-points: 10
commands:
- "kit give %player% diamond"
fly_30min:
name: "<yellow><bold>30 Min Fly</bold></yellow>"
material: FEATHER
lore:
- "<gray>Temporary flight ability</gray>"
- "<gray>for 30 minutes!</gray>"
cost:
vote-points: 25
commands:
- "tempfly %player% 30m"
crate_key:
name: "<light_purple><bold>Vote Crate Key</bold></light_purple>"
material: TRIPWIRE_HOOK
lore:
- "<gray>A key for the Vote Crate</gray>"
- "<gray>with random rewards!</gray>"
cost:
vote-points: 5
commands:
- "crates give %player% vote 1"
coins_1000:
name: "<gold><bold>1000 Coins</bold></gold>"
material: GOLD_NUGGET
lore:
- "<gray>Exchange your vote points</gray>"
- "<gray>for server currency!</gray>"
cost:
vote-points: 15
commands:
- "eco give %player% 1000"
# Leaderboard settings
leaderboard:
# The period /vote leaderboard opens on: week, month, 3months, year or alltime
default-period: "month"
# GUI settings
gui:
vote-links:
title: "<gradient:#3498DB:#5DADE2><bold>Vote Sites</bold></gradient>"
# Seconds between redraws while the menu is open, so countdowns stay current (0 to disable)
refresh-seconds: 10
accent-material: LIGHT_BLUE_STAINED_GLASS_PANE
party-material: FIREWORK_ROCKET
shop-material: EMERALD
# Shown for a top 3 place nobody holds yet
empty-top-material: SKELETON_SKULL
leaderboard:
title: "<gradient:#3498DB:#5DADE2><bold>Vote Leaderboard</bold></gradient>"
shop:
title: "<gradient:#3498DB:#5DADE2><bold>Vote Shop</bold></gradient>"
Configuration Options
Below is a reference of the main configuration sections:
storage
Nexal Vote Plugin Configuration
Storage type: "json" or "sql"
auto-save-minutes
Minutes between background saves of data.json (0 to disable). Changes are already saved in the background as they happen; this is a safety net.
vote-command-mode
Vote command behavior: "gui" or "chat"
vote-sites
Vote sites shown by /vote. The keys (planetminecraft, ...) are only names for this list: per-site vote counts (%nexalvote_votes_<site>% and /vote admin stats) use the service name the voting site sends through Votifier, which you can see in the console on each vote.
The /vote menu shows whether a player can vote on a site again. For that, a site needs: service: the Votifier service name of the site (defaults to the key, any case) cooldown-hours: how long the site waits between votes (defaults to 24)
rewards
Rewards for voting. Commands run from the console and support %player%, %service% (the voting site's Votifier service name) and %points% (the points this vote gave, streak bonus included).
streak-bonuses
milestones
Vote milestones: rewards for reaching vote counts, each given once. Commands support %player%. The sound plays with the milestone-reached message.
vote-party
Vote party: rewards every online player when the server reaches the goal. The reward commands run once per online player and support %player%. The sound is set on vote-party-triggered in messages.yml.
reminders
Vote reminders, sent to online players who have not voted today
shop
Vote shop items. cost.vote-points is the price in vote points. Other keys under cost are Cost API prices charged as well: vault (money), playerpoints, exp, levels, items, ... Commands run from the console and support %player%.
leaderboard
Leaderboard settings
gui
GUI settings