Package com.bencodez.votingplugin.data
Class ServerData
java.lang.Object
com.bencodez.votingplugin.data.ServerData
The Class ServerData.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAutoCachedPlaceholder(String placeholder) voidaddServiceSite(String site) voidAdds the sign.voidaddTimeVoted(int num, VoteTimeQueue vote) voidaddVoteShopPurchase(String ident) voidintintorg.bukkit.configuration.ConfigurationSectiongetData()Gets the data.getSignData(String sign) Gets the sign data.org.bukkit.LocationgetSignLocation(String sign) Gets the sign location.intgetSignPosition(String sign) Gets the sign position.getSigns()Gets the signs.org.bukkit.LocationgetSignSkullLocation(String sign) Gets the sign location.org.bukkit.configuration.ConfigurationSectionintintgetVoteShopPurchases(String ident) booleanbooleanbooleanintNext sign number.voidReload data.voidremoveSign(String sign) Removes the sign.voidsaveData()Save data.voidsaveDisabledReminders(ArrayList<UUID> disabledReminders) voidsetAutoCachedPlaceholder(List<String> placeholders) voidsetBungeeVotePartyCurrent(int current) voidsetBungeeVotePartyRequired(int required) voidsetServiceSites(ArrayList<String> list) voidsetShopConverted(boolean value) voidsetSign(String count, org.bukkit.Location location, org.bukkit.Location skullLocation, String data, int position) voidsetSkullLocation(String count, org.bukkit.Location skullLocation) voidSets the version.voidsetVotePartyExtraRequired(int value) voidsetVoteShopPurchases(String ident, int amount) voidvoidvoidvoidUpdate values.
-
Constructor Details
-
ServerData
-
-
Method Details
-
addAutoCachedPlaceholder
-
setShopConverted
public void setShopConverted(boolean value) -
isVoteShopConverted
public boolean isVoteShopConverted() -
updatePlaceholders
public void updatePlaceholders() -
addVoteShopPurchase
-
setVoteShopPurchases
-
getVoteShopPurchases
-
setAutoCachedPlaceholder
-
getAutoCachedPlaceholder
-
getDisabledReminders
-
addServiceSite
-
addSign
Adds the sign.- Parameters:
location- the locationdata- the dataposition- the position
-
getData
public org.bukkit.configuration.ConfigurationSection getData()Gets the data.- Returns:
- the data
-
getServiceSites
-
getSignData
Gets the sign data.- Parameters:
sign- the sign- Returns:
- the sign data
-
getSignLocation
Gets the sign location.- Parameters:
sign- the sign- Returns:
- the sign location
-
getSignPosition
Gets the sign position.- Parameters:
sign- the sign- Returns:
- the sign position
-
getSigns
Gets the signs.- Returns:
- the signs
-
getSignSkullLocation
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
Removes the sign.- Parameters:
sign- the sign
-
saveData
public void saveData()Save data. -
setServiceSites
-
setSign
-
setSkullLocation
-
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
-
updateValues
public void updateValues()Update values. -
addTimeVoted
-
getTimedVoteCacheKeys
-
getTimedVoteCacheSection
-
clearTimedVoteCache
public void clearTimedVoteCache()
-