# Vote

```yaml
########################################################################################################################
#
# ██╗░░░██╗░█████╗░████████╗███████╗
# ██║░░░██║██╔══██╗╚══██╔══╝██╔════╝
# ╚██╗░██╔╝██║░░██║░░░██║░░░█████╗░░
# ░╚████╔╝░██║░░██║░░░██║░░░██╔══╝░░
# ░░╚██╔╝░░╚█████╔╝░░░██║░░░███████╗
# ░░░╚═╝░░░░╚════╝░░░░╚═╝░░░╚══════╝
#
# Documentation: https://zessentials.groupez.dev/modules/vote
#
########################################################################################################################

enable: true

# Allows to activate the party vote
# The vote party is a system that allows to reward online players by reaching a certain number of votes
enable-vote-party: true

# Allows to open the votes inventory with the party vote command, if you disable this option a message will be sent to the player
enable-vote-party-open-vote-inventory: true

# The objective of the party vote
vote-party-objective: 200

# Rewards for the vote party
vote-party-rewards:

  # Commands executed for all players
  commands:
    - "eco give money %player% 5000"

  # If the player has this permission he will receive more rewards
  permissions: "zessentials.vote.double"
  commandsPermission:
    - "eco give money %player% 5000"

# Rewards on each vote
reward-on-vote:
  - "cr give %player% vote"

sites:
  - name: "ServeurMinecraftVote"
    seconds: 5400
  - name: "ServeurPrive"
    seconds: 5400
  - name: "ServeursMinecraft"
    seconds: 86400
  - name: "TopServeurs"
    seconds: 7200

# Send a message to the player when voting while offline
enable-offline-vote-message: true

# Value for the placeholder: %zessentials_vote_site_cooldown_<site>%
placeholder-available: "<green>Available ✔"
placeholder-cooldown: "<red>%cooldown% ✘"

# Date to reset the votes of the players, the default setting reset the votes on the first day of the month at 0h0
reset-configuration:
  day: 1 # between 1 and 31
  hour: 0 # between 0 and 23
  minute: 0 # between 0 and 59
  second: 0 # between 0 and 59
```

```yaml
name: "#3f3f3fᴠᴏᴛᴇ"
size: 54
items:
  voteparty:
    slot: 13
    item:
      material: BELL
      name: "#fc07f3&lᴄᴏᴍᴍᴜɴɪᴛʏ ᴀᴅᴠᴀɴᴄᴇᴍᴇɴᴛ"
      lore:
        - "&8VoteParty"
        - ""
        - "&7By voting you will make progress"
        - "&7VoteParty. To unlock a reward"
        - "&7it is necessary to vote &f%zessentials_voteparty_objective% times"
        - ""
        - ""
        - "&f&lᴘʀᴏɢʀᴇss"
        - "&8[#fc99f8%zessentials_voteparty_amount% %zessentials_progressbar_{zessentials_voteparty_amount}_{zessentials_voteparty_objective}_20_|_#fc99f8_&7% #fc99f8%zessentials_voteparty_objective%&8]"
        - ""
        - "&f&lʀᴇᴡᴀʀᴅs"
        - " #f8b175• #e5c2625.000$ &8(Double if VIP #fcd955✭&8)"
  information:
    update: true
    slot: 31
    item:
      material: BOOK
      name: "#e4cc00ᴠᴏᴛᴇ ɴᴏᴡ"
      lore:
        - ""
        - " #f8b175• &7Site 1 %zessentials_vote_site_cooldown_ServeurMinecraftVote%"
        - " #f8b175• &7Site 2 %zessentials_vote_site_cooldown_ServeurPrive%"
        - " #f8b175• &7Site 3 %zessentials_vote_site_cooldown_ServeursMinecraft%"
        - " #f8b175• &7Site 4 %zessentials_vote_site_cooldown_TopServeurs%"
        - ""
        - "&fClick to vote !"
    actions:
      - type: book
        author: "zEssentials"
        title: "#e4cc00ᴠᴏᴛᴇ ɴᴏᴡ"
        lines: # Book pages
          1: # First page
            - '     #e4cc00ᴠᴏᴛᴇ ɴᴏᴡ'
            - ''
            - ''
            - '<hover:show_text:"#34eba8Open Serveur Minecraft Vote !"><click:open_url:"https://serveur-minecraft-vote.fr/">#f0af24Open URL<reset>'

```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://zessentials.groupez.dev/modules/vote.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
