|
|
| Vote (CommandSender sender, Component prompt) |
| Vote | setYesPercentage (double percentage) |
|
Vote | setTimeOut (int seconds) |
|
Vote | setCooldownTicks (int ticks) |
|
Vote | setCooldownSecs (int seconds) |
|
Vote | setCooldownMins (int mins) |
| Vote | setPlayerSelectionFunction (Function< Player, Boolean > playerSelectionFunction) |
|
void | startVote () |
|
Vote | onSucceed (Runnable runnable) |
|
Vote | onFail (Runnable runnable) |
|
Vote | onAlways (Runnable runnable) |
|
Vote | onCooldown (Runnable runnable) |
|
int | getYesVotes () |
|
int | getNoVotes () |
|
int | getTotalVotes () |
|
Component | getPrompt () |
| Public Member Functions inherited from cc.mrcl.hopperlib.CommandTools.CommandTool |
|
| CommandTool (CommandSender sender) |
|
CommandSender | getSender () |
|
|
static List< Player > | getCooldownList () |
◆ setPlayerSelectionFunction()
| Vote cc.mrcl.hopperlib.CommandTools.Voting.Vote.setPlayerSelectionFunction |
( |
Function< Player, Boolean > | playerSelectionFunction | ) |
|
- Parameters
-
| playerSelectionFunction | the function that decides if a player should be considered in the vote |
- Returns
- the changed Vote object
◆ setYesPercentage()
| Vote cc.mrcl.hopperlib.CommandTools.Voting.Vote.setYesPercentage |
( |
double | percentage | ) |
|
- Parameters
-
| percentage | the percentage of positive answers required to make the vote succeed. |
- Returns
- the changed Vote object
The documentation for this class was generated from the following file:
- src/main/java/cc/mrcl/hopperlib/CommandTools/Voting/Vote.java