config.yml
#NOT DELETE
version: 3.0
#Discord integration
discord:
token: "YOUR-TOKEN-BOT"
channel: "YOUR-CHANNEL-DISCORD"
messages:
voting-ending:
"**🔥 ELECTIONS COMPLETED 🔥**\n
\n
`Mayor Winner:` **%mayor_name%**\n
`Total Votes:` **%votes%**\n
\n
_The benefits offered by this_\n
_mayor have been applied!_"
# In REDIS mode, you need to have redis and
# additionally a MYSQL database for saving elections.
#
# By SQL mode you don't need to touch anything,
# everything is handled from the file you set.
mode-storage:
mode: sql
redis:
host: "localhost"
port: 6379
password: "123"
mysql:
host: "localhost"
port: 3306
database: _featherElection
username: "root"
password: "123"
sql:
file: mayors.db
sounds:
winner-mayor:
sound: "UI_TOAST_CHALLENGE_COMPLETE"
pitch: 1.0
volume: 1.0
handle-player-vote:
sound: "ENTITY_VILLAGER_YES"
pitch: 1.0
volume: 1.0
handle-show-mayor-effect:
sound: "ENTITY_VILLAGER_YES"
pitch: 1.0
volume: 1.0
settings:
automatic-elections: true
voting-expiration: 8 # In minutes
limit-mayors: 6
effects-mayor-expiration: 8 # In minutes
max-votes-per-mayor: 100000
update-elections-inventory: 1 #In Minutes
commands-winner-mayor:
- "say FeatheredElection!"
inventories:
vote:
title: "&8Year %year%"
mayor:
display: "&8Mayor %color%%mayor_name%"
lore:
- "&8Candidate"
- "&8Year %year%"
- "&7"
- "&7Votes: %color%%votes% &7(%color%%votes_percentage%%&7)"
- "&7"
- "%effects%"
- "&7"
- "&7Last Election: %color%%last_election%"
- "&7"
- "%vote_status%"
back:
display: "&aBack page"
material: ARROW
lore: []
slot: 46
next:
display: "&aNext page"
material: ARROW
lore: []
slot: 52
mayor:
title: "&8Mayor %mayor_name%"
close:
display: "&cClose"
mayor-max:
display: "%color%Mayor %mayor_name%"
lore:
- "&8Perks List"
- "&7"
- "%perks%"
- "&7"
- "&7The listed perks are"
- "&7available to all players"
- "&7until the closing of the next"
- "&7elections."
result:
material: JUKEBOX
display: "&bMayor Election Results"
lore:
- "&8Year %year%"
- "&7"
- "%results%"
- "&7"
- "&7These are the votes for the"
- "&7last election in which"
- "%color%%mayor_name% &7was elected."
npc:
hologram:
- "%color%%mayor_name%"
- "%color%Candidate"
- "&e&lCLICK"
hologram-winner:
- "%color%%mayor_name%"
- "&e&lCLICK"
hologram-no-winner:
- "&cNo Winner"
- "&4&lUNAVALIABLE"
messages:
command-not-exist: "&cThis command not exist!"
command-invalid: "&cWrong arguments!"
command-no-permission: "&cYou do not have permission to run this command!"
election-not-active: "&cThere is no election in progress!"
election-cancelled: "&aElection successfully canceled! &c[All votes and data will be recorded]"
command-help:
- "&6&lFeatheredElection &eBy &dLeo_S2"
- "&7"
- "&6&lThanks for using my plugin, for any"
- "&6&lquestions join my support discord!"
- "&7"
- "&e&ohttps://discord.gg/6cmVJkuXUd"
- "&7"
- "&e/fhd reload &7- &6Reload Config."
- "&e/fhd start &7- &6Automatically starts an election."
- "&e/fhd cancel &7- &6Cancels an election in progress."
- "&e/fhd addnpc &7- &6Adds a new npc that represents a mayor."
- "&e/fhd addwinernpc &7- &6Adds an npc that represents the winning mayor of the current election."
- "&e/fhd removenpc [npcID] &7- &6Delete a registered npc, you need to specify the id of that npc."
- "&e/fhd clearstands &7- &6Remove armorstands registered by the plugin."
not-vote: "&aVote for Major %mayor_name%!"
already-vote: "&cAnd you've voted before!"
vote-accepted:
- "%color%---------------------------------------"
- "&eYou voted for %color%%mayor_name% &ein the &bYear %year% Elections&e!"
- "&eAs a &bSettler&e, your vote counts for &a1&e."
- "%color%%mayor_name% &enow has %color%%votes_percentage%% &eof votes with %color%%votes% votes&e!"
- "%color%---------------------------------------"
vote-cancelled: "&cYou have already voted for a mayor, you cannot vote for another again!"
elections-closed: "&cClosed elections!"
maximun-mayors-registered: "&cThe maximum number of registered seniors has been reached!"
npc-unregistered: "&aNPC removed successfully!"
invalid-number: "&cInvalid Number"
invalid-npc: "&cThe npc is invalid or it is not a mayor type npc!"
winning-mayor:
- "&6🔥 &c&lELECTIONS COMPLETED &6🔥"
- "%color%%mayor_name%"
- "&7"
- "&7Total Votes: %color%%votes%"
- "%progress%"
- "&7"
- "&7The benefits offered by this"
- "&7mayor have been applied!"
expire-effect:
- "&6🔥 &c&lEFFECT COMPLETED &6🔥"
- "%color%%mayor_name%"
- "&7"
- "&7The mayor's benefits have ended"
- "&7and a new vote begins, use &e/fhd vote&7!"
send-active-effect-joining:
enabled: true
message:
- "&7Hey &a%player%, &7currently the server has"
- "&7an active mayor effect %color%%mayor%!"
- "&7"
- "%effect_lore%"
- "&7"
- "&eCheck the results at the"
- "&emayor's office!"
already-effect-active: "&cYou cannot start an automatic election when there is a mayor with an activated effect!"
starting-election: "&aStarting the new election! &eIf there was an active election previously, it will be lost."
menu-open-long-time: "&cHas had the menu open for a long time."
register-winner-npc: "&aRegistered winning NPC!"
unregister-winner-npc: "&aUnregistered winning NPC!"
removed-holograms: "&e%amount% &aholograms have been removed!"
Last updated