Package com.bencodez.votingplugin.data
Class ServerData
java.lang.Object
com.bencodez.votingplugin.data.ServerData
The Class ServerData.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAutoCachedPlaceholder
(String placeholder) void
addServiceSite
(String site) void
Adds the sign.void
addTimeVoted
(int num, VoteTimeQueue vote) void
addVoteShopPurchase
(String ident) void
int
int
org.bukkit.configuration.ConfigurationSection
getData()
Gets the data.getSignData
(String sign) Gets the sign data.org.bukkit.Location
getSignLocation
(String sign) Gets the sign location.int
getSignPosition
(String sign) Gets the sign position.getSigns()
Gets the signs.org.bukkit.Location
getSignSkullLocation
(String sign) Gets the sign location.org.bukkit.configuration.ConfigurationSection
int
int
getVoteShopPurchases
(String ident) boolean
boolean
boolean
int
Next sign number.void
Reload data.void
removeSign
(String sign) Removes the sign.void
saveData()
Save data.void
saveDisabledReminders
(ArrayList<UUID> disabledReminders) void
setAutoCachedPlaceholder
(List<String> placeholders) void
setBungeeVotePartyCurrent
(int current) void
setBungeeVotePartyRequired
(int required) void
setServiceSites
(ArrayList<String> list) void
setShopConverted
(boolean value) void
setSign
(String count, org.bukkit.Location location, org.bukkit.Location skullLocation, String data, int position) void
setSkullLocation
(String count, org.bukkit.Location skullLocation) void
Sets the version.void
setVotePartyExtraRequired
(int value) void
setVoteShopPurchases
(String ident, int amount) void
void
void
void
Update 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()
-