Class ServerData

java.lang.Object
com.bencodez.votingplugin.data.ServerData

public class ServerData extends Object
The Class ServerData.
  • Constructor Details

  • Method Details

    • addAutoCachedPlaceholder

      public void addAutoCachedPlaceholder(String placeholder)
    • updatePlaceholders

      public void updatePlaceholders()
    • addVoteShopPurchase

      public void addVoteShopPurchase(String ident)
    • setVoteShopPurchases

      public void setVoteShopPurchases(String ident, int amount)
    • getVoteShopPurchases

      public int getVoteShopPurchases(String ident)
    • setAutoCachedPlaceholder

      public void setAutoCachedPlaceholder(List<String> placeholders)
    • getAutoCachedPlaceholder

      public List<String> getAutoCachedPlaceholder()
    • getDisabledReminders

      public List<String> getDisabledReminders()
    • addServiceSite

      public void addServiceSite(String site)
    • addSign

      public void addSign(org.bukkit.Location location, String data, int position)
      Adds the sign.
      Parameters:
      location - the location
      data - the data
      position - the position
    • getData

      public org.bukkit.configuration.ConfigurationSection getData()
      Gets the data.
      Returns:
      the data
    • getServiceSites

      public ArrayList<String> getServiceSites()
    • getSignData

      public String getSignData(String sign)
      Gets the sign data.
      Parameters:
      sign - the sign
      Returns:
      the sign data
    • getSignLocation

      public org.bukkit.Location getSignLocation(String sign)
      Gets the sign location.
      Parameters:
      sign - the sign
      Returns:
      the sign location
    • getSignPosition

      public int getSignPosition(String sign)
      Gets the sign position.
      Parameters:
      sign - the sign
      Returns:
      the sign position
    • getSigns

      public Set<String> getSigns()
      Gets the signs.
      Returns:
      the signs
    • getSignSkullLocation

      public org.bukkit.Location getSignSkullLocation(String sign)
      Gets the sign location.
      Parameters:
      sign - the sign
      Returns:
      the sign location
    • getVotePartyExtraRequired

      public int getVotePartyExtraRequired()
    • isLastVotePartySameDay

      public boolean isLastVotePartySameDay()
    • isLastVotePartySameWeek

      public boolean isLastVotePartySameWeek()
    • nextSignNumber

      public int nextSignNumber()
      Next sign number.
      Returns:
      the int
    • reloadData

      public void reloadData()
      Reload data.
    • removeSign

      public void removeSign(String sign)
      Removes the sign.
      Parameters:
      sign - the sign
    • saveData

      public void saveData()
      Save data.
    • setServiceSites

      public void setServiceSites(ArrayList<String> list)
    • setSign

      public void setSign(String count, org.bukkit.Location location, org.bukkit.Location skullLocation, String data, int position)
    • setSkullLocation

      public void setSkullLocation(String count, org.bukkit.Location skullLocation)
    • setVersion

      public void setVersion()
      Sets the version.
    • setVotePartyExtraRequired

      public void setVotePartyExtraRequired(int value)
    • updateLastVoteParty

      public void updateLastVoteParty()
    • updateLastVotePartyWeek

      public void updateLastVotePartyWeek()
    • getBungeeVotePartyCurrent

      public int getBungeeVotePartyCurrent()
    • getBungeeVotePartyRequired

      public int getBungeeVotePartyRequired()
    • setBungeeVotePartyCurrent

      public void setBungeeVotePartyCurrent(int current)
    • setBungeeVotePartyRequired

      public void setBungeeVotePartyRequired(int required)
    • saveDisabledReminders

      public void saveDisabledReminders(ArrayList<UUID> disabledReminders)
    • updateValues

      public void updateValues()
      Update values.
    • addTimeVoted

      public void addTimeVoted(int num, VoteTimeQueue vote)
    • getTimedVoteCacheKeys

      public Set<String> getTimedVoteCacheKeys()
    • getTimedVoteCacheSection

      public org.bukkit.configuration.ConfigurationSection getTimedVoteCacheSection(String num)
    • clearTimedVoteCache

      public void clearTimedVoteCache()