MistfireVoteManager
Summary
Uses Votifier to give out rewards based on your configuration of the plugin YAML files.
*REQUIRES VOTIFIER
- Where '[PlayerName]' - Replace with the player name.
- Where [WorldName] - Replace with the name of the world on your server you wish the command to be executed.
- Where [Command] - Replace with a command such as 'give MistfireWolf diamond 1', or any other item you wish to give a player for voting for you.
The First Command
'/rewardset [PlayerName] [WorldName] [Command]
- Note: The [Command] section, is not case sensitive compulsory. However you are able use commands that are case sensitive, and the command will function as intended.
The Second Command
'/claim'
- This command will only work when the user who has a 'reward' pending, is in the world specified in the command and/or config.
- If the user is in the correct world, they will have the 'reward' placed in their inventory (or applied to their character).
- If the user inventory is full, the command will not run, and the 'reward' will stay in their 'reward bank'.
The Third Command
'/rewardreset [player] [world]'
- This command is purely for staff.
- Resets all rewards for a specific player for a specific world.
- TL:DR - Deletes player rewards.
Offline Voting
If a player votes when they are offline, they will still receive a 'reward'. A broadcast is displayed per player per vote.
Permission nodes
- mistfirevotemanager.rewardset
- mistfirevotemanager.rewardreset
Config Setup
Config Files
- config.yml
- voteCommand.yml
- votePartyCommand
Config Syntax
- Anywhere a command needs a player specified (in config), simply use '{username}' in place of the player's username.
config.yml
- This is the location of every player and their rewards for every world on your server.
- There is no setup required for this configuration file.
- All edits to this config file will be saved while the server is not running.
voteCommand.yml
- This is the config that will control what reward your players will receive on a world which you specify.
- After 'world:' replace 'world' with: the name of the world folder you want vote rewards to be given out on.
- After 'command:' replace 'crates give {username} vote 1' with: a command. This could give a player who just voted an item of some description.
- NOTE: players can also be given commands.
votePartyCommand.yml
- This is the config that will control how many votes it will take to trigger the Vote Party.
- The number after maxVotes is the number of votes it will take to trigger the Vote Party.
- The number after remainingVotes is the number that controls how many more votes it will take to trigger the Vote Party.
- After 'votePartyCommand:' is where you will put the command to be run for each player when the Vote Party is triggered.