Package com.vexsoftware.votifier
Class NuVotifierBukkit
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
com.vexsoftware.votifier.NuVotifierBukkit
- All Implemented Interfaces:
com.vexsoftware.votifier.platform.forwarding.listener.ForwardedVoteListener,com.vexsoftware.votifier.platform.plugin.VotifierPlugin,com.vexsoftware.votifier.VoteHandler,io.papermc.paper.plugin.lifecycle.event.LifecycleEventOwner,net.kyori.adventure.key.Namespaced,org.bukkit.command.CommandExecutor,org.bukkit.command.TabCompleter,org.bukkit.command.TabExecutor,org.bukkit.plugin.Plugin
public class NuVotifierBukkit
extends org.bukkit.plugin.java.JavaPlugin
implements com.vexsoftware.votifier.VoteHandler, com.vexsoftware.votifier.platform.plugin.VotifierPlugin, com.vexsoftware.votifier.platform.forwarding.listener.ForwardedVoteListener
The main Votifier plugin class.
-
Field Summary
Fields inherited from interface com.vexsoftware.votifier.platform.plugin.VotifierPlugin
KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.vexsoftware.votifier.platform.logger.LoggingAdaptercom.vexsoftware.votifier.platform.scheduler.VotifierSchedulerbooleanisDebug()voidvoidonEnable()voidvoidonForward(com.vexsoftware.votifier.model.Vote vote) voidonVoteReceived(com.vexsoftware.votifier.model.Vote vote, com.vexsoftware.votifier.network.protocol.session.VotifierSession.ProtocolVersion protocolVersion, String remoteAddress) booleanreload()Methods inherited from class org.bukkit.plugin.java.JavaPlugin
getClassLoader, getCommand, getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getFile, getLifecycleManager, getLogger, getPlugin, getPluginLoader, getPluginMeta, getProvidingPlugin, getResource, getServer, getTextResource, init, init, isEnabled, isNaggable, onCommand, onLoad, onTabComplete, registerCommand, registerCommand, registerCommand, registerCommand, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toStringMethods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode, namespaceMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bukkit.plugin.Plugin
getComponentLogger, getDataPath, getLog4JLogger, getSLF4JLogger
-
Constructor Details
-
NuVotifierBukkit
public NuVotifierBukkit()
-
-
Method Details
-
onEnable
public void onEnable()- Specified by:
onEnablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onEnablein classorg.bukkit.plugin.java.JavaPlugin
-
onDisable
public void onDisable()- Specified by:
onDisablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onDisablein classorg.bukkit.plugin.java.JavaPlugin
-
reload
public boolean reload() -
getPluginLogger
public com.vexsoftware.votifier.platform.logger.LoggingAdapter getPluginLogger()- Specified by:
getPluginLoggerin interfacecom.vexsoftware.votifier.platform.plugin.VotifierPlugin
-
getScheduler
public com.vexsoftware.votifier.platform.scheduler.VotifierScheduler getScheduler()- Specified by:
getSchedulerin interfacecom.vexsoftware.votifier.platform.plugin.VotifierPlugin
-
isDebug
public boolean isDebug()- Specified by:
isDebugin interfacecom.vexsoftware.votifier.platform.plugin.VotifierPlugin
-
getTokens
- Specified by:
getTokensin interfacecom.vexsoftware.votifier.platform.plugin.VotifierPlugin
-
getProtocolV1Key
- Specified by:
getProtocolV1Keyin interfacecom.vexsoftware.votifier.platform.plugin.VotifierPlugin
-
onVoteReceived
public void onVoteReceived(com.vexsoftware.votifier.model.Vote vote, com.vexsoftware.votifier.network.protocol.session.VotifierSession.ProtocolVersion protocolVersion, String remoteAddress) - Specified by:
onVoteReceivedin interfacecom.vexsoftware.votifier.VoteHandler
-
onError
- Specified by:
onErrorin interfacecom.vexsoftware.votifier.VoteHandler
-
onForward
public void onForward(com.vexsoftware.votifier.model.Vote vote) - Specified by:
onForwardin interfacecom.vexsoftware.votifier.platform.forwarding.listener.ForwardedVoteListener
-