Class VoteParty
java.lang.Object
com.bencodez.votingplugin.voteparty.VoteParty
- All Implemented Interfaces:
org.bukkit.event.Listener
The Class VoteParty.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTotal
(VotingPluginUser user) void
Adds the vote player.void
check
(VotingPluginUser user, boolean forceBungee) void
void
commandVoteParty
(org.bukkit.command.CommandSender sender) Command vote party.int
Gets the needed votes.int
Gets the total votes.Gets the voted users.int
void
giveReward
(VotingPluginUser user, boolean useBungee) void
giveReward
(VotingPluginUser user, boolean online, boolean useBungee) void
giveRewards
(VotingPluginUser orgUser, boolean forceBungee) void
onDayChange
(com.bencodez.advancedcore.api.time.events.DayChangeEvent event) void
onMonthChange
(com.bencodez.advancedcore.api.time.events.MonthChangeEvent event) void
onWeekChange
(com.bencodez.advancedcore.api.time.events.WeekChangeEvent event) void
register()
void
reset
(boolean override) void
void
setTotalVotes
(int value) Sets the total votes.void
setVotedUsers
(ArrayList<String> value) Sets the voted users.void
vote
(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
-