Class Honeypot

java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
org.reprogle.honeypot.Honeypot
All Implemented Interfaces:
io.papermc.paper.plugin.lifecycle.event.LifecycleEventOwner, org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter, org.bukkit.command.TabExecutor, org.bukkit.plugin.Plugin

public final class Honeypot extends org.bukkit.plugin.java.JavaPlugin
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static Honeypot
     
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Check the GitHub repo of the plugin to verify the version of Spigot we're running on is supported
    Get the Ghost Honeypot Fixer
    static com.samjakob.spigui.SpiGUI
    Returns the GUI object of the plugin for GUI creation
    Gets the Honeypot logger
    static net.milkbowl.vault.permission.Permission
    Returns the permission object for Vault
    Get the Behavior Registry
    static boolean
    Check if the server is running on the experimental Folia software.
    void
    Disable method called by Bukkit
    void
    Enable method called by Bukkit.
    void
    Set up WorldGuard.

    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, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toString

    Methods inherited from class org.bukkit.plugin.PluginBase

    equals, getName, hashCode

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface org.bukkit.plugin.Plugin

    getComponentLogger, getLog4JLogger, getSLF4JLogger
  • Field Details

  • Constructor Details

    • Honeypot

      public Honeypot()
  • Method Details

    • onLoad

      public void onLoad()
      Set up WorldGuard. This must be done in onLoad() due to how WorldGuard registers flags.
      Specified by:
      onLoad in interface org.bukkit.plugin.Plugin
      Overrides:
      onLoad in class org.bukkit.plugin.java.JavaPlugin
    • onEnable

      public void onEnable()
      Enable method called by Bukkit. This is a little messy due to all the setup it has to do
      Specified by:
      onEnable in interface org.bukkit.plugin.Plugin
      Overrides:
      onEnable in class org.bukkit.plugin.java.JavaPlugin
    • onDisable

      public void onDisable()
      Disable method called by Bukkit
      Specified by:
      onDisable in interface org.bukkit.plugin.Plugin
      Overrides:
      onDisable in class org.bukkit.plugin.java.JavaPlugin
    • checkIfServerSupported

      public static void checkIfServerSupported()
      Check the GitHub repo of the plugin to verify the version of Spigot we're running on is supported
    • isFolia

      public static boolean isFolia()
      Check if the server is running on the experimental Folia software.
      Returns:
      True if Folia, false if anything else
    • getPermissions

      public static net.milkbowl.vault.permission.Permission getPermissions()
      Returns the permission object for Vault
      Returns:
      Vault Permission
    • getGUI

      public static com.samjakob.spigui.SpiGUI getGUI()
      Returns the GUI object of the plugin for GUI creation
      Returns:
      SpiGUI
    • getHoneypotLogger

      public static HoneypotLogger getHoneypotLogger()
      Gets the Honeypot logger
      Returns:
      HoneypotLogger
    • getRegistry

      public static BehaviorRegistry getRegistry()
      Get the Behavior Registry
      Returns:
      BehaviorRegistry
    • getFixer

      public static GhostHoneypotFixer getFixer()
      Get the Ghost Honeypot Fixer
      Returns:
      GhostHoneypotFixer