Package com.bencodez.votingplugin.config
Class ConfigVoteSites
java.lang.Object
com.bencodez.simpleapi.file.YMLFile
com.bencodez.votingplugin.config.ConfigVoteSites
public class ConfigVoteSites
extends com.bencodez.simpleapi.file.YMLFile
The Class ConfigVoteSites.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerateVoteSite(String siteName) Generate vote site.org.bukkit.configuration.ConfigurationSectionGets the data.getDisplayName(String site) org.bukkit.configuration.ConfigurationSectiongetPermissionToView(String siteName) intgetPriority(String siteName) Gets the priority.getRewardsPath(String siteName) Gets the rewards.getServiceSite(String siteName) Gets the service site.doublegetVoteDelay(String siteName) Gets the vote delay.intgetVoteDelayDailyHour(String siteName) doublegetVoteDelayMin(String siteName) booleangetVoteSiteEnabled(String siteName) Gets the vote site enabled.getVoteSiteFile(String siteName) Gets the vote site file.booleangetVoteSiteGiveOffline(String site) booleangetVoteSiteHidden(String siteName) booleangetVoteSiteIgnoreCanVote(String siteName) booleangetVoteSiteResetVoteDelayDaily(String siteName) Gets the vote sites load.getVoteSitesNames(boolean checkEnabled) getVoteURL(String siteName) Gets the vote URL.booleangetWaitUntilVoteDelay(String siteName) booleanisServiceSiteGood(String siteName) Checks if is service site good.booleanisVoteURLGood(String siteName) Checks if is vote URL good.voidbooleanrenameVoteSite(String siteName, String newName) Rename vote site.voidSets the.voidsetCumulativeRewards(String siteName, ArrayList<String> value) Sets the cumulative rewards.voidsetCumulativeVotes(String siteName, int value) voidsetDisplayName(String siteName, String value) voidsetEnabled(String siteName, boolean disabled) Sets the enabled.voidsetForceOffline(String siteName, boolean value) voidsetPriority(String siteName, int value) Sets the priority.voidsetRewards(String siteName, ArrayList<String> value) Sets the rewards.voidsetServiceSite(String siteName, String serviceSite) Sets the service site.voidsetVoteDelay(String siteName, double voteDelay) Sets the vote delay.voidsetVoteDelayDaily(String siteName, boolean value) voidsetVoteURL(String siteName, String url) Sets the vote URL.booleanSite check.Methods inherited from class com.bencodez.simpleapi.file.YMLFile
createSection, getData, getdFile, getPlugin, isFailedToRead, isJustCreated, loadValues, reloadData, saveData, setData, setup, setValue
-
Constructor Details
-
ConfigVoteSites
-
-
Method Details
-
generateVoteSite
Generate vote site.- Parameters:
siteName- the site name
-
getData
Gets the data.- Parameters:
siteName- the site name- Returns:
- the data
-
getDisplayName
-
getEverySiteRewardPath
-
getItem
-
getPriority
Gets the priority.- Parameters:
siteName- the site name- Returns:
- the priority
-
getRewardsPath
Gets the rewards.- Parameters:
siteName- the site name- Returns:
- the rewards
-
getServiceSite
Gets the service site.- Parameters:
siteName- the site name- Returns:
- the service site
-
getVoteDelayDailyHour
-
getVoteDelay
Gets the vote delay.- Parameters:
siteName- the site name- Returns:
- the vote delay
-
getVoteDelayMin
-
getVoteSiteEnabled
Gets the vote site enabled.- Parameters:
siteName- the site name- Returns:
- the vote site enabled
-
getVoteSiteFile
Gets the vote site file.- Parameters:
siteName- the site name- Returns:
- the vote site file
-
getVoteSiteGiveOffline
-
getVoteSiteHidden
-
getVoteSiteIgnoreCanVote
-
getVoteSiteResetVoteDelayDaily
-
getVoteSitesLoad
Gets the vote sites load.- Returns:
- the vote sites load
-
getVoteSitesNames
-
getPermissionToView
-
getVoteURL
Gets the vote URL.- Parameters:
siteName- the site name- Returns:
- the vote URL
-
getWaitUntilVoteDelay
-
isServiceSiteGood
Checks if is service site good.- Parameters:
siteName- the site name- Returns:
- true, if is service site good
-
isVoteURLGood
Checks if is vote URL good.- Parameters:
siteName- the site name- Returns:
- true, if is vote URL good
-
onFileCreation
public void onFileCreation()- Specified by:
onFileCreationin classcom.bencodez.simpleapi.file.YMLFile
-
renameVoteSite
Rename vote site.- Parameters:
siteName- the site namenewName- the new name- Returns:
- true, if successful
-
set
Sets the.- Parameters:
siteName- the site namepath- the pathvalue- the value
-
setCumulativeRewards
Sets the cumulative rewards.- Parameters:
siteName- the site namevalue- the value
-
setCumulativeVotes
-
setDisplayName
-
setEnabled
Sets the enabled.- Parameters:
siteName- the site namedisabled- the disabled
-
setForceOffline
-
setPriority
Sets the priority.- Parameters:
siteName- the site namevalue- the value
-
setRewards
Sets the rewards.- Parameters:
siteName- the site namevalue- the value
-
setServiceSite
Sets the service site.- Parameters:
siteName- the site nameserviceSite- the service site
-
setVoteDelay
Sets the vote delay.- Parameters:
siteName- the site namevoteDelay- the vote delay
-
setVoteDelayDaily
-
setVoteURL
Sets the vote URL.- Parameters:
siteName- the site nameurl- the url
-
siteCheck
Site check.- Parameters:
siteName- the site name- Returns:
- true, if successful
-