Class Honeypot

java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
org.reprogle.honeypot.Honeypot
All Implemented Interfaces:
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
    Retrieve the GriefPrevention Util helper
    static GUI
    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
     
    Retrieve the WorldGuard Util helper
    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, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, 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
  • 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
    • getPermissions

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

      public static GUI getGUI()
      Returns the GUI object of the plugin for GUI creation
      Returns:
      GUI
    • getHoneypotLogger

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

      public static WorldGuardUtil getWorldGuardUtil()
      Retrieve the WorldGuard Util helper
    • getGriefPreventionUtil

      public static GriefPreventionUtil getGriefPreventionUtil()
      Retrieve the GriefPrevention Util helper
    • getRegistry

      public static BehaviorRegistry getRegistry()