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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.vexsoftware.votifier.platform.logger.LoggingAdapter
     
     
    com.vexsoftware.votifier.platform.scheduler.VotifierScheduler
     
     
    boolean
     
    void
     
    void
     
    void
    onError(Throwable throwable, boolean alreadyHandledVote, String remoteAddress)
     
    void
    onForward(com.vexsoftware.votifier.model.Vote vote)
     
    void
    onVoteReceived(com.vexsoftware.votifier.model.Vote vote, com.vexsoftware.votifier.network.protocol.session.VotifierSession.ProtocolVersion protocolVersion, String remoteAddress)
     
    boolean
     

    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, toString

    Methods inherited from class org.bukkit.plugin.PluginBase

    equals, getName, hashCode, namespace

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.bukkit.plugin.Plugin

    getComponentLogger, getDataPath, getLog4JLogger, getSLF4JLogger
  • Constructor Details

    • NuVotifierBukkit

      public NuVotifierBukkit()
  • Method Details

    • onEnable

      public void onEnable()
      Specified by:
      onEnable in interface org.bukkit.plugin.Plugin
      Overrides:
      onEnable in class org.bukkit.plugin.java.JavaPlugin
    • onDisable

      public void onDisable()
      Specified by:
      onDisable in interface org.bukkit.plugin.Plugin
      Overrides:
      onDisable in class org.bukkit.plugin.java.JavaPlugin
    • reload

      public boolean reload()
    • getPluginLogger

      public com.vexsoftware.votifier.platform.logger.LoggingAdapter getPluginLogger()
      Specified by:
      getPluginLogger in interface com.vexsoftware.votifier.platform.plugin.VotifierPlugin
    • getScheduler

      public com.vexsoftware.votifier.platform.scheduler.VotifierScheduler getScheduler()
      Specified by:
      getScheduler in interface com.vexsoftware.votifier.platform.plugin.VotifierPlugin
    • isDebug

      public boolean isDebug()
      Specified by:
      isDebug in interface com.vexsoftware.votifier.platform.plugin.VotifierPlugin
    • getTokens

      public Map<String,Key> getTokens()
      Specified by:
      getTokens in interface com.vexsoftware.votifier.platform.plugin.VotifierPlugin
    • getProtocolV1Key

      public KeyPair getProtocolV1Key()
      Specified by:
      getProtocolV1Key in interface com.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:
      onVoteReceived in interface com.vexsoftware.votifier.VoteHandler
    • onError

      public void onError(Throwable throwable, boolean alreadyHandledVote, String remoteAddress)
      Specified by:
      onError in interface com.vexsoftware.votifier.VoteHandler
    • onForward

      public void onForward(com.vexsoftware.votifier.model.Vote vote)
      Specified by:
      onForward in interface com.vexsoftware.votifier.platform.forwarding.listener.ForwardedVoteListener