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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
generateVoteSite
(String siteName) Generate vote site.org.bukkit.configuration.ConfigurationSection
Gets the data.getDisplayName
(String site) org.bukkit.configuration.ConfigurationSection
getPermissionToView
(String siteName) int
getPriority
(String siteName) Gets the priority.getRewardsPath
(String siteName) Gets the rewards.getServiceSite
(String siteName) Gets the service site.double
getVoteDelay
(String siteName) Gets the vote delay.int
getVoteDelayDailyHour
(String siteName) double
getVoteDelayMin
(String siteName) boolean
getVoteSiteEnabled
(String siteName) Gets the vote site enabled.getVoteSiteFile
(String siteName) Gets the vote site file.boolean
getVoteSiteGiveOffline
(String site) boolean
getVoteSiteHidden
(String siteName) boolean
getVoteSiteIgnoreCanVote
(String siteName) boolean
getVoteSiteResetVoteDelayDaily
(String siteName) Gets the vote sites load.getVoteSitesNames
(boolean checkEnabled) getVoteURL
(String siteName) Gets the vote URL.boolean
getWaitUntilVoteDelay
(String siteName) boolean
isServiceSiteGood
(String siteName) Checks if is service site good.boolean
isVoteURLGood
(String siteName) Checks if is vote URL good.void
boolean
renameVoteSite
(String siteName, String newName) Rename vote site.void
Sets the.void
setCumulativeRewards
(String siteName, ArrayList<String> value) Sets the cumulative rewards.void
setCumulativeVotes
(String siteName, int value) void
setDisplayName
(String siteName, String value) void
setEnabled
(String siteName, boolean disabled) Sets the enabled.void
setForceOffline
(String siteName, boolean value) void
setPriority
(String siteName, int value) Sets the priority.void
setRewards
(String siteName, ArrayList<String> value) Sets the rewards.void
setServiceSite
(String siteName, String serviceSite) Sets the service site.void
setVoteDelay
(String siteName, double voteDelay) Sets the vote delay.void
setVoteDelayDaily
(String siteName, boolean value) void
setVoteURL
(String siteName, String url) Sets the vote URL.boolean
Site 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:
onFileCreation
in 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
-