Class VotingPluginVelocity
java.lang.Object
com.bencodez.votingplugin.bungee.velocity.VotingPluginVelocity
-
Constructor Summary
ConstructorDescriptionVotingPluginVelocity
(com.velocitypowered.api.proxy.ProxyServer server, org.slf4j.Logger logger, org.bstats.velocity.Metrics.Factory metricsFactory, Path dataDirectory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCurrentVotePartyVotes
(int amount) void
void
checkCachedVotes
(com.velocitypowered.api.proxy.server.RegisteredServer serverToCheck) void
checkOnlineVotes
(com.velocitypowered.api.proxy.Player player, String uuid, com.velocitypowered.api.proxy.server.RegisteredServer serverToCheck) void
void
void
void
Set<com.velocitypowered.api.proxy.server.RegisteredServer>
com.bencodez.advancedcore.bungeeapi.time.BungeeTimeChecker
int
com.bencodez.advancedcore.bungeeapi.globaldata.GlobalDataHandlerProxy
org.slf4j.Logger
com.bencodez.advancedcore.bungeeapi.mysql.VelocityMySQL
getMysql()
getProperName
(String uuid, String currentName) com.bencodez.advancedcore.bungeeapi.redis.RedisHandler
getTimer()
Collection<com.velocitypowered.api.proxy.server.RegisteredServer>
int
boolean
isInAvailableServers
(String server) boolean
isOnline
(com.velocitypowered.api.proxy.Player p) void
onPluginMessagingReceived
(com.velocitypowered.api.event.connection.PluginMessageEvent event) void
onProxyDisable
(com.velocitypowered.api.event.proxy.ProxyShutdownEvent event) void
onProxyInitialization
(com.velocitypowered.api.event.proxy.ProxyInitializeEvent event) void
void
reload
(boolean loadMySQL) void
sendMessageServer
(com.velocitypowered.api.proxy.server.RegisteredServer s, String channel, String... messageData) void
sendPluginMessageServer
(com.velocitypowered.api.proxy.server.RegisteredServer s, String channel, String... messageData) void
sendRedisMessageServer
(com.velocitypowered.api.proxy.server.RegisteredServer s, String channel, String... messageData) void
sendServerMessage
(String... messageData) void
sendServerMessageServer
(String server, String... messageData) void
void
sendSocketVote
(String name, String service, BungeeMessageData text) void
sendVoteParty
(com.velocitypowered.api.proxy.server.RegisteredServer server) void
setCurrentVotePartyVotes
(int amount) void
setCurrentVotePartyVotesRequired
(int currentVotePartyVotesRequired) void
status()
void
vote
(String player, String service, boolean realVote, boolean timeQueue, long queuedTime, BungeeMessageData text, String uuid)
-
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
-
debug2
-
fetchUUID
- Throws:
Exception
-
getProperName
-
getUUID
-
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
-
sendRedisMessageServer
-
sendPluginMessageServer
-
sendServerMessage
-
sendServerMessageServer
-
sendSocketVote
-
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
-
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
-
sendVoteParty
public void sendVoteParty(com.velocitypowered.api.proxy.server.RegisteredServer server) -
getConfig
-
getLogger
public org.slf4j.Logger getLogger() -
getMethod
-
getMysql
public com.bencodez.advancedcore.bungeeapi.mysql.VelocityMySQL getMysql() -
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
-
getTimeChangeQueue
-
getVotePartyVotes
public int getVotePartyVotes() -
getCurrentVotePartyVotesRequired
public int getCurrentVotePartyVotesRequired() -
setCurrentVotePartyVotesRequired
public void setCurrentVotePartyVotesRequired(int currentVotePartyVotesRequired)
-