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 Details

  • Constructor Details

    • VotingPluginMain

      public VotingPluginMain()
  • Method Details

    • addDirectlyDefinedRewards

      public void addDirectlyDefinedRewards(com.bencodez.advancedcore.api.rewards.DirectlyDefinedReward directlyDefinedReward)
    • basicBungeeUpdate

      public void basicBungeeUpdate()
    • convertSet

      public ArrayList<TopVoterPlayer> convertSet(Set<TopVoterPlayer> set)
    • getConfig

      public org.bukkit.configuration.file.FileConfiguration getConfig()
      Specified by:
      getConfig in interface org.bukkit.plugin.Plugin
      Overrides:
      getConfig in class org.bukkit.plugin.java.JavaPlugin
    • getTopVoter

      public LinkedHashMap<TopVoterPlayer,Integer> getTopVoter(TopVoter top)
    • getUser

      public VotingPluginUser getUser(UUID uuid)
      Gets the user.
      Parameters:
      uuid - the uuid
      Returns:
      the user
    • getVoteSite

      public VoteSite getVoteSite(String site, boolean checkEnabled)
    • getVoteSitesEnabled

      public ArrayList<VoteSite> getVoteSitesEnabled()
    • getVoteSiteName

      public String getVoteSiteName(boolean checkEnabled, String... urls)
    • getVoteSiteServiceSite

      public String getVoteSiteServiceSite(String name)
    • hasVoteSite

      public boolean hasVoteSite(String site)
    • isVoteSite

      public boolean isVoteSite(String voteSite)
    • loadDirectlyDefined

      public void loadDirectlyDefined()
    • loadVoteSites

      public void loadVoteSites()
      Load vote sites.
    • logVote

      public void logVote(LocalDateTime date, String playerName, String voteSite)
      Log vote.
      Parameters:
      date - the date
      playerName - the player name
      voteSite - the vote site
    • onPostLoad

      public void onPostLoad()
      Specified by:
      onPostLoad in class com.bencodez.advancedcore.AdvancedCorePlugin
    • onPreLoad

      public void onPreLoad()
      Specified by:
      onPreLoad in class com.bencodez.advancedcore.AdvancedCorePlugin
    • onUnLoad

      public void onUnLoad()
      Specified by:
      onUnLoad in class com.bencodez.advancedcore.AdvancedCorePlugin
    • reload

      public void reload()
      Reload.
      Specified by:
      reload in class com.bencodez.advancedcore.AdvancedCorePlugin
    • reloadAll

      public void reloadAll()
    • update

      public void update()
    • checkFirstTimeLoaded

      public void checkFirstTimeLoaded()
    • updateAdvancedCoreHook

      public void updateAdvancedCoreHook()
    • getPlugin

      public static VotingPluginMain getPlugin()
    • getAdminVoteCommand

      public ArrayList<com.bencodez.advancedcore.api.command.CommandHandler> getAdminVoteCommand()
    • setAdminVoteCommand

      public void setAdminVoteCommand(ArrayList<com.bencodez.advancedcore.api.command.CommandHandler> adminVoteCommand)
    • getAdvancedTab

      public LinkedHashMap<UUID,ArrayList<String>> getAdvancedTab()
    • getBroadcastHandler

      public BroadcastHandler getBroadcastHandler()
    • getBungeeHandler

      public BungeeHandler getBungeeHandler()
    • getBungeeSettings

      public BungeeSettings getBungeeSettings()
    • getCheckUpdate

      public CheckUpdate getCheckUpdate()
    • getCommandLoader

      public CommandLoader getCommandLoader()
    • getConfigFile

      public Config getConfigFile()
    • getConfigVoteSites

      public ConfigVoteSites getConfigVoteSites()
    • getCoolDownCheck

      public CoolDownCheck getCoolDownCheck()
    • getGui

      public GUI getGui()
    • getShopFile

      public ShopFile getShopFile()
    • getLastMonthTopVoter

      public LinkedHashMap<TopVoterPlayer,Integer> getLastMonthTopVoter()
    • getMvdwPlaceholders

      public MVdWPlaceholders getMvdwPlaceholders()
    • getPlaceholders

      public PlaceHolders getPlaceholders()
    • getVoteTester

      public VoteTester getVoteTester()
    • getProfile

      public String getProfile()
    • getBuildNumber

      public String getBuildNumber()
    • getServerData

      public ServerData getServerData()
    • getSigns

      public Signs getSigns()
    • setSigns

      public void setSigns(Signs signs)
    • getSpecialRewards

      public SpecialRewards getSpecialRewards()
    • getSpecialRewardsConfig

      public SpecialRewardsConfig getSpecialRewardsConfig()
    • getTime

      public String getTime()
    • getTopVoter

    • setTopVoter

      public void setTopVoter(LinkedHashMap<TopVoter,LinkedHashMap<TopVoterPlayer,Integer>> topVoter)
    • getTopVoterHandler

      public TopVoterHandler 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

      public ArrayList<com.bencodez.advancedcore.api.command.CommandHandler> getVoteCommand()
    • setVoteCommand

      public void setVoteCommand(ArrayList<com.bencodez.advancedcore.api.command.CommandHandler> voteCommand)
    • getVoteLog

      public com.bencodez.advancedcore.logger.Logger getVoteLog()
    • getVoteParty

      public VoteParty getVoteParty()
    • getVoteReminding

      public VoteReminding getVoteReminding()
    • getVoteSites

      public List<VoteSite> getVoteSites()
    • getVoteToday

    • setVoteToday

      public void setVoteToday(LinkedHashMap<TopVoterPlayer,HashMap<VoteSite,LocalDateTime>> voteToday)
    • isYmlError

      public boolean isYmlError()
    • getVoteTimer

      public ScheduledExecutorService getVoteTimer()
    • getVotingPluginUserManager

      public UserManager getVotingPluginUserManager()
    • getTimeQueueHandler

      public TimeQueueHandler getTimeQueueHandler()
    • getServiceSiteHandler

      public ServiceSiteHandler getServiceSiteHandler()
    • getLastBackgroundTaskTimeTaken

      public long getLastBackgroundTaskTimeTaken()