Package com.bencodez.votingplugin.bungee
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCurrentVotePartyVotes
(int amount) void
void
checkCachedVotes
(String server) void
checkOnlineVotes
(net.md_5.bungee.api.connection.ProxiedPlayer player, String uuid, String server) void
void
void
void
com.bencodez.advancedcore.bungeeapi.time.BungeeTimeChecker
int
com.bencodez.advancedcore.bungeeapi.globaldata.GlobalDataHandlerProxy
com.bencodez.advancedcore.bungeeapi.mysql.BungeeMySQL
getMysql()
getProperName
(String uuid, String currentName) com.bencodez.advancedcore.bungeeapi.redis.RedisHandler
int
boolean
isOnline
(net.md_5.bungee.api.connection.ProxiedPlayer p) void
void
login
(net.md_5.bungee.api.connection.ProxiedPlayer p) void
void
onEnable()
void
onLogin
(net.md_5.bungee.api.event.PostLoginEvent event) void
onPluginMessage
(net.md_5.bungee.api.event.PluginMessageEvent ev) void
void
reload
(boolean loadMysql) void
sendMessageServer
(String server, String channel, String... messageData) void
sendPluginMessageServer
(String server, String channel, String... messageData) void
sendRedisMessageServer
(String server, 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
(String server, net.md_5.bungee.api.config.ServerInfo serverInfo) void
setCurrentVotePartyVotes
(int amount) void
setCurrentVotePartyVotesRequired
(int currentVotePartyVotesRequired) void
status
(net.md_5.bungee.api.CommandSender sender) void
vote
(String player, String service, boolean realVote, boolean timeQueue, long queueTime, BungeeMessageData text, String uuid) Methods inherited from class net.md_5.bungee.api.plugin.Plugin
getDataFolder, getDescription, getExecutorService, getFile, getLogger, getProxy, getResourceAsStream, onLoad
-
Constructor Details
-
VotingPluginBungee
public VotingPluginBungee()
-
-
Method Details
-
checkCachedVotes
-
checkOnlineVotes
-
checkVoteCacheTime
public void checkVoteCacheTime() -
debug
-
debug2
-
fetchUUID
- Throws:
Exception
-
getProperName
-
getUUID
-
processQueue
public void processQueue() -
loadVersionFile
public void loadVersionFile() -
onDisable
public void onDisable()- Overrides:
onDisable
in classnet.md_5.bungee.api.plugin.Plugin
-
onEnable
public void onEnable()- Overrides:
onEnable
in classnet.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
-
sendRedisMessageServer
-
sendPluginMessageServer
-
sendServerMessage
-
sendServerMessageServer
-
sendSocketVote
-
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
-
addCurrentVotePartyVotes
public void addCurrentVotePartyVotes(int amount) -
setCurrentVotePartyVotes
public void setCurrentVotePartyVotes(int amount) -
checkVoteParty
public void checkVoteParty() -
addVoteParty
public void addVoteParty() -
sendVoteParty
-
getConfig
-
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
-
getMultiProxyHandler
-
getVotePartyVotes
public int getVotePartyVotes() -
getCurrentVotePartyVotesRequired
public int getCurrentVotePartyVotesRequired() -
setCurrentVotePartyVotesRequired
public void setCurrentVotePartyVotesRequired(int currentVotePartyVotesRequired)
-