Class VoteParty

java.lang.Object
com.bencodez.votingplugin.voteparty.VoteParty
All Implemented Interfaces:
org.bukkit.event.Listener

public class VoteParty extends Object implements org.bukkit.event.Listener
The Class VoteParty.
  • Constructor Details

  • Method Details

    • addTotal

      public void addTotal(VotingPluginUser user)
    • addVotePlayer

      public void addVotePlayer(VotingPluginUser user)
      Adds the vote player.
      Parameters:
      user - the user
    • check

      public void check(VotingPluginUser user, boolean forceBungee)
    • 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

      public ArrayList<String> getVotedUsers()
      Gets the voted users.
      Returns:
      the voted users
    • getVotesRequired

      public int getVotesRequired()
    • giveReward

      public void giveReward(VotingPluginUser user, boolean useBungee)
    • giveReward

      public void giveReward(VotingPluginUser user, boolean online, boolean useBungee)
    • getRandomPlayerName

      public String getRandomPlayerName()
    • giveRewards

      public void giveRewards(VotingPluginUser orgUser, boolean forceBungee)
    • 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

      public void setVotedUsers(ArrayList<String> value)
      Sets the voted users.
      Parameters:
      value - the new voted users
    • checkVoteReminder

      public void checkVoteReminder(VotingPluginUser user)
    • vote

      public void vote(VotingPluginUser user, boolean realVote, boolean forceBungee)