Package com.bencodez.votingplugin
Class VotingPluginMain
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
com.bencodez.advancedcore.AdvancedCorePlugin
com.bencodez.votingplugin.VotingPluginMain
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor
,org.bukkit.command.TabCompleter
,org.bukkit.command.TabExecutor
,org.bukkit.plugin.Plugin
public class VotingPluginMain
extends com.bencodez.advancedcore.AdvancedCorePlugin
The Class Main.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDirectlyDefinedRewards
(com.bencodez.advancedcore.api.rewards.DirectlyDefinedReward directlyDefinedReward) void
void
convertSet
(Set<TopVoterPlayer> set) ArrayList<com.bencodez.advancedcore.api.command.CommandHandler>
org.bukkit.configuration.file.FileConfiguration
getGui()
long
static VotingPluginMain
getSigns()
getTime()
getTopVoter
(TopVoter top) com.bencodez.simpleapi.updater.Updater
Gets the user.ArrayList<com.bencodez.advancedcore.api.command.CommandHandler>
com.bencodez.advancedcore.logger.Logger
getVoteSite
(String site, boolean checkEnabled) getVoteSiteName
(boolean checkEnabled, String... urls) getVoteSiteServiceSite
(String name) boolean
hasVoteSite
(String site) boolean
isUpdate()
boolean
boolean
isVoteSite
(String voteSite) boolean
void
void
Load vote sites.void
logVote
(LocalDateTime date, String playerName, String voteSite) Log vote.void
void
void
onUnLoad()
void
reload()
Reload.void
void
setAdminVoteCommand
(ArrayList<com.bencodez.advancedcore.api.command.CommandHandler> adminVoteCommand) void
void
setTopVoter
(LinkedHashMap<TopVoter, LinkedHashMap<TopVoterPlayer, Integer>> topVoter) void
setUpdate
(boolean update) void
setUpdater
(com.bencodez.simpleapi.updater.Updater updater) void
setVoteCommand
(ArrayList<com.bencodez.advancedcore.api.command.CommandHandler> voteCommand) void
setVoteToday
(LinkedHashMap<TopVoterPlayer, HashMap<VoteSite, LocalDateTime>> voteToday) void
update()
void
Methods inherited from class com.bencodez.advancedcore.AdvancedCorePlugin
addUserStartup, allowDownloadingFromSpigot, checkPluginUpdate, convertDataStorage, debug, debug, debug, devDebug, extraDebug, getAdvancedCoreBuildNumber, getAdvancedCoreCommandLoader, getBannedPlayers, getBuildTime, getBukkitScheduler, getBungeeChannel, getCmiHandle, getEcon, getFullInventoryHandler, getGeyserHandle, getHologramHandler, getInstance, getInventoryTimer, getJavascriptEngine, getJavascriptEngineRequests, getJenkinsSite, getLoginTimer, getLuckPermsHandle, getMysql, getOptions, getPermissionHandler, getPerms, getPluginLogger, getPluginMessaging, getRewardHandler, getServerDataFile, getSignMenu, getSkullCacheHandler, getSQLiteUserTable, getStorageType, getTimeChecker, getTimer, getUserManager, getUuidNameCache, getVersion, isAuthMeLoaded, isLoadGeyserAPI, isLoadLuckPerms, isLoadRewards, isLoadServerData, isLoadSkullHandler, isLoadUserData, isLoadVault, isLoginSecurityLoaded, isMySQLOkay, isPlaceHolderAPIEnabled, loadAdvancedCoreEvents, loadAutoUpdateCheck, loadHook, loadLogger, loadTabComplete, loadUserAPI, loadValueRequestInputCommands, loadVault, onDisable, onEnable, registerBungeeChannels, registerEvents, reloadAdvancedCore, reloadAdvancedCore, setBungeeChannel, setConfigData, setConfigData, setJavascriptEngine, setJavascriptEngineRequests, setJenkinsSite, setLoadGeyserAPI, setLoadLuckPerms, setLoadRewards, setLoadServerData, setLoadSkullHandler, setLoadUserData, setLoadVault, setMysql, setUserManager, unRegisterValueRequest, userStartup
Methods inherited from class org.bukkit.plugin.java.JavaPlugin
getClassLoader, getCommand, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, isEnabled, isNaggable, onCommand, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toString
Methods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode
-
Field Details
-
plugin
-
-
Constructor Details
-
VotingPluginMain
public VotingPluginMain()
-
-
Method Details
-
addDirectlyDefinedRewards
public void addDirectlyDefinedRewards(com.bencodez.advancedcore.api.rewards.DirectlyDefinedReward directlyDefinedReward) -
basicBungeeUpdate
public void basicBungeeUpdate() -
convertSet
-
getConfig
public org.bukkit.configuration.file.FileConfiguration getConfig()- Specified by:
getConfig
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
getConfig
in classorg.bukkit.plugin.java.JavaPlugin
-
getTopVoter
-
getUser
Gets the user.- Parameters:
uuid
- the uuid- Returns:
- the user
-
getVoteSite
-
getVoteSitesEnabled
-
getVoteSiteName
-
getVoteSiteServiceSite
-
hasVoteSite
-
isVoteSite
-
loadDirectlyDefined
public void loadDirectlyDefined() -
loadVoteSites
public void loadVoteSites()Load vote sites. -
logVote
Log vote.- Parameters:
date
- the dateplayerName
- the player namevoteSite
- the vote site
-
onPostLoad
public void onPostLoad()- Specified by:
onPostLoad
in classcom.bencodez.advancedcore.AdvancedCorePlugin
-
onPreLoad
public void onPreLoad()- Specified by:
onPreLoad
in classcom.bencodez.advancedcore.AdvancedCorePlugin
-
onUnLoad
public void onUnLoad()- Specified by:
onUnLoad
in classcom.bencodez.advancedcore.AdvancedCorePlugin
-
reload
public void reload()Reload.- Specified by:
reload
in classcom.bencodez.advancedcore.AdvancedCorePlugin
-
reloadAll
public void reloadAll() -
update
public void update() -
checkFirstTimeLoaded
public void checkFirstTimeLoaded() -
updateAdvancedCoreHook
public void updateAdvancedCoreHook() -
getPlugin
-
getAdminVoteCommand
-
setAdminVoteCommand
public void setAdminVoteCommand(ArrayList<com.bencodez.advancedcore.api.command.CommandHandler> adminVoteCommand) -
getAdvancedTab
-
getBroadcastHandler
-
getBungeeHandler
-
getBungeeSettings
-
getCheckUpdate
-
getCommandLoader
-
getConfigFile
-
getConfigVoteSites
-
getCoolDownCheck
-
getGui
-
getShopFile
-
getLastMonthTopVoter
-
getMvdwPlaceholders
-
getPlaceholders
-
getVoteTester
-
getProfile
-
getBuildNumber
-
getServerData
-
getSigns
-
setSigns
-
getSpecialRewards
-
getSpecialRewardsConfig
-
getTime
-
getTopVoter
-
setTopVoter
-
getTopVoterHandler
-
isUpdate
public boolean isUpdate() -
setUpdate
public void setUpdate(boolean update) -
getUpdater
public com.bencodez.simpleapi.updater.Updater getUpdater() -
setUpdater
public void setUpdater(com.bencodez.simpleapi.updater.Updater updater) -
isUpdateStarted
public boolean isUpdateStarted() -
getVoteCommand
-
setVoteCommand
public void setVoteCommand(ArrayList<com.bencodez.advancedcore.api.command.CommandHandler> voteCommand) -
getVoteLog
public com.bencodez.advancedcore.logger.Logger getVoteLog() -
getVoteParty
-
getVoteReminding
-
getVoteSites
-
getVoteToday
-
setVoteToday
-
isYmlError
public boolean isYmlError() -
getVoteTimer
-
getVotingPluginUserManager
-
getTimeQueueHandler
-
getServiceSiteHandler
-
getLastBackgroundTaskTimeTaken
public long getLastBackgroundTaskTimeTaken()
-