Class VoteSite
java.lang.Object
com.bencodez.votingplugin.objects.VoteSite
The Class VoteSite.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
broadcastVote
(VotingPluginUser user, boolean checkBungee) Broadcast vote.com.bencodez.advancedcore.api.item.ItemBuilder
getItem()
getKey()
int
org.bukkit.configuration.ConfigurationSection
double
int
double
getVoteURL
(boolean json) void
giveRewards
(VotingPluginUser user, boolean online, boolean bungee) boolean
void
init()
Inits the.boolean
boolean
boolean
isHidden()
boolean
boolean
boolean
boolean
void
setDisplayName
(String displayName) void
setEnabled
(boolean enabled) void
setGiveOffline
(boolean giveOffline) void
setHidden
(boolean hidden) void
setIgnoreCanVote
(boolean ignoreCanVote) void
setItem
(org.bukkit.configuration.ConfigurationSection item) void
void
setPermissionToView
(String permissionToView) void
setPriority
(int priority) void
setServiceSite
(String serviceSite) void
setVoteDelay
(double voteDelay) void
setVoteDelayDaily
(boolean voteDelayDaily) void
setVoteDelayDailyHour
(int voteDelayDailyHour) void
setVoteDelayMin
(double voteDelayMin) void
setVoteURL
(String voteURL) void
setWaitUntilVoteDelay
(boolean waitUntilVoteDelay)
-
Constructor Details
-
VoteSite
-
-
Method Details
-
broadcastVote
-
broadcastVote
Broadcast vote.- Parameters:
user
- the usercheckBungee
- check bungee broadcast
-
getItem
public com.bencodez.advancedcore.api.item.ItemBuilder getItem()- Returns:
- the item
-
getSiteData
public org.bukkit.configuration.ConfigurationSection getSiteData() -
getVoteURL
-
getVoteURL
-
getVoteURLJsonStrip
-
giveRewards
-
hasRewards
public boolean hasRewards() -
init
public void init()Inits the. -
isVaidServiceSite
public boolean isVaidServiceSite() -
loadingDebug
-
getDisplayName
-
setDisplayName
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
isGiveOffline
public boolean isGiveOffline() -
setGiveOffline
public void setGiveOffline(boolean giveOffline) -
isHidden
public boolean isHidden() -
setHidden
public void setHidden(boolean hidden) -
isIgnoreCanVote
public boolean isIgnoreCanVote() -
setIgnoreCanVote
public void setIgnoreCanVote(boolean ignoreCanVote) -
setItem
public void setItem(org.bukkit.configuration.ConfigurationSection item) -
getKey
-
setKey
-
getPriority
public int getPriority() -
setPriority
public void setPriority(int priority) -
getServiceSite
-
setServiceSite
-
getVoteDelayDailyHour
public int getVoteDelayDailyHour() -
setVoteDelayDailyHour
public void setVoteDelayDailyHour(int voteDelayDailyHour) -
getVoteDelay
public double getVoteDelay() -
setVoteDelay
public void setVoteDelay(double voteDelay) -
isVoteDelayDaily
public boolean isVoteDelayDaily() -
setVoteDelayDaily
public void setVoteDelayDaily(boolean voteDelayDaily) -
getVoteDelayMin
public double getVoteDelayMin() -
setVoteDelayMin
public void setVoteDelayMin(double voteDelayMin) -
setVoteURL
-
getPermissionToView
-
setPermissionToView
-
isWaitUntilVoteDelay
public boolean isWaitUntilVoteDelay() -
setWaitUntilVoteDelay
public void setWaitUntilVoteDelay(boolean waitUntilVoteDelay)
-