Class VotingPluginBungee

java.lang.Object
net.md_5.bungee.api.plugin.Plugin
com.bencodez.votingplugin.bungee.VotingPluginBungee
All Implemented Interfaces:
net.md_5.bungee.api.plugin.Listener

public class VotingPluginBungee extends net.md_5.bungee.api.plugin.Plugin implements net.md_5.bungee.api.plugin.Listener
  • Constructor Details

    • VotingPluginBungee

      public VotingPluginBungee()
  • Method Details

    • checkCachedVotes

      public void checkCachedVotes(String server)
    • checkOnlineVotes

      public void checkOnlineVotes(net.md_5.bungee.api.connection.ProxiedPlayer player, String uuid, String server)
    • checkVoteCacheTime

      public void checkVoteCacheTime()
    • 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)
    • processQueue

      public void processQueue()
    • loadVersionFile

      public void loadVersionFile()
    • onDisable

      public void onDisable()
      Overrides:
      onDisable in class net.md_5.bungee.api.plugin.Plugin
    • onEnable

      public void onEnable()
      Overrides:
      onEnable in class net.md_5.bungee.api.plugin.Plugin
    • sendServerNameMessage

      public void sendServerNameMessage()
    • onLogin

      public void onLogin(net.md_5.bungee.api.event.PostLoginEvent event)
    • isOnline

      public boolean isOnline(net.md_5.bungee.api.connection.ProxiedPlayer p)
    • login

      public void login(net.md_5.bungee.api.connection.ProxiedPlayer p)
    • onPluginMessage

      public void onPluginMessage(net.md_5.bungee.api.event.PluginMessageEvent ev)
    • reload

      public void reload(boolean loadMysql)
    • sendMessageServer

      public void sendMessageServer(String server, String channel, String... messageData)
    • sendRedisMessageServer

      public void sendRedisMessageServer(String server, String channel, String... messageData)
    • sendPluginMessageServer

      public void sendPluginMessageServer(String server, 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(net.md_5.bungee.api.CommandSender sender)
    • vote

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

      public Set<String> getAvailableAllServers()
    • addCurrentVotePartyVotes

      public void addCurrentVotePartyVotes(int amount)
    • setCurrentVotePartyVotes

      public void setCurrentVotePartyVotes(int amount)
    • checkVoteParty

      public void checkVoteParty()
    • addVoteParty

      public void addVoteParty()
    • sendVoteParty

      public void sendVoteParty(String server, net.md_5.bungee.api.config.ServerInfo serverInfo)
    • getConfig

      public Config getConfig()
    • getMethod

      public BungeeMethod getMethod()
    • getMysql

      public com.bencodez.advancedcore.bungeeapi.mysql.BungeeMySQL getMysql()
    • 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()
    • getTimeChangeQueue

      public Queue<VoteTimeQueue> getTimeChangeQueue()
    • getMultiProxyHandler

      public MultiProxyHandler getMultiProxyHandler()
    • getVotePartyVotes

      public int getVotePartyVotes()
    • getCurrentVotePartyVotesRequired

      public int getCurrentVotePartyVotesRequired()
    • setCurrentVotePartyVotesRequired

      public void setCurrentVotePartyVotesRequired(int currentVotePartyVotesRequired)