Class VotingPluginVelocity

java.lang.Object
com.bencodez.votingplugin.bungee.velocity.VotingPluginVelocity

public class VotingPluginVelocity extends Object
  • Constructor Details

    • VotingPluginVelocity

      @Inject public VotingPluginVelocity(com.velocitypowered.api.proxy.ProxyServer server, org.slf4j.Logger logger, org.bstats.velocity.Metrics.Factory metricsFactory, Path dataDirectory)
  • Method Details

    • checkCachedVotes

      public void checkCachedVotes(com.velocitypowered.api.proxy.server.RegisteredServer serverToCheck)
    • checkOnlineVotes

      public void checkOnlineVotes(com.velocitypowered.api.proxy.Player player, String uuid, com.velocitypowered.api.proxy.server.RegisteredServer serverToCheck)
    • debug

      public void debug(String msg)
    • debug2

      public void debug2(String msg)
    • fetchUUID

      public UUID fetchUUID(String playerName) throws Exception
      Throws:
      Exception
    • getProperName

      public String getProperName(String uuid, String currentName)
    • getUUID

      public String getUUID(String playerName)
    • onPluginMessagingReceived

      public void onPluginMessagingReceived(com.velocitypowered.api.event.connection.PluginMessageEvent event)
    • checkVoteCacheTime

      public void checkVoteCacheTime()
    • onProxyDisable

      public void onProxyDisable(com.velocitypowered.api.event.proxy.ProxyShutdownEvent event)
    • onProxyInitialization

      public void onProxyInitialization(com.velocitypowered.api.event.proxy.ProxyInitializeEvent event)
    • sendServerNameMessage

      public void sendServerNameMessage()
    • reload

      public void reload(boolean loadMySQL)
    • sendMessageServer

      public void sendMessageServer(com.velocitypowered.api.proxy.server.RegisteredServer s, String channel, String... messageData)
    • sendRedisMessageServer

      public void sendRedisMessageServer(com.velocitypowered.api.proxy.server.RegisteredServer s, String channel, String... messageData)
    • sendPluginMessageServer

      public void sendPluginMessageServer(com.velocitypowered.api.proxy.server.RegisteredServer s, String channel, String... messageData)
    • sendServerMessage

      public void sendServerMessage(String... messageData)
    • sendServerMessageServer

      public void sendServerMessageServer(String server, String... messageData)
    • sendSocketVote

      public void sendSocketVote(String name, String service, BungeeMessageData text)
    • status

      public void status()
    • processQueue

      public void processQueue()
    • vote

      public void vote(String player, String service, boolean realVote, boolean timeQueue, long queuedTime, BungeeMessageData text, String uuid)
    • isInAvailableServers

      public boolean isInAvailableServers(String server)
    • getAvailableAllServers

      public Set<com.velocitypowered.api.proxy.server.RegisteredServer> getAvailableAllServers()
    • isOnline

      public boolean isOnline(com.velocitypowered.api.proxy.Player p)
    • addCurrentVotePartyVotes

      public void addCurrentVotePartyVotes(int amount)
    • setCurrentVotePartyVotes

      public void setCurrentVotePartyVotes(int amount)
    • addVoteParty

      public void addVoteParty()
    • checkVoteParty

      public void checkVoteParty()
    • getVotePartyServers

      public Collection<com.velocitypowered.api.proxy.server.RegisteredServer> getVotePartyServers()
    • sendVoteParty

      public void sendVoteParty(com.velocitypowered.api.proxy.server.RegisteredServer server)
    • getConfig

      public Config getConfig()
    • getLogger

      public org.slf4j.Logger getLogger()
    • getMethod

      public BungeeMethod getMethod()
    • getMysql

      public com.bencodez.advancedcore.bungeeapi.mysql.VelocityMySQL getMysql()
    • getTimer

      public ScheduledExecutorService getTimer()
    • getBungeeTimeChecker

      public com.bencodez.advancedcore.bungeeapi.time.BungeeTimeChecker getBungeeTimeChecker()
    • getGlobalDataHandler

      public com.bencodez.advancedcore.bungeeapi.globaldata.GlobalDataHandlerProxy getGlobalDataHandler()
    • getRedisHandler

      public com.bencodez.advancedcore.bungeeapi.redis.RedisHandler getRedisHandler()
    • getMultiProxyHandler

      public MultiProxyHandler getMultiProxyHandler()
    • getTimeChangeQueue

      public Queue<VoteTimeQueue> getTimeChangeQueue()
    • getVotePartyVotes

      public int getVotePartyVotes()
    • getCurrentVotePartyVotesRequired

      public int getCurrentVotePartyVotesRequired()
    • setCurrentVotePartyVotesRequired

      public void setCurrentVotePartyVotesRequired(int currentVotePartyVotesRequired)