TimeVote icon

TimeVote -----

Allow players to vote for day and night



This plugin allows your users to vote for a time in default world (day and night time)

Commands and their descriptions:

/tv day (This command allows you to start a day-voting.)
/tv night (This command allows you to start a night-voting.)
/tv yes (This command allows you to vote for yes)
/tv no (This command allows you to vote for no)
/tv stopvote(This command stops the voting. Requires op permissions)
/tv reload (This command is for reloading the plugin)


User permissions:

timevote.start (default: true - allows user to start a vote)
timevote.vote (general voting permission)
timevote.vote.yes (default: true, allows user to vote "yes")
timevote.vote.no (default: true, allows user to vote "no")

Admin permissions:

timevote.reload (/tv reload - reloads the plugin)
timevote.stopvote (/tv stopvote - stops ongoing vote)


There are currently two files that will be generated at first launch:
config.yml and lang_EN.yml, both can be configured as you wish.

Code (YAML):
vote-duration : 15000   # Example duration in milliseconds, if negative value is given then it will be automatically converted to positive value. If no value is given, default will be 15000 milliseconds.
language
: lang_EN # This is the language file that will be used, you can change it to lang_DE for example, if you create it.
debug-mode
: false # This is the debug mode, it will print more information in the console, great for debugging but not for normal use.
scoreboard-enabled
: true # This is the scoreboard, it will display the vote in the scoreboard, valid options: true, false
bossbar-style-day
: SOLID # This is the style of the bossbar when the vote is for day time, valid options: SOLID, SEGMENTED_6, SEGMENTED_10, SEGMENTED_12, SEGMENTED_20
bossbar-color-day
: BLUE # This is the color of the bossbar when the vote is for day time, valid options: BLUE, GREEN, PINK, PURPLE, RED, WHITE, YELLOW
bossbar-style-night
: SOLID # This is the style of the bossbar when the vote is for night time, valid options: SOLID, SEGMENTED_6, SEGMENTED_10, SEGMENTED_12, SEGMENTED_20
bossbar-color-night
: RED # This is the color of the bossbar when the vote is for night time, valid options: BLUE, GREEN, PINK, PURPLE, RED, WHITE, YELLOW

Code (YAML):

messages
:
  server-name
: '&6 [ServerName ]' # This is the name of the server. It is used in the messages below. You can change it to whatever you want like '[RandomCraft]'
  bossbar-message-day
: 'Voting for Day time (/tv yes or /tv no )' # This is the message that will be displayed in the bossbar when the vote is for day time
  bossbar-message-night
: 'Voting for Night time (/tv yes or /tv no )' # This is the message that will be displayed in the bossbar when the vote is for night time
  started-vote-day
: '&a&l %player%&r&a started a new voting for Day time, vote with /tv yes or /tv no.' # This is the message that will be displayed when the vote for day time has started, in front of the text is the username who started the vote.
  started-vote-night
: '&a&l %player%&r&a started a new voting for Night time, vote with /tv yes or /tv no.' # This is the message that will be displayed when the vote for night time has started, in front of the text is the username who started the vote.
  no-vote-in-progress
: '&cThere is no vote in progress.' # This is the message that will be displayed when there is no vote in progress
  no-permission-to-vote
: '&cYou don''t have permission to vote.' # This is the message that will be displayed when a player doesn't have permission to vote
  no-permission-to-vote-yes
: '&cYou don''t have permission to vote yes.' # This is the message that will be displayed when a player doesn't have permission to vote yes
  no-permission-to-vote-no
: '&cYou don''t have permission to vote no.' # This is the message that will be displayed when a player doesn't have permission to vote no
  no-permission-to-start-vote
: '&cYou don''t have permission to start a vote.' # This is the message that will be displayed when a player doesn't have permission to start a vote
  no-permission-to-stop-vote
: '&cYou don''t have permission to stop a vote.' # This is the message that will be displayed when a player doesn't have permission to stop a vote
  no-permission-to-reload
: '&cYou don''t have permission to reload the plugin.' # This is the message that will be displayed when a player doesn't have permission to reload the plugin
  reload-successful
: '&aThe plugin has been reloaded.' # This is the message that will be displayed when the plugin has been reloaded
  only-players-can-vote
: '&cOnly players can vote.' # This is the message that will be displayed when a non-player tries to vote
  vote-already-started
: '&cThere is already a vote in progress.' # This is the message that will be displayed when there is already a vote in progress
  vote-tie
: '&cThe vote ended in a tie, time will not be changed.' # This is the message that will be displayed when the vote ended in a tie
  vote-ongoing
: '&aThere is a vote in progress, vote with /tv yes or /tv no.' # This is the message that will be displayed when there is a vote in progress
  vote-already-voted
: '&cYou already voted.' # This is the message that will be displayed when a player already voted
  vote-stopped
: '&cThe vote has been stopped.' # This is the message that will be displayed when a vote has been stopped
  vote-voted-yes
: '&aYou voted yes.' # This is the message that will be displayed when a player voted yes
  vote-voted-no
: '&aYou voted no.' # This is the message that will be displayed when a player voted no
  vote-vote-correctly
: '&cPlease vote correctly.' # This is the message that will be displayed when a player doesn't vote correctly
  vote-failed
: '&cThe vote failed. Time will not be changed.' # This is the message that will be displayed when a vote failed
  vote-failed-majority-voted-no
: '&cThe vote failed. The majority voted no.' # This is the message that will be displayed when a vote failed because the majority voted no
  vote-failed-majority-not-reached
: '&cThe vote failed. The majority was not reached.' # This is the message that will be displayed when a vote failed because the majority was not reached
  vote-failed-no-one-voted
: '&cThe vote failed. No one voted.' # This is the message that will be displayed when a vote failed because no one voted
  vote-ended
: '&aThe vote has ended.' # This is the message that will be displayed when the vote has ended and the time will be set to day
  vote-successful-day
: '&aThe vote was successful, the time has been set to day.' # This is the message that will be displayed when the vote was successful and the time has been set to day
  vote-successful-night
: '&aThe vote was successful, the time has been set to night.' # This is the message that will be displayed when the vote was successful and the time has been set to night
  single-player-vote-yes
: '&aSince you were the only player online, the vote has ended automatically with your chosen outcome.' # This is the message that will be displayed when the vote has ended and the time will be set to day
  single-player-vote-no
: '&aSince you were the only player online and voted "no", the vote has ended without changing the time.' # This is the message that will be displayed when the vote has ended and the time will not be changed
  vote-ended-no
: '&aThe vote has ended, the time will not be changed.' # This is the message that will be displayed when the vote has ended and the time will not be changed
  invalid-option
: '&cInvalid option.' # This is the message that will be displayed when a player uses an invalid option
  invalid-vote-type
: '&cInvalid vote type.' # This is the message that will be displayed when a player uses an invalid vote type
 

If you like my plugin, please give me positive review :)
Also I am open to any and all suggestions, feel free to let me know.

Attention! Please contact me directly if you have any problems or questions before leaving a bad review. I will try my best to make sure you will be happy with the plugin. Thank you!
Resource Information
Author:
----------
Total Downloads: 242
First Release: Sep 14, 2023
Last Update: Sep 14, 2024
Category: ---------------
All-Time Rating:
1 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings