Class VoteParty
java.lang.Object
com.bencodez.votingplugin.voteparty.VoteParty
- All Implemented Interfaces:
org.bukkit.event.Listener
The Class VoteParty.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTotal(VotingPluginUser user) voidAdds the vote player.voidcheck(VotingPluginUser user, boolean forceBungee) voidvoidcommandVoteParty(org.bukkit.command.CommandSender sender) Command vote party.intGets the needed votes.intGets the total votes.Gets the voted users.intvoidgiveReward(VotingPluginUser user, boolean useBungee) voidgiveReward(VotingPluginUser user, boolean online, boolean useBungee) voidgiveRewards(VotingPluginUser orgUser, boolean forceBungee) voidonDayChange(com.bencodez.advancedcore.api.time.events.DayChangeEvent event) voidonMonthChange(com.bencodez.advancedcore.api.time.events.MonthChangeEvent event) voidonWeekChange(com.bencodez.advancedcore.api.time.events.WeekChangeEvent event) voidregister()voidreset(boolean override) voidvoidsetTotalVotes(int value) Sets the total votes.voidsetVotedUsers(ArrayList<String> value) Sets the voted users.voidvote(VotingPluginUser user, boolean realVote, boolean forceBungee)
-
Constructor Details
-
VoteParty
-
-
Method Details
-
addTotal
-
addVotePlayer
Adds the vote player.- Parameters:
user- the user
-
check
-
commandVoteParty
public void commandVoteParty(org.bukkit.command.CommandSender sender) Command vote party.- Parameters:
sender- the sender
-
getNeededVotes
public int getNeededVotes()Gets the needed votes.- Returns:
- the needed votes
-
getTotalVotes
public int getTotalVotes()Gets the total votes.- Returns:
- the total votes
-
getVotedUsers
Gets the voted users.- Returns:
- the voted users
-
getVotesRequired
public int getVotesRequired() -
giveReward
-
giveReward
-
getRandomPlayerName
-
giveRewards
-
onDayChange
public void onDayChange(com.bencodez.advancedcore.api.time.events.DayChangeEvent event) -
onMonthChange
public void onMonthChange(com.bencodez.advancedcore.api.time.events.MonthChangeEvent event) -
onWeekChange
public void onWeekChange(com.bencodez.advancedcore.api.time.events.WeekChangeEvent event) -
register
public void register() -
resetVotePartyCount
public void resetVotePartyCount() -
reset
public void reset(boolean override) -
setTotalVotes
public void setTotalVotes(int value) Sets the total votes.- Parameters:
value- the new total votes
-
setVotedUsers
Sets the voted users.- Parameters:
value- the new voted users
-
checkVoteReminder
-
vote
-