Jump to content

VoteDay [NO UPDATE] 1.2.0

   (1 review)
Message added by Kalvi,

Plugin will not be updated anymore!

4 Screenshots

  • 12.2k
  • 832
  • 8.66 kB
  • Update details
    v1.2.0
    Released
    Download size8.66 kB
    Total versions2
    Time between versions 1 day
    Typical update pace About every 1 day
    Freshness 616 days ago

About VoteDay [NO UPDATE]

The plugin adds the ability to skip nights by voting with the /voteday command.
Additionally, the command can be used by people who have permission.

Every day at 19:00 in-game time the voting is turned on, if the voting is successful the time is switched to 8:00 am.


Command

/voteday: Starts voting for skipping the night if voting is not already in progress. Requires the "voteday.use” permission.

/voteday reload: Reloads the plugin configuration. Requires "voteday.admin” permission.

/voteday set timevote <seconds>: Sets the voting time in seconds and saves it to the configuration file. Requires the "voteday.admin” permission.

/voteday set requiredpercentage <percentage>: Sets the required percentage of votes (ranging from 1 to 100) and writes it to the configuration file. Requires the "voteday.admin” permission.


Permission

voteday.use: Allows the player to participate in voting.
voteday.admin: Allows the player to reload the plugin configuration and change the voting settings.


Configuration file

{
  "VoteDuration": 180.0,
  "RequiredPercentage": 50
}


Lang

{
  "VoteStarted": "<color=#FFFF00>Vote to skip the night has started! You have {0} seconds to vote. Type /voteday to vote. {1} votes are needed to pass.</color>",
  "VoteCount": "<color=#00FF00>{0} players voted yes out of {1}.</color>",
  "VotePassed": "<color=#00FF00>The vote passed! {0} players voted yes out of {1}. Skipping to day.</color>",
  "VoteFailed": "<color=#FF0000>The vote failed. {0} players voted yes out of {1}. The night will continue.</color>",
  "NoPermission": "<color=#FF0000>You do not have permission to use this command.</color>",
  "AlreadyVoting": "<color=#FF0000>A vote is already in progress.</color>",
  "AlreadyVoted": "<color=#FF0000>You have already voted.</color>",
  "ConfigReloaded": "<color=#00FF00>Configuration reloaded successfully.</color>",
  "InvalidCommand": "<color=#FF0000>Invalid command usage. Use /voteday set timevote <seconds> or /voteday set requiredpercentage <percentage>.</color>",
  "VoteDurationSet": "<color=#00FF00>Vote duration set to {0} seconds.</color>",
  "RequiredPercentageSet": "<color=#00FF00>Required vote percentage set to {0}%.</color>",
  "InvalidPercentage": "<color=#FF0000>Invalid percentage. Please enter a value between 1 and 100.</color>"
}

 


User Feedback

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.4m
Total downloads
Customers
10.8k
Customers served
Files Sold
155.5k
Marketplace sales
Payments
3.3m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.